logic layer

This commit is contained in:
2023-07-01 00:50:12 +02:00
parent d5482dd9e7
commit 884df7c406
7 changed files with 126 additions and 102 deletions

20
konstructor/logic.go Executable file
View File

@@ -0,0 +1,20 @@
package konstructor
import (
"image/color"
"github.com/hajimehoshi/ebiten"
)
type Logic struct {
Konstructor *Konstructor
}
func (l *Logic) Update(screen *ebiten.Image) {
}
func (l *Logic) Draw(screen *ebiten.Image) {
if l.Konstructor.Controller.UpPressed() {
screen.Fill(color.White)
}
}