Removing some log statements

This commit is contained in:
2025-02-27 23:09:43 -06:00
parent 5135ec1868
commit 07768ddf9b
7 changed files with 5 additions and 99 deletions

BIN
game/game

Binary file not shown.

View File

@@ -29,7 +29,7 @@ main :: proc() {
player = {
position = {CELL_SIZE * 10, CELL_SIZE * 10},
camera = {
zoom = 2,
zoom = 3,
target = {player.position.x + (CELL_SIZE / 2), player.position.y + (CELL_SIZE / 2)},
offset = {f32(rl.GetScreenWidth()) / 2, f32(rl.GetScreenHeight()) / 2},
},

View File

@@ -55,8 +55,6 @@ player_update_chunks :: proc(p: ^Player, w: ^World) {
current_player_chunk.position.y + dir.y
}
fmt.printfln("Checking adjacent chunk at: %v", adjacent_pos)
get_chunk(w, adjacent_pos)
}
@@ -79,7 +77,6 @@ player_update_chunks :: proc(p: ^Player, w: ^World) {
}
if !is_adjacent {
fmt.printfln("Unloading chunk at: %v", chunk_pos)
unload_chunk(chunk_pos, w)
}
}
@@ -89,7 +86,7 @@ handle_player_input :: proc(p:^Player, w:^World) {
target_pos := get_player_grid_position(p)
dt := rl.GetFrameTime()
move_delay : f32 = 0.1
move_delay : f32 = 0.2
if p.move_timer > 0 {
p.move_timer -= dt

View File

@@ -55,7 +55,7 @@ save_world :: proc(w:^World) {
panic("World has invalid data_path")
}
fmt.printfln("Saving world %v", w.data_dir)
// fmt.printfln("Saving world %v", w.data_dir)
for chunk in w.chunks {
save_chunk(get_chunk(w, chunk), w)
@@ -66,7 +66,7 @@ save_chunk :: proc(c:^Chunk, w:^World) {
chunk_dir := fmt.tprintf("%v/%v", w.data_dir, "chunks")
filename := fmt.tprintf("%v/%v_%v.chunk", chunk_dir, c.position.x, c.position.y)
fmt.printfln("Saving chunk: %v", filename)
// fmt.printfln("Saving chunk: %v", filename)
data := make([dynamic]u8)
@@ -96,7 +96,7 @@ load_chunk :: proc(pos:Vec2i, w:^World) -> Chunk {
data, err := os.read_entire_file_from_filename_or_err(filename)
if err != nil {
fmt.printfln("No chunk %v found, generating new chunk", pos)
// fmt.printfln("No chunk %v found, generating new chunk", pos)
chunk := generate_chunk(pos)
save_chunk(&chunk, w)
return chunk