event system and keyboard

This commit is contained in:
2025-10-16 00:54:49 +02:00
parent f87cc28c57
commit 69c3e6f396
11 changed files with 313 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
class_name Player
extends CharacterBody2D
const SPEED: int = 800
@@ -9,6 +10,7 @@ var tilesize: int = 32
var position_limit_rect: Rect2
func _ready() -> void:
EventManager.player = self
var used_tilemap_rect: Rect2i = tilemap.get_used_rect()
tilesize = tilemap.tile_set.tile_size.x