playground header skeleton, playground screen into separated files
This commit is contained in:
10
konstructor/engines/easy_ebitengine/screen.playground.npc.go
Normal file
10
konstructor/engines/easy_ebitengine/screen.playground.npc.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package easy_ebitengine
|
||||
|
||||
import "github.com/hajimehoshi/ebiten"
|
||||
|
||||
func (e *Engine) PlaygroundNPCsDraw(screen *ebiten.Image) {
|
||||
playground := e.GetPlayground()
|
||||
for _, npc := range playground.NPCs {
|
||||
e.PlaygroundAssetDraw(screen, npc.Type.Render, npc.Position)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user