blob: 56407a3a7ec67953d8fdec90285b05ff9885d2c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package djup
Component :: enum i32 {
Exists,
Ball,
PlayerInput,
}
Components :: bit_set[Component;i32]
Ball :: struct {
position: vec2,
velocity: vec2,
}
PlayerInput :: struct {
direction: vec2,
}
|