✨ Profiler and fixed tps
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user