diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-11 19:02:12 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-11 19:02:12 +0800 |
| commit | d34e8ea9f06ec4415827a00d83da2d9e45b0e519 (patch) | |
| tree | b891271ddf77044ff183910e6de3fa73744786ae /data/bulletData.lua | |
| parent | fca22059009adb64240bf1f0d87b46130d02645c (diff) | |
chore: tidy up dependencies and clean code
Diffstat (limited to 'data/bulletData.lua')
| -rw-r--r-- | data/bulletData.lua | 2 |
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 |
