You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
325 B
Go
26 lines
325 B
Go
package sim
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/jordanorelli/blammo"
|
|
)
|
|
|
|
type room struct {
|
|
*blammo.Log
|
|
name string
|
|
origin point
|
|
width int
|
|
height int
|
|
tiles []tile
|
|
}
|
|
|
|
func (r *room) update(dt time.Duration) {
|
|
r.Info("updating room")
|
|
for _, t := range r.tiles {
|
|
for _, e := range t.contents {
|
|
e.update(dt)
|
|
}
|
|
}
|
|
}
|