Irányítás

This commit is contained in:
markojozsef
2026-09-16 12:30:05 +02:00
parent 4eaf0dbd98
commit bbdead0b2e
5 changed files with 59 additions and 20 deletions

View File

@@ -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()