Skip to content

Commit af46d92

Browse files
committed
global: Add enum for physics layers
1 parent 92a8e8b commit af46d92

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)