ignore new binary
Create new bserv binary Herein lie the following ideas: - change package visibility of many things - try to stash the globals into structs - the code is far from correct; it merely compiles
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package main
|
||||
package botserv
|
||||
|
||||
import (
|
||||
"log"
|
||||
@@ -9,15 +9,15 @@ type melee struct {
|
||||
respawn_timer float64
|
||||
}
|
||||
|
||||
func (g *melee) setup(gg *game) {
|
||||
func (g *melee) setup(gg *Game) {
|
||||
g.respawn_timer = 5000
|
||||
}
|
||||
|
||||
func (g *melee) gameOver(gg *game) (bool, *GameOver) {
|
||||
func (g *melee) gameOver(gg *Game) (bool, *GameOver) {
|
||||
return false, &GameOver{}
|
||||
}
|
||||
|
||||
func (g *melee) tick(gg *game, payload *Boardstate) {
|
||||
func (g *melee) tick(gg *Game, payload *Boardstate) {
|
||||
for p := range gg.players {
|
||||
for _, r := range p.Robots {
|
||||
_, ok := g.respawn[r]
|
||||
|
||||
Reference in New Issue
Block a user