Profiler and fixed tps

This commit is contained in:
2024-07-18 14:47:41 +08:00
parent cd01069c89
commit b4c2cdccaf
4 changed files with 93 additions and 10 deletions

View File

@@ -56,4 +56,10 @@ func (p *Player) Draw(pen *sdl.Renderer) {
W: int32(p.Size.X),
H: int32(p.Size.Y),
})
for _, child := range p.Children {
if drawableChild, ok := child.(land.DrawableObject); ok {
drawableChild.Draw(pen)
}
}
}