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.

25 lines
300 B
Go

package sim
import (
"time"
"github.com/jordanorelli/blammo"
)
4 years ago
type room struct {
*blammo.Log
name string
4 years ago
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)
}
}
}