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
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package gamedata
|
||||
|
||||
type WeaponType int
|
||||
|
||||
const (
|
||||
WeaponTypeGun = iota
|
||||
WeaponTypeLaser
|
||||
WeaponTypeMax
|
||||
)
|
||||
Reference in new issue
Block a user