This commit is contained in:
Stephen McQuay 2013-09-04 23:39:24 -07:00
parent e7529e43d1
commit db1afada10

View File

@ -11,7 +11,6 @@ import (
"net/http"
)
func connect() (*websocket.Conn, error) {
origin := "http://localhost/"
url := "ws://localhost:8666/ws/"
@ -26,8 +25,8 @@ func createGame() (string, error) {
defer resp.Body.Close()
var g struct {
Id string `json:"id"`
}
Id string `json:"id"`
}
if err := json.NewDecoder(resp.Body).Decode(&g); err != nil {
return "", err
}
@ -70,7 +69,7 @@ func negociate(ws *websocket.Conn, gameid string) (err error) {
err = websocket.JSON.Send(ws, &bot.Config{
gameid,
bot.Stats{
// TODO: make these flags
// TODO: make these flags
Hp: 200,
Speed: 100,
WeaponRadius: 50,