Add collider map
This commit is contained in:
@@ -92,6 +92,7 @@ void render(float dt, Game *game) {
|
||||
ClearBackground(RAYWHITE);
|
||||
|
||||
bzTileMapDraw(&game->map);
|
||||
bzTileMapDrawColliders(&game->map);
|
||||
|
||||
Vector2 worldPos = GetScreenToWorld2D(GetMousePosition(), game->camera);
|
||||
int tileX = (int) worldPos.x / 16;
|
||||
|
||||
Reference in New Issue
Block a user