Ver código fonte

vantiy urls

I've moved remote to https://s.mcquay.me/hackerbots/ and stood up routes for go
get on the hackerbots repos. I had to update the imports for this to take
effect.
master
Stephen McQuay 4 anos atrás
pai
commit
446eba5209
10 arquivos alterados com 14 adições e 12 exclusões
  1. +1
    -1
      botserv/main.go
  2. +2
    -1
      control.go
  3. +1
    -1
      game.go
  4. +1
    -1
      obstacle.go
  5. +2
    -1
      player.go
  6. +1
    -1
      projectile.go
  7. +2
    -1
      protocol.go
  8. +2
    -3
      robot.go
  9. +1
    -1
      robot_test.go
  10. +1
    -1
      splosion.go

+ 1
- 1
botserv/main.go Ver arquivo

@@ -10,7 +10,7 @@ import (
"runtime/pprof"
"time"

"bitbucket.org/hackerbots/server"
"hackerbots.us/server"
)

var addr = flag.String("addr", ":8666", "http service address")

+ 2
- 1
control.go Ver arquivo

@@ -12,8 +12,9 @@ import (
"strings"
"sync"

"github.com/smcquay/idg"
"golang.org/x/net/websocket"

"mcquay.me/idg"
)

// JsonHandler is a function type that allows setting the Content-Type

+ 1
- 1
game.go Ver arquivo

@@ -8,7 +8,7 @@ import (
"sync"
"time"

"bitbucket.org/smcquay/bandwidth"
"mcquay.me/bandwidth"
)

const maxPlayer = 128

+ 1
- 1
obstacle.go Ver arquivo

@@ -5,7 +5,7 @@ import (
"math"
"math/rand"

v "bitbucket.org/hackerbots/vector"
v "hackerbots.us/vector"
)

// Obstacle is the implementation of the generic building type in the game.

+ 2
- 1
player.go Ver arquivo

@@ -5,8 +5,9 @@ import (
"encoding/json"
"log"

"bitbucket.org/smcquay/bandwidth"
"golang.org/x/net/websocket"

"mcquay.me/bandwidth"
)

const maxMessageSize = 1024

+ 1
- 1
projectile.go Ver arquivo

@@ -3,7 +3,7 @@ package server
import (
"log"

v "bitbucket.org/hackerbots/vector"
v "hackerbots.us/vector"
)

// Projectile are the things robots can shoot at eachother.

+ 2
- 1
protocol.go Ver arquivo

@@ -3,8 +3,9 @@ package server
import (
"log"

v "bitbucket.org/hackerbots/vector"
"golang.org/x/net/websocket"

v "hackerbots.us/vector"
)

// GameID is essentially the name of the game we want to join

+ 2
- 3
robot.go Ver arquivo

@@ -5,9 +5,8 @@ import (
"math"
"math/rand"

"github.com/smcquay/idg"

v "bitbucket.org/hackerbots/vector"
v "hackerbots.us/vector"
"mcquay.me/idg"
)

// Robot contains everything the game needs to know to simulate robot behavior.

+ 1
- 1
robot_test.go Ver arquivo

@@ -5,7 +5,7 @@ import (
"math"
"testing"

v "bitbucket.org/hackerbots/vector"
v "hackerbots.us/vector"
)

func init() {

+ 1
- 1
splosion.go Ver arquivo

@@ -1,7 +1,7 @@
package server

import (
v "bitbucket.org/hackerbots/vector"
v "hackerbots.us/vector"
)

// Splosion embodies an explosion.

Carregando…
Cancelar
Salvar