From d34e8ea9f06ec4415827a00d83da2d9e45b0e519 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Tue, 11 Mar 2025 19:02:12 +0800 Subject: chore: tidy up dependencies and clean code --- data/bulletData.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'data') 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 -- cgit v1.2.3