Basic proc gen with hash noise

This commit is contained in:
2025-03-01 15:19:53 -06:00
parent bdf4f7a7b6
commit 8c0601c7aa
6 changed files with 78 additions and 28 deletions

View File

@@ -26,9 +26,9 @@ main :: proc() {
player = {
position = {CELL_SIZE * 10, CELL_SIZE * 10},
position = {CELL_SIZE * 10000, CELL_SIZE * 10000},
camera = {
zoom = 3,
zoom = 4,
target = {player.position.x + (CELL_SIZE / 2), player.position.y + (CELL_SIZE / 2)},
offset = {f32(rl.GetScreenWidth()) / 2, f32(rl.GetScreenHeight()) / 2},
},
@@ -38,7 +38,7 @@ main :: proc() {
load_tilemap()
defer unload_tilemap()
world = create_world("test_world")
world = create_world("test_world", 5761)
set_tile(&world, tree_tile, {400,400})
@@ -58,7 +58,7 @@ game_loop :: proc() {
update()
rl.BeginDrawing()
rl.ClearBackground(rl.BLACK)
rl.ClearBackground({10,80,10,255})
rl.BeginMode2D(player.camera)
draw()