Versions in this module Expand all Collapse all v0 v0.1.0 Nov 17, 2023 Changes in this version + const ScreenHeight + const ScreenWidth + var MenuStage = "init" + var TanksKilled []KillFeedEntry + var TotalEnemiesNum = 10 + func CountNonPlayerTanks(tanks []Tank) int + func CountPlayerTanks(tanks []Tank) int + func HandleCollision(tanks *[]Tank, levelObjects []levels.LevelBlock) + func HandleMovement(t *Tank) + func MainMenu(tanks *[]Tank, levelNum *int) + func NoEnemiesLeft(tanks []Tank) bool + func NoPlayersLeft(tanks []Tank) bool + func ResetCounter() + func ResetPlayerPositions(tanks *[]Tank) + func Update(tanks *[]Tank) + func UpdateEnemyLogic(tanks *[]Tank, levelObjects []levels.LevelBlock) + type Coordinates struct + Height float64 + Width float64 + X float64 + Y float64 + type Explosion struct + Frame int + X float64 + Y float64 + type Hull struct + Angle float64 + CollisionX1 float64 + CollisionX2 float64 + CollisionX3 float64 + CollisionX4 float64 + CollisionY1 float64 + CollisionY2 float64 + CollisionY3 float64 + CollisionY4 float64 + Height float64 + Image string + PrevX float64 + PrevY float64 + ReverseSpeed float64 + RotationSpeed float64 + Speed float64 + Width float64 + X float64 + Y float64 + type KillFeedEntry struct + TankName string + TimeAdded time.Time + type Point struct + X float64 + Y float64 + type ProgressBar struct + FilledWidth int + Height int + Width int + X int + Y int + type Projectile struct + Angle float64 + Collided bool + Height float64 + VelocityX float64 + VelocityY float64 + Width float64 + X float64 + Y float64 + type Tank struct + CanMove bool + Explosions []Explosion + Health int + HealthBarHeight int + HealthBarWidth int + Hull Hull + LastCollisionTime time.Time + MaxHealth int + Name string + Player bool + Projectiles []Projectile + ReloadBarHeight int + ReloadBarWidth int + Turret Turret + X float64 + Y float64 + func AddEnemy(tanks []Tank) []Tank + func CheckEnemyCount(tanks []Tank) []Tank + func GetUpdatedTankList(tanks []Tank) []Tank + func NewTank(name string) Tank + type Tanks struct + Tanks []Tank + type Turret struct + Angle float64 + Height float64 + Image string + Length float64 + ProgressBar ProgressBar + ProjectileSpeed float64 + ReloadTime float64 + ReloadTimer float64 + RotationSpeed float64 + Width float64 + X float64 + Y float64 + type Vector struct + X float64 + Y float64