Initial commit

This commit is contained in:
2026-02-24 15:36:10 -03:00
commit fe885a9e24
42 changed files with 2383 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { Component } from "$/common/ecs/mod.ts";
import { KeyCode } from "$/client/input_manager.ts";
export class PlayerControls extends Component {
move_speed: number = 100;
// Keys
move_up: KeyCode = "KeyW";
move_down: KeyCode = "KeyS";
move_left: KeyCode = "KeyA";
move_right: KeyCode = "KeyD";
open_inventory: KeyCode = "KeyE";
open_debug: KeyCode = "F3";
}