summaryrefslogtreecommitdiff
path: root/data/bulletData.lua
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-11 19:02:12 +0800
committerEltrac <hi@guhub.cn>2025-03-11 19:02:12 +0800
commitd34e8ea9f06ec4415827a00d83da2d9e45b0e519 (patch)
treeb891271ddf77044ff183910e6de3fa73744786ae /data/bulletData.lua
parentfca22059009adb64240bf1f0d87b46130d02645c (diff)
chore: tidy up dependencies and clean code
Diffstat (limited to 'data/bulletData.lua')
-rw-r--r--data/bulletData.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/bulletData.lua b/data/bulletData.lua
index dda0fdc..5683162 100644
--- a/data/bulletData.lua
+++ b/data/bulletData.lua
@@ -1,4 +1,5 @@
local enemyData = require "data.enemyData"
+local enemies = require "logic.enemies"
local bulletData = {
redheart = {
@@ -12,6 +13,7 @@ local bulletData = {
local w, h = love.graphics.getWidth(), love.graphics.getHeight()
local r = enemyData[enemyType].size + 20
+ local bullets = require "logic.bullets"
-- split heart and shoot at 4 different angle
if math.random(2) == 1 then
-- shoot like a X