middle of refactor

This commit is contained in:
sm
2013-09-01 23:00:09 -07:00
parent 0396b16425
commit 835303c53d
5 changed files with 98 additions and 70 deletions
+3 -1
View File
@@ -7,6 +7,7 @@ import (
)
type game struct {
id string
players map[*player]bool
projectiles map[*projectile]bool
splosions map[*splosion]bool
@@ -21,8 +22,9 @@ type game struct {
kill chan bool
}
func NewGame(width, height float64) *game {
func NewGame(id string, width, height float64) *game {
return &game{
id: id,
register: make(chan *player),
unregister: make(chan *player),
projectiles: make(map[*projectile]bool),