extract math util into sub package
This commit is contained in:
parent
538c8c215f
commit
60d71ae1c0
4 changed files with 35 additions and 8 deletions
|
@ -1,5 +1,6 @@
|
|||
package main
|
||||
|
||||
import "util"
|
||||
import "vendor:sdl3"
|
||||
|
||||
Faction :: enum {
|
||||
|
@ -10,7 +11,8 @@ Faction :: enum {
|
|||
|
||||
Unit :: struct {
|
||||
faction: Faction,
|
||||
position: Position,
|
||||
position: util.Position,
|
||||
velocity: util.Velocity,
|
||||
hp: u32,
|
||||
}
|
||||
|
||||
|
@ -31,6 +33,6 @@ RenderUnit :: proc(unit: Unit, game: ^Game) {
|
|||
|
||||
Projectile :: struct {
|
||||
faction: Faction,
|
||||
position: Position,
|
||||
direction: Direction,
|
||||
position: util.Position,
|
||||
direction: util.Velocity,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue