aboutsummaryrefslogtreecommitdiff
path: root/src/phys/body.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/phys/body.odin')
-rw-r--r--src/phys/body.odin30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/phys/body.odin b/src/phys/body.odin
index 09dc95a..6734b2b 100644
--- a/src/phys/body.odin
+++ b/src/phys/body.odin
@@ -8,22 +8,22 @@ Rect :: struct {
}
Layer :: enum (u16) {
- DEFAULT,
- HARD, // hard collisions; don't let bodies intersect at all
- SOFT, // soft collisions; push away other bodies with a force
- ENEMY, // enemy hitboxes
- PLAYER, // player hitboxes
- ENEMY_PROJECTILE,
- PLAYER_PROJECTILE,
+ Default,
+ Hard, // hard collisions; don't let bodies intersect at all
+ Soft, // soft collisions; push away other bodies with a force
+ Enemy, // enemy hitboxes
+ Player, // player hitboxes
+ Enemy_Projectile,
+ Player_Projectile,
}
Collision_Type :: enum (u8) {
- UP,
- DOWN,
- RIGHT,
- LEFT,
- HORIZONTAL,
- VERTICAL,
+ Up,
+ Down,
+ Right,
+ Left,
+ Horizontal,
+ Vertical,
}
Body :: struct {
@@ -40,8 +40,8 @@ Body :: struct {
make_body :: proc(
rect: Rect,
- layers := bit_set[Layer;u16]{.DEFAULT},
- mask := bit_set[Layer;u16]{.DEFAULT},
+ layers := bit_set[Layer;u16]{.Default},
+ mask := bit_set[Layer;u16]{.Default},
) -> Body_Handle {
b := Body {
rect = rect,