Beginning interaction stuff

This commit is contained in:
2025-02-26 09:34:26 -06:00
parent 3914d6c1a7
commit 22f9af5417
5 changed files with 50 additions and 31 deletions

View File

@@ -23,6 +23,7 @@ main :: proc() {
player.position.x = CELL_SIZE * 5
player.position.y = CELL_SIZE * 5
player.mode = .INTERACT
camera.target = {player.position.x + (CELL_SIZE / 2), player.position.y + (CELL_SIZE / 2)}
camera.zoom = 2
@@ -59,9 +60,9 @@ game_loop :: proc() {
player_grid_pos := get_player_grid_position(&player)
player_grid_pos_tile := get_grid_tile(&world, vec2_to_vec2i(player_grid_pos))
pos_string := rl.TextFormat("POS: %v : %v", player_grid_pos, player_grid_pos_tile.type)
status_string := rl.TextFormat("POS: %v : %v | MODE: %v", player_grid_pos, player_grid_pos_tile.type, player.mode)
rl.DrawText(pos_string, 5, 25, 20, rl.RED)
rl.DrawText(status_string, 5, 25, 20, rl.RED)
rl.EndDrawing()