Documentation ¶
Index ¶
Constants ¶
View Source
const ( CharacterLeft characterImageType = iota // 0 CharacterRight // 1 CharacterExplosion // 2 )
Variables ¶
View Source
var (
BringTheWolf = false
)
Functions ¶
func CheckCollision ¶
func CheckCollision(spriteCharacters []SpriteCharacterObject, spriteAmmos []SpriteAmmoObject) bool
CheckCollision will use a simple box collision method as this is not a production project
Types ¶
type SpriteAmmoObject ¶
type SpriteAmmoObject interface {
// contains filtered or unexported methods
}
type SpriteCharacterObject ¶
type SpriteCharacterObject interface { Character(characterImageType) Fire(bool) GetFiredMunitions() []SpriteAmmoObject GetPoints() int Reload() Reset() StillHasLives() bool // contains filtered or unexported methods }
func NewDestroyer ¶
func NewDestroyer() SpriteCharacterObject
NewDestroyer creates an instance of a new Destroyer
func NewUboat ¶
func NewUboat(dt depthType) SpriteCharacterObject
NewUboat creates an instance of a new Uboat
func NewWolfpack ¶
func NewWolfpack() []SpriteCharacterObject
NewWolfpack returns a slice of new uboats
Click to show internal directories.
Click to hide internal directories.