Bullet support
This commit is contained in:
@@ -2,6 +2,7 @@ package input
|
||||
|
||||
import (
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
"github.com/hajimehoshi/ebiten/v2/inpututil"
|
||||
"sort"
|
||||
"strings"
|
||||
)
|
||||
@@ -51,3 +52,7 @@ func (k *Keyboard) DirectionFromKeys(keys []ebiten.Key) configuration.Direction
|
||||
return configuration.PreviouslyHeld
|
||||
}
|
||||
}
|
||||
|
||||
func (k *Keyboard) ShouldFire(keys []ebiten.Key) bool {
|
||||
return inpututil.IsKeyJustReleased(ebiten.KeySpace)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user