diff options
Diffstat (limited to 'lib/components.odin')
| -rw-r--r-- | lib/components.odin | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/components.odin b/lib/components.odin new file mode 100644 index 0000000..56407a3 --- /dev/null +++ b/lib/components.odin @@ -0,0 +1,18 @@ +package djup + +Component :: enum i32 { + Exists, + Ball, + PlayerInput, +} + +Components :: bit_set[Component;i32] + +Ball :: struct { + position: vec2, + velocity: vec2, +} + +PlayerInput :: struct { + direction: vec2, +} |
