Added weapon system. Animated laser.
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
package gamedata
|
||||
|
||||
type GameInputs struct {
|
||||
XAxis float64
|
||||
YAxis float64
|
||||
ShotAngle float64
|
||||
Shot bool
|
||||
Start bool
|
||||
Charge bool
|
||||
Quit bool
|
||||
Reset bool
|
||||
XAxis float64
|
||||
YAxis float64
|
||||
ShotAngle float64
|
||||
Shot bool
|
||||
Start bool
|
||||
Charge bool
|
||||
Quit bool
|
||||
Reset bool
|
||||
CycleWeapon bool
|
||||
}
|
||||
|
||||
9
gamedata/weapontype.go
Normal file
9
gamedata/weapontype.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package gamedata
|
||||
|
||||
type WeaponType int
|
||||
|
||||
const (
|
||||
WeaponTypeGun = iota
|
||||
WeaponTypeLaser
|
||||
WeaponTypeMax
|
||||
)
|
||||
Reference in New Issue
Block a user