movement and input handlin (delta time based distance still needed though)
This commit is contained in:
parent
8babb48fd2
commit
22d1469b0f
3 changed files with 33 additions and 13 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue