GameMaker LT pamoka 4#3D Sienos jų neperėjimas.





 v:

d3d_draw_block(x-0.5,y-16,0,x+0.5,y+16,64,background_get_texture(Siena),1,1);

h:

d3d_draw_block(x-16,y-0.5,0,x+16,y+0.5,64,background_get_texture(Siena),1,1);

End step :

var xmot, ymot;
x = xprevious;y = yprevious
for (i=0; i<90; i+=1){
  xmot=x+lengthdir_x(speed,direction+i)
  ymot=y+lengthdir_y(speed,direction+i)
  if place_free(xmot,ymot){x = xmot;y = ymot;exit}
  xmot=x+lengthdir_x(speed,direction-i)
  ymot=y+lengthdir_y(speed,direction-i)
  if place_free(xmot, ymot){x = xmot;y = ymot;exit}}

Komentarų nėra:

Rašyti komentarą