Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var World = &GameWorld{ PlayerFireRateMult: 1.3, PlayerIncFireRate: false, PlayerScore: 31, PlayerPos: kmath.Vec{X: consts.DefaultPlayerPosX, Y: consts.DefaultPlayerPosY}, Player: gohan.Entity(0), PlayerWidth: 32, PlayerHeigth: 32, ScreenW: consts.DefaultScreenW / 2, ScreenH: consts.DefaultScreenH / 2, }
Functions ¶
func SetGameOver ¶
func SetGameOver()
func SetMessage ¶
Types ¶
type GameWorld ¶
type GameWorld struct {
Player gohan.Entity
PlayerScore uint
PlayerFireRateMult float64
PlayerIncFireRate bool
GameTicksCounter uint
ScreenW, ScreenH int
PlayerPos kmath.Vec
PlayerWidth, PlayerHeigth float64
GameStarted bool
GameOver bool
ResetGame bool
MessageVisible bool
MessageTicks int
MessageDuration int
MessageUpdated bool
MessageText string
}
Click to show internal directories.
Click to hide internal directories.