playground header skeleton, playground screen into separated files

This commit is contained in:
2023-07-07 20:33:58 +02:00
parent 9a7be89da6
commit 09959a8932
6 changed files with 74 additions and 26 deletions

View File

@@ -0,0 +1,10 @@
package easy_ebitengine
import "github.com/hajimehoshi/ebiten"
func (e *Engine) PlaygroundPlatformsDraw(screen *ebiten.Image) {
playground := e.GetPlayground()
for _, platform := range playground.Platforms {
e.PlaygroundAssetDraw(screen, platform.Type.Render, platform.Position)
}
}