Skip to content

Commit

Permalink
[game] adjust world coords to sync easier with the terrain map
Browse files Browse the repository at this point in the history
The text terrain map TopL is (1,1) and BotR is (128, 128) with
y ascending down. This little change makes it less error prone
to translate coords from the string terrain map to create the walls.
  • Loading branch information
ghthor committed Mar 19, 2015
1 parent 3ac6060 commit 2111804
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game/sim.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ func (i inputReceiver) Close() {
func NewSimShard(c ShardConfig) (*http.Server, error) {
// TODO pull this information from a datastore
bounds := coord.Bounds{
coord.Cell{-64, 64},
coord.Cell{63, -63},
coord.Cell{1, -1},
coord.Cell{128, -128},
}

quadTree, err := quad.New(bounds, 40, nil)
Expand Down

0 comments on commit 2111804

Please sign in to comment.