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.
InfinitShoot/game/constants.lua

109 lines
1.7 KiB
Lua
Raw Normal View History

2022-07-31 22:33:30 +08:00
local _M = {}
_M.ShowLicenseTime = 2.5
2022-08-04 00:14:17 +08:00
_M.SoundName = {
Shoot = "SHOOT",
PlayerHurt = "PLAYER_HURT",
MonsterHurt = "MONSTER_HURT",
GameOver = "GAMEOVER",
2022-08-06 00:32:20 +08:00
HpRecover = "HPRECOVER",
PickupGun = "PickupGun",
2022-08-04 00:14:17 +08:00
}
2022-07-31 22:33:30 +08:00
_M.TileSize = 32
_M.PlayerInfo = {
2022-08-06 02:31:13 +08:00
velocity = 200,
hp = 50,
2022-07-31 22:33:30 +08:00
}
2022-08-06 02:31:13 +08:00
_M.PlayerSlowSpeed = 50
2022-07-31 22:33:30 +08:00
_M.MonsterInfo = {
velocity = 100,
hp = 50,
damage = 10,
}
2022-08-06 02:31:13 +08:00
_M.MonsterDissolveTime = 5
2022-07-31 22:33:30 +08:00
_M.RoleColliBox = {
w = 14,
h = 32,
x = 9,
y = 0,
}
2022-08-04 00:14:17 +08:00
_M.SupplyColliBox = {
w = 32,
h = 32,
x = 9,
y = 0,
}
2022-07-31 23:51:12 +08:00
_M.MonsterBirthInterval = 1
_M.MonsterBirthInitNum = 1
2022-07-31 22:33:30 +08:00
_M.Invincible = 1
_M.BulletColliBox = {
x = 10,
y = 0,
w = 12,
h = 12,
}
_M.StonePutProbability = 0.1
_M.PlayerHpBarInfo = {
width = _M.TileSize,
height = 5,
}
_M.MonsetHpBarInfo= {
width = _M.TileSize,
height = 5,
}
2022-08-04 00:14:17 +08:00
_M.BulletType = {
Normal = 1,
Ice = 2,
Fire = 3,
}
2022-07-31 22:33:30 +08:00
_M.BulletInfo = {
2022-08-04 00:14:17 +08:00
[_M.BulletType.Normal] = {
damage = 10,
velocity = 500,
cooldown = 0.1,
initNum = -1,
},
[_M.BulletType.Ice] = {
damage = 5,
velocity = 400,
2022-08-06 02:31:13 +08:00
cooldown = 0.2,
2022-08-04 00:14:17 +08:00
initNum = 100,
},
[_M.BulletType.Fire] = {
damage = 7,
velocity = 600,
2022-08-06 02:31:13 +08:00
cooldown = 0.4,
2022-08-04 00:14:17 +08:00
fireDamage = 1,
initNum = 100,
},
2022-07-31 22:33:30 +08:00
}
2022-08-04 00:14:17 +08:00
_M.BulletEffectTime = {
2022-08-06 02:31:13 +08:00
IceTime = 5,
2022-08-04 00:14:17 +08:00
FireTime = 2,
2022-07-31 22:33:30 +08:00
}
2022-08-04 00:14:17 +08:00
_M.RoleState = {
Normal = 1,
Ice = 2,
Fire = 3,
}
2022-08-06 00:32:20 +08:00
_M.SupplyFalldownKillNum = 20
2022-08-04 00:14:17 +08:00
_M.SupplyType = {
IceGun = 1,
FireGun = 2,
HpRecover = 3,
}
_M.SupplyItem = {
2022-08-06 00:32:20 +08:00
[_M.SupplyType.IceGun] = { num = 50},
[_M.SupplyType.FireGun] = { num = 50},
2022-08-04 00:14:17 +08:00
[_M.SupplyType.HpRecover] = { recover = 50},
2022-07-31 22:33:30 +08:00
}
return _M