Clean up key press check.
This commit is contained in:
@@ -106,9 +106,6 @@ func NewParallax() Parallax {
|
||||
func (p *Parallax) Update() error {
|
||||
p.increment++
|
||||
|
||||
var keysPressed []ebiten.Key
|
||||
keysPressed = inpututil.AppendJustPressedKeys(keysPressed[:0])
|
||||
|
||||
//check for user input to transition scene
|
||||
if inpututil.IsKeyJustPressed(ebiten.KeyQ) {
|
||||
if p.events[groovy.COMPLETED] != nil {
|
||||
|
||||
Reference in New Issue
Block a user