Irányítás
This commit is contained in:
@@ -2,6 +2,7 @@ import arcade
|
||||
import assets
|
||||
import gamestate
|
||||
import renderers
|
||||
import controls
|
||||
import text
|
||||
|
||||
SCREEN_WIDTH = 256
|
||||
@@ -33,6 +34,13 @@ class Game(arcade.Window):
|
||||
|
||||
def on_update(self, dt):
|
||||
gamestate.update(dt)
|
||||
controls.update()
|
||||
|
||||
def on_key_press(self, symbol, modifiers):
|
||||
controls.key_press(symbol)
|
||||
|
||||
def on_key_release(self, symbol, modifiers):
|
||||
controls.key_release(symbol)
|
||||
|
||||
def on_draw(self):
|
||||
self.framebuffer.use()
|
||||
|
||||
Reference in New Issue
Block a user