summaryrefslogtreecommitdiff
path: root/config.lua
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-02-25 12:01:34 +0800
committerEltrac <hi@guhub.cn>2025-02-25 12:01:34 +0800
commitb810b9eeeb7a322989e963edad3a5377504a33b3 (patch)
treead51a74e7960b762e622f5b82614ff19df1c18bd /config.lua
parentffa5f29b0c4d9cc92e6a19abb6b74234868db34a (diff)
feat: shiny hearts speed up player and stun enemies within range
Diffstat (limited to 'config.lua')
-rw-r--r--config.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/config.lua b/config.lua
index c774a26..8697ff1 100644
--- a/config.lua
+++ b/config.lua
@@ -18,6 +18,8 @@ config = {
bulletSize = 15,
summonMargin = 30,
+
+ defaultPlayerSpeed = 100,
}
-- game default states
@@ -27,9 +29,9 @@ function initGame()
x = love.graphics.getWidth() / 2,
y = love.graphics.getHeight() / 2,
body = Body:new("circle", 20),
- speed = 100,
+ speed = config.defaultPlayerSpeed,
shieldedTill = 0,
- hearts = { "redheart", "redheart", "redheart" },
+ hearts = { "redheart", "redheart", "redheart", "shinyheart", "shinyheart" },
facing = Direction.DOWN,
moving = false,
},