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.
|
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) {
|
|
for _, t := range r.tiles {
|
|
for _, e := range t.contents {
|
|
e.update(dt)
|
|
}
|
|
}
|
|
}
|