ecs attempt
This commit is contained in:
@ -18,9 +18,10 @@ func (m *Mob) Walk(level *gamemap.Level, dx, dy int) {
|
||||
if level.GetTile(newCoords).BlocksPass {
|
||||
return
|
||||
}
|
||||
if level.Objects.At(newCoords).HasComponent("block_pass") {
|
||||
|
||||
}
|
||||
//fixme
|
||||
//if level.Objects.At(newCoords).HasComponent("block_pass") {
|
||||
//
|
||||
//}
|
||||
fmt.Printf("new coords: %d, %d\n", m.Coords.X, m.Coords.Y)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user