part 3, 2/7

This commit is contained in:
Joel M. Southall 2019-07-10 19:44:16 -07:00
parent 2bc6f49734
commit fbb441de07

View File

@ -11,20 +11,15 @@ func (g *GameMap) Initialize() {
for x := range g.Tiles {
g.Tiles[x] = make([]Tile, g. Height)
for y := range g.Tiles[x] {
g.Tiles[x][y] = Tile{
BlockSight: true,
BlockMovement: true,
}
}
}
g.Tiles[30][22] = Tile {
BlockMovement: true,
BlockSight: true,
}
g.Tiles[31][22] = Tile{
BlockMovement: true,
BlockSight: true,
}
g.Tiles[32][22] = Tile{
BlockMovement: true,
BlockSight: true,
}
}
// IsBlocked returns if the given coordinates are blocking movement.