clean up slightly

This commit is contained in:
2019-11-14 21:14:52 +03:00
parent 0f367eaf96
commit 3560be99a1
10 changed files with 299 additions and 412 deletions

View File

@ -60,8 +60,6 @@ func (room *Room) BlitToLevel(l *Level) error {
}
func (room *Room) MoveToCoords(where types.Coords) *Room {
fmt.Printf("\n MOVING room :", room.String())
fmt.Printf("\nmovin room to %v", where)
//update room coords?
room.X = where.X
room.Y = where.Y
@ -70,14 +68,11 @@ func (room *Room) MoveToCoords(where types.Coords) *Room {
room.Center.Y = room.Center.Y + where.Y
//update connector?
for i, coords := range room.Connectors {
fmt.Printf("\nupdating coords ", coords)
coords.X = coords.X + where.X
coords.Y = coords.Y + where.Y
fmt.Printf("\nupdated coords ", coords)
room.Connectors[i] = coords
}
fmt.Printf("\nROOM MOVED to %v \n\n", room)
return room
}