Added weapon system. Animated laser.
This commit is contained in:
1 parent
75d464b5e2
commit
257318926d
12 files changed
+210
-50
No files matched your search
@@ -155,6 +155,7 @@ func (p *Primary) CollectInputs() gamedata.GameInputs {
|
||||
|
||||
gi.ShotAngle = math.Atan2(yaxis, xaxis)
|
||||
|
||||
gi.CycleWeapon = inpututil.IsStandardGamepadButtonJustPressed(0, ebiten.StandardGamepadButtonFrontTopRight)
|
||||
gi.Charge = inpututil.IsStandardGamepadButtonJustPressed(0, ebiten.StandardGamepadButtonRightStick)
|
||||
gi.Start = inpututil.IsStandardGamepadButtonJustPressed(0, ebiten.StandardGamepadButtonCenterRight)
|
||||
gi.Shot = ebiten.IsStandardGamepadButtonPressed(0, ebiten.StandardGamepadButtonFrontBottomRight)
|
||||
|
||||
Reference in new issue
Block a user