Added weapon system. Animated laser.

This commit is contained in:
diego committed 2024-11-21 16:26:25 -05:00
1 parent 75d464b5e2
commit 257318926d
12 files changed
+210 -50

No files matched your search

+9 -8
View File
@@ -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
View File
@@ -0,0 +1,9 @@
package gamedata
type WeaponType int
const (
WeaponTypeGun = iota
WeaponTypeLaser
WeaponTypeMax
)