Added a new field to ent struct.
This commit is contained in:
@@ -27,6 +27,7 @@ Entity :: struct {
|
|||||||
size: rl.Vector2,
|
size: rl.Vector2,
|
||||||
// Fixed input speed (paddles)
|
// Fixed input speed (paddles)
|
||||||
speed: f32,
|
speed: f32,
|
||||||
|
max_speed: f32,
|
||||||
// 2D momentum & direction (ball / physics)
|
// 2D momentum & direction (ball / physics)
|
||||||
vel: rl.Vector2,
|
vel: rl.Vector2,
|
||||||
target_y: f32,
|
target_y: f32,
|
||||||
|
|||||||
Reference in New Issue
Block a user