Saving and loading chunks actually works now

This commit is contained in:
2025-02-27 13:14:29 -06:00
parent c6c8864d67
commit cddba06c25
31 changed files with 115 additions and 208 deletions

View File

@@ -1,8 +1,8 @@
package game
Vec2i :: struct {
x: i32,
y: i32,
x: int,
y: int,
}
vec2i_to_vec2 :: proc(v2i:Vec2i) -> [2]f32 {
@@ -10,7 +10,7 @@ vec2i_to_vec2 :: proc(v2i:Vec2i) -> [2]f32 {
}
vec2_to_vec2i :: proc(v2:[2]f32) -> Vec2i {
return {i32(v2.x), i32(v2.y)}
return {int(v2.x), int(v2.y)}
}
to_bytes :: proc(v: $T) -> [size_of(T)]u8 {