moved move out of vector lib

This commit is contained in:
sm
2013-09-28 09:44:47 -07:00
parent e33f2c0c4f
commit b142845b5c
3 changed files with 14 additions and 3 deletions
+2 -2
View File
@@ -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 {