diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-04 11:50:56 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-04 11:50:56 +0800 |
| commit | ff9be4ad80564c085a49d3a3f4bfbb95669dc594 (patch) | |
| tree | 4fb161007f8aa3d7765c7bd5857264c738d04527 /data/enemyData.lua | |
| parent | 1307ecc06232e606e57190b4e3dfef497bc7c185 (diff) | |
refactor: make data tables local
Diffstat (limited to 'data/enemyData.lua')
| -rw-r--r-- | data/enemyData.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/data/enemyData.lua b/data/enemyData.lua index c58eb51..1a06229 100644 --- a/data/enemyData.lua +++ b/data/enemyData.lua @@ -1,4 +1,5 @@ -enemyData = { +require "objects.direction" +local enemyData = { lancer = { size = 20, zoom = 1/16, @@ -80,7 +81,4 @@ enemyData = { } } -enemyTypes = {} -for type, _ in pairs(enemyData) do - table.insert(enemyTypes, type) -end +return enemyData |
