Balon Klavye ile hareket ettirme.

Nisan 20, 2017 admin_ufuk 0

  function hareket(islem:KeyboardEvent): void{ if(islem.keyCode==Keyboard.UP) { balon.y=balon.y-10; balon.width=balon.width-20; balon.height=balon.height-20; } else if(islem.keyCode==Keyboard.DOWN) { balon.y=balon.y+10; balon.width=balon.width+20; balon.height=balon.height+20; } else if(islem.keyCode==Keyboard.LEFT) { balon.x=balon.x-10; } else if(islem.keyCode==Keyboard.RIGHT) { […]