Added weapon system. Animated laser.
This commit is contained in:
@@ -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