part 3, 2/7
This commit is contained in:
parent
2bc6f49734
commit
fbb441de07
|
@ -11,20 +11,15 @@ func (g *GameMap) Initialize() {
|
||||||
|
|
||||||
for x := range g.Tiles {
|
for x := range g.Tiles {
|
||||||
g.Tiles[x] = make([]Tile, g. Height)
|
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.
|
// IsBlocked returns if the given coordinates are blocking movement.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user