This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
2022-07-31 22:33:30 +08:00
|
|
|
---@class Content
|
|
|
|
local _M = {}
|
|
|
|
|
|
|
|
---@type Texture
|
|
|
|
_M.Texture = nil
|
|
|
|
|
2022-07-31 23:51:12 +08:00
|
|
|
---@type Texture
|
|
|
|
_M.RestartHintTexture = nil
|
|
|
|
|
|
|
|
---@type Texture
|
|
|
|
_M.StartHintTexture = nil
|
|
|
|
|
2022-08-02 01:00:54 +08:00
|
|
|
---@type Texture
|
|
|
|
_M.LicensTexture = nil
|
2022-07-31 23:51:12 +08:00
|
|
|
|
2022-08-04 00:14:17 +08:00
|
|
|
---@type Texture
|
|
|
|
_M.NumberTexture = nil
|
|
|
|
|
2022-07-31 22:33:30 +08:00
|
|
|
---@type TileSheet
|
|
|
|
_M.Tilesheet = nil
|
|
|
|
|
2022-08-04 00:14:17 +08:00
|
|
|
---@type TileSheet
|
|
|
|
_M.NumberTilesheet = nil
|
|
|
|
|
2022-07-31 22:33:30 +08:00
|
|
|
---@type Entity
|
|
|
|
_M.PlayerEntity = nil
|
|
|
|
|
|
|
|
---@type table<Entity>
|
|
|
|
_M.BulletList = {}
|
|
|
|
|
2022-08-02 01:00:54 +08:00
|
|
|
_M.GameStateEnum = {
|
|
|
|
ShowLogo = 1,
|
|
|
|
WaitStart = 2,
|
|
|
|
Gaming = 3,
|
|
|
|
}
|
|
|
|
|
|
|
|
_M.GameState = _M.GameStateEnum.ShowLogo
|
|
|
|
|
2022-07-31 22:33:30 +08:00
|
|
|
---@type table<Entity>
|
|
|
|
_M.MonsterList = {}
|
|
|
|
|
2022-07-31 23:51:12 +08:00
|
|
|
_M.MonsterBirthNum = 0
|
|
|
|
|
|
|
|
_M.MonsterBirthCountDown = 0
|
|
|
|
|
2022-08-02 21:58:27 +08:00
|
|
|
_M.Animations = {
|
|
|
|
---@type Animation
|
|
|
|
PlayerWalkDown = nil,
|
|
|
|
---@type Animation
|
|
|
|
PlayerWalkUp = nil,
|
|
|
|
---@type Animation
|
|
|
|
PlayerWalkRight = nil,
|
|
|
|
---@type Animation
|
|
|
|
PlayerWalkLeft = nil,
|
|
|
|
|
|
|
|
---@type Animation
|
|
|
|
EnemyWalkDown = nil,
|
|
|
|
---@type Animation
|
|
|
|
EnemyWalkUp = nil,
|
|
|
|
---@type Animation
|
|
|
|
EnemyWalkRight = nil,
|
|
|
|
---@type Animation
|
|
|
|
EnemyWalkLeft = nil,
|
|
|
|
}
|
|
|
|
|
2022-08-04 00:14:17 +08:00
|
|
|
---@type number
|
|
|
|
_M.KillNum = 0
|
|
|
|
---@type number
|
|
|
|
_M.Score = 0
|
|
|
|
|
|
|
|
---@type table<Entity>
|
|
|
|
_M.SupplyList = {}
|
|
|
|
|
2022-07-31 22:33:30 +08:00
|
|
|
return _M
|