Skip to content

Commit

Permalink
added new counters
Browse files Browse the repository at this point in the history
  • Loading branch information
vritant24 committed Jul 12, 2024
1 parent 7d28a55 commit 3455d89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/game/tilemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,8 @@ namespace tiles {
tileScale: number,
tileSize: number
) {
control.enablePerfCounter("tilemap_x_axis_collisions");

const collidedTiles: sprites.StaticObstacle[] = [];

for (
Expand Down Expand Up @@ -599,6 +601,7 @@ namespace tiles {
tileScale: number,
tileSize: number
) {
control.enablePerfCounter("tilemap_y_axis_collisions");
const collidedTiles: sprites.StaticObstacle[] = [];

// check collisions with tiles sprite is moving towards vertically
Expand Down

0 comments on commit 3455d89

Please sign in to comment.