Skip to content

Commit 04368ce

Browse files
authored
Merge pull request #46 from endlessm/push-wnzyonolysww
global: Add enum for physics layers
2 parents 92a8e8b + af46d92 commit 04368ce

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

scripts/global.gd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ signal timer_added
1616
enum Endings { WIN, LOSE }
1717
enum Player { ONE, TWO, BOTH }
1818

19+
## These constants correspond to the names configured in Project Settings → Layer Names → 2D
20+
## Physics. Please keep these in sync!
21+
enum PhysicsLayers {
22+
PLAYER = 1,
23+
COINS = 2,
24+
PLATFORMS = 3,
25+
ENEMY = 4,
26+
}
27+
1928
## Timer for finishing the level.
2029
var timer: Timer
2130

0 commit comments

Comments
 (0)