LearnGM
هل تريد التفاعل مع هذه المساهمة؟ كل ما عليك هو إنشاء حساب جديد ببضع خطوات أو تسجيل الدخول للمتابعة.

3دي 1tutorial

استعرض الموضوع التالي استعرض الموضوع السابق اذهب الى الأسفل

3دي 1tutorial  Empty 3دي 1tutorial

مُساهمة من طرف fodil الإثنين أغسطس 04, 2014 4:14 pm

ننشئ backgroun ونسميه tex_floor
3دي 1tutorial  Texture_floor
ونصنع obj_player
          3دي 1tutorial  Event_create
d3d_start()

x= room_width/2
y= room_height/2
z = 50
xto = x
yto = y
zto = z
direction=0
       3دي 1tutorial  Event_step
friction=0.5
if keyboard_check(ord("W")) then speed=5
if keyboard_check(ord("S")) then speed=-5
                       3دي 1tutorial  Event_draw
direction -= (display_mouse_get_x()-(display_get_width()/2))/5
zto -= (display_mouse_get_y()-(display_get_height()/2))/2
display_mouse_set(display_get_width()/2,display_get_height()/2)

xto= lengthdir_x(100,direction)+x
yto= lengthdir_y(100,direction)+y
d3d_set_projection(x,y,z,xto,yto,zto,0,0,1)
draw_set_color(c_white)
d3d_draw_floor(0,0,0,room_width,room_height,0,background_get_texture(tex_floor),room_width/128,room_height/128) 
d3d_draw_floor(0,0,128,room_width,room_height,128,background_get_texture(roof_tex),room_width/128,room_height/128)
fodil
fodil
 
 

الجنس : ذكر
عدد المساهمات : 146



الرجوع الى أعلى الصفحة اذهب الى الأسفل

3دي 1tutorial  Empty رد: 3دي 1tutorial

مُساهمة من طرف Abdullah Alsayed الإثنين أغسطس 04, 2014 4:24 pm

يكون أفضل لو شرحت الأكواد  flower  .. ينقل للقسم المناسب
Abdullah Alsayed
Abdullah Alsayed
Admin
Admin

الجنس : ذكر
عدد المساهمات : 1791



الرجوع الى أعلى الصفحة اذهب الى الأسفل

3دي 1tutorial  Empty رد: 3دي 1tutorial

مُساهمة من طرف fodil الإثنين أغسطس 04, 2014 4:32 pm

حقيقة لا اعرف شرح الاكواد
fodil
fodil
 
 

الجنس : ذكر
عدد المساهمات : 146



الرجوع الى أعلى الصفحة اذهب الى الأسفل

استعرض الموضوع التالي استعرض الموضوع السابق الرجوع الى أعلى الصفحة


صلاحيات هذا المنتدى:
لاتستطيع الرد على المواضيع في هذا المنتدى