aboutsummaryrefslogtreecommitdiff
path: root/src/textures.lua
diff options
context:
space:
mode:
authorne_mene <[email protected]>2026-03-12 17:36:06 +0100
committerne_mene <[email protected]>2026-03-12 17:36:06 +0100
commitbedfad9ae704c9f6a72d71f37dd090170da3a908 (patch)
tree95ff5d5b26a8f0171c1a76afe63192f6439b1db6 /src/textures.lua
parent6fc7035db506b648ab27f21cd4ccbe2e874e3750 (diff)
tiles.
Diffstat (limited to 'src/textures.lua')
-rw-r--r--src/textures.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/textures.lua b/src/textures.lua
index 0738912..8cf98a8 100644
--- a/src/textures.lua
+++ b/src/textures.lua
@@ -73,9 +73,7 @@ function load_textures_from(path)
load_textures_from(filepath)
else
if filepath:match("%.png$") then
- local name = string.gsub(filepath, ".png", "")
- name = string.gsub(name, "assets/images/", "")
- img_bank[name] = lg.newImage(filepath)
+ img_bank[filepath] = lg.newImage(filepath)
elseif filepath:match("%.ase$") then
load_ase(filepath)
end