Documentation
¶
Index ¶
- Variables
- func LevelCoordinatesToScreen(x, y float64) (float64, float64)
- func LoadMap(filePath string)
- func NewCreep(creepType int, creepID int64, x float64, y float64) gohan.Entity
- func ObjectToRect(o *tiled.Object) image.Rectangle
- func Reset()
- func SetMessage(message string, duration int)
- func StartGame()
- func TileToGameCoords(x, y int) (float64, float64)
- type GameWorld
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ObjectToRect ¶
func SetMessage ¶
func TileToGameCoords ¶
Types ¶
type GameWorld ¶
type GameWorld struct { *gohan.World Player gohan.Entity ScreenW, ScreenH int DisableEsc bool Debug int NoClip bool GameStarted bool GameStartedTicks int GameOver bool MessageVisible bool MessageTicks int MessageDuration int MessageUpdated bool MessageText string PlayerX, PlayerY float64 CamX, CamY float64 CamScale float64 CamMoving bool PlayerWidth float64 PlayerHeight float64 Map *tiled.Map ObjectGroups []*tiled.ObjectGroup HazardRects []image.Rectangle CreepRects []image.Rectangle CreepEntities []gohan.Entity TriggerEntities []gohan.Entity TriggerRects []image.Rectangle TriggerNames []string NativeResolution bool BrokenPieceA, BrokenPieceB gohan.Entity TileImages map[uint32]*ebiten.Image ResetGame bool // contains filtered or unexported fields }
func (*GameWorld) SetGameOver ¶
Click to show internal directories.
Click to hide internal directories.