feat: initial commit with M1-M4 implementation
This commit is contained in:
19
internal/entities/puck.go
Normal file
19
internal/entities/puck.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package entities
|
||||
|
||||
type Vector2 struct {
|
||||
X, Y float64
|
||||
}
|
||||
|
||||
type Puck struct {
|
||||
Position Vector2
|
||||
Velocity Vector2
|
||||
Radius float64
|
||||
}
|
||||
|
||||
func NewPuck(x, y float64) *Puck {
|
||||
return &Puck{
|
||||
Position: Vector2{X: x, Y: y},
|
||||
Velocity: Vector2{X: 0, Y: 0},
|
||||
Radius: 10,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user