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

@@ -32,7 +32,7 @@ player_update :: proc(p : ^Player, w: ^World) {
handle_player_camera(p)
if rl.IsKeyPressed(.SPACE) {
set_tile(w, tree_tile, vec2_to_vec2i(get_player_grid_position(p)))
set_tile(w, bricks_tile, vec2_to_vec2i(get_player_grid_position(p)))
}
}
@@ -199,7 +199,7 @@ get_player_grid_position :: proc(player:^Player) -> rl.Vector2 {
}
draw_player :: proc(player:^Player) {
draw_tile({27,0}, player.position, rl.DARKBLUE)
draw_tile({25,0}, player.position, {50,0,80,255})
}