Add path debug drawing, resources fields
This commit is contained in:
14
game/systems/ui_systems.c
Normal file
14
game/systems/ui_systems.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "systems.h"
|
||||
|
||||
#include "../game_state.h"
|
||||
|
||||
void uiTask(ecs_iter_t *it) {
|
||||
Vector2 mousePos = GetMousePosition();
|
||||
Vector2 worldPos = GetScreenToWorld2D(mousePos, GAME->camera);
|
||||
|
||||
BzTileMap *map = &GAME->map;
|
||||
|
||||
i32 tileX = (i32) worldPos.x / map->tileWidth;
|
||||
i32 tileY = (i32) worldPos.y / map->tileHeight;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user