Documentation ¶
Index ¶
Constants ¶
View Source
const ( // WindowTitle is a constant that stores the name of the window. WindowTitle = "Xtownrider" // WindowWidth is a constant that stores the width of the window. WindowWidth = 800 // WindowHeight is a constant that stores the height of the window. WindowHeight = 600 )
Variables ¶
This section is empty.
Functions ¶
func MainGameLoop ¶
func MainGameLoop(gameState *GameState, resourceManager *libxtownrider.ResourceManager, entityManager *libxtownrider.EntityManager)
MainGameLoop is the main game loop of the game. It mainly does three things: 1. Updates the game state. 2. Renders to screen. 3. Handles input.
Types ¶
type GameState ¶
GameState is a struct that stores current state of the game.
func Init ¶
func Init() (GameState, libxtownrider.ResourceManager, libxtownrider.EntityManager)
Init runs some initialization functions.
func NewGameState ¶
func NewGameState() GameState
NewGameState makes a new instance of GameState struct.
Click to show internal directories.
Click to hide internal directories.