clean up slightly
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user