fewer deserts

This commit is contained in:
2025-03-01 23:10:22 -06:00
parent 2be653504a
commit cc339b9389
4 changed files with 7 additions and 14 deletions

View File

@@ -25,7 +25,7 @@ main :: proc() {
rl.SetTargetFPS(60)
player = {
position = {CELL_SIZE * 10, CELL_SIZE * 10},
position = {CELL_SIZE * 10000, CELL_SIZE * 10000},
camera = {
zoom = 4,
target = {player.position.x + (CELL_SIZE / 2), player.position.y + (CELL_SIZE / 2)},
@@ -37,7 +37,7 @@ main :: proc() {
load_tilemap()
defer unload_tilemap()
world = create_world("test_world", 23462547245)
world = create_world("test_world", 23456725245)
save_world(&world)
game_loop()
@@ -65,7 +65,7 @@ game_loop :: proc() {
player_grid_pos := get_player_grid_position(&player)
player_grid_pos_tile := get_world_tile(&world, vec2_to_vec2i(player_grid_pos))
current_chunk := get_chunk_from_world_pos(&world, player_grid_pos)
status_string := rl.TextFormat("POS: [%i,%i] : %v | Chunk: %v : %v | MODE: %v", int(player_grid_pos.x), int(player_grid_pos.y), player_grid_pos_tile.type, current_chunk.position, get_biome_from_id(current_chunk.biome_id).name, player.mode)
status_string := rl.TextFormat("POS: [%i,%i] : %v | Chunk: [%i,%i] : %v | MODE: %v", int(player_grid_pos.x), int(player_grid_pos.y), player_grid_pos_tile.type, current_chunk.position.x, current_chunk.position.y, get_biome_from_id(current_chunk.biome_id).name, player.mode)
rl.DrawText(status_string, 5, 25, 20, rl.RED)
rl.EndDrawing()