10 lines
159 B
PSL
10 lines
159 B
PSL
struct vec2f:
|
|
x: f32
|
|
y: f32
|
|
|
|
struct body:
|
|
position: vec2f
|
|
rotation: f32
|
|
|
|
func move_x(b: body mut*, delta: f32):
|
|
(*b).position.x = (*b).position.x + delta
|