Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MoveUpAction is the action for moving up MoveUpAction = "MoveUp" // MoveDownAction is the action for moving down MoveDownAction = "MoveDown" // MoveLeftAction is the action for moving left MoveLeftAction = "MoveLeft" // MoveRightAction is the action for moving right MoveRightAction = "MoveRight" // PreviousLevelAction is the action for switching to the previous level PreviousLevelAction = "PreviousLevel" // NextLevelAction is the action for switching to the next level NextLevelAction = "NextLevel" // RestartAction is the action for restarting the level RestartAction = "Restart" // GoToLevelAction is the action for switching to a specific level GoToLevelAction = "GoToLevel" )
View Source
const ( StateEventNone = StateEvent("NONE") StateEventWarpEscape = StateEvent("WARP_ESCAPE") )
View Source
const ( TileEmpty = gloader.TileEmpty TileWall = gloader.TileWall )
Tileはsystemなどでも使う。systemから直接gloaderを扱わせたくないので、ここでエクスポートする
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FieldPrefabs ¶
type FieldPrefabs struct { LevelInfo loader.EntityComponentList PackageInfo loader.EntityComponentList }
type Game ¶
type Game struct { StateEvent StateEvent Level Level }
type Level ¶
type Level struct { // 階数 Depth int // 横のタイル数 TileWidth gc.Row // 縦のタイル数 TileHeight gc.Col // 1タイルあたりのピクセル数(正方形) TileSize int }
現在の階層
type Prefabs ¶
type Prefabs struct { Intro loader.EntityComponentList Field FieldPrefabs }
Click to show internal directories.
Click to hide internal directories.