logic layer
This commit is contained in:
20
konstructor/logic.go
Executable file
20
konstructor/logic.go
Executable 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user