Collision detection, better camera stuff, random trees, etc

This commit is contained in:
2025-02-25 23:26:32 -06:00
parent 88a795264c
commit 3914d6c1a7
6 changed files with 99 additions and 25 deletions

View File

@@ -4,3 +4,11 @@ Vec2i :: struct {
x: u32,
y:u32,
}
vec2i_to_vec2 :: proc(v2i:Vec2i) -> [2]f32 {
return {f32(v2i.x), f32(v2i.y)}
}
vec2_to_vec2i :: proc(v2:[2]f32) -> Vec2i {
return {u32(v2.x), u32(v2.y)}
}