movement and input handlin (delta time based distance still needed though)

This commit is contained in:
Morrígan 2025-06-26 22:19:33 +02:00
parent 8babb48fd2
commit 22d1469b0f
Signed by: morrigan
GPG key ID: CACB010F463A77D0
3 changed files with 33 additions and 13 deletions

View file

@ -14,7 +14,7 @@ Unit :: struct {
hp: u32,
}
RenderUnit :: proc(unit: Unit, game: Game) {
RenderUnit :: proc(unit: Unit, game: ^Game) {
switch unit.faction {
case Faction.Player:
sdl3.SetRenderDrawColor(game.render, 0, 255, 0, 0)
@ -29,7 +29,6 @@ RenderUnit :: proc(unit: Unit, game: Game) {
)
}
Projectile :: struct {
faction: Faction,
position: Position,