gamecontext

package
v0.0.0-...-57f8e72 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameContext

type GameContext struct {
	GameObjects *gameobject.LinkedList
	Window      *GameWindow
}

TODO: Implement game context, will hold wall information and other params needed for player and enemies, collidable objects

func GetInstance

func GetInstance() *GameContext

Singleton, can get game context instance everywhere

func (*GameContext) DrawGameElements

func (context *GameContext) DrawGameElements()

type GameWindow

type GameWindow struct {
	Width  float32
	Height float32
}

Jump to

Keyboard shortcuts

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