We doing global variables now

This commit is contained in:
duck
2025-07-07 21:11:55 +05:00
parent b2be9e3708
commit 7e162221ef
14 changed files with 521 additions and 1445 deletions

View File

@@ -1,9 +1,9 @@
const sdl = @import("sdl");
const key_store = @import("data/keystore.zig");
buttons: key_store.KeyStore(@TypeOf(sdl.BUTTON_LEFT), 4, 0),
buttons: key_store.KeyStore(@TypeOf(sdl.BUTTON_LEFT), 4, 0) = .{},
x: f32,
y: f32,
dx: f32,
dy: f32,
x: f32 = 0,
y: f32 = 0,
dx: f32 = 0,
dy: f32 = 0,