graphics

package
v0.0.0-...-22d1e04 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 9 Imported by: 0

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 NewU103

func NewU103() SpriteCharacterObject

NewU103 creates an instance of a new U103 boss

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL