moved move out of vector lib
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
const maxPlayer = 128
|
||||
|
||||
type Config struct {
|
||||
ID string `json:"id"`
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
// TODO: candidate for embedding?
|
||||
Stats Stats `json:"stats"`
|
||||
@@ -187,7 +187,7 @@ func (g *game) run() {
|
||||
func (g *game) nudgeProjectiles() (rprojectiles []Projectile) {
|
||||
rprojectiles = make([]Projectile, 0)
|
||||
for p := range g.projectiles {
|
||||
newPos := v.Move(p.Position, p.MoveTo, float64(p.Speed), delta)
|
||||
newPos := move(p.Position, p.MoveTo, float64(p.Speed), delta)
|
||||
|
||||
hit_player := false
|
||||
for player := range g.players {
|
||||
|
||||
Reference in New Issue
Block a user