xiam / shooter-server

shooter.io is a network based multiplayer space shooter game.
http://shooter.io
Other
128 stars 16 forks source link

Me being a n00b please help :( #1

Open meticulo3366 opened 8 years ago

meticulo3366 commented 8 years ago

Hi!

I really want to compile and run your go server locally, but i am running into this issue, any thoughts on how I can solve this? Its probably super simple but i have no golang experience :)

zekerocks-2:src zeke$ go get -d package shooter.io/bullet: unrecognized import path "shooter.io/bullet" package shooter.io/item: unrecognized import path "shooter.io/item" package shooter.io/ship: unrecognized import path "shooter.io/ship"

zekerocks-2:src zeke$ make go build -o shooter-server fire.go:21:2: cannot find package "shooter.io/bullet" in any of: /usr/local/Cellar/go/1.5.1/libexec/src/shooter.io/bullet (from $GOROOT) /Users/zeke/go/src/shooter.io/bullet (from $GOPATH) powerup.go:20:2: cannot find package "shooter.io/item" in any of: /usr/local/Cellar/go/1.5.1/libexec/src/shooter.io/item (from $GOROOT) /Users/zeke/go/src/shooter.io/item (from $GOPATH) player.go:30:2: cannot find package "shooter.io/ship" in any of: /usr/local/Cellar/go/1.5.1/libexec/src/shooter.io/ship (from $GOROOT) /Users/zeke/go/src/shooter.io/ship (from $GOPATH)

meticulo3366 commented 8 years ago

I installed using mac brew install go :)

xiam commented 8 years ago

Hello @meticulo3366,

It's ok to be new in something :).

This is some old code and the import paths don't work anymore, the shooter.io/bullet import path should really point to https://github.com/xiam/shooter-server/tree/master/src/bullet, so some import paths need to be renamed, for instance shooter.io/bullet should be changed to github.com/xiam/shooter-server/src/bullet.

Please fell free to fix the import paths and create a PR.

Also, if you could remove the src/ part and just use github.com/xiam/shooter-server/bullet that would be great.