Remove old Leaf Ranger code from main

This commit is contained in:
mars 2023-04-20 12:42:33 -04:00
parent 999d1b41c1
commit 7c06d99d27
1 changed files with 0 additions and 18 deletions

View File

@ -30,24 +30,6 @@ function love.load()
BlockyFont = Font(blockyFont, 8, 8, blockFontChars)
local leafRangerSprites = love.graphics.newImage("assets/leaf-ranger.png")
local leafRangerAtlas = Atlas(leafRangerSprites, 288, 128)
local function sprites(row, len, on_finish, next)
local start = (row - 1) * 22 + 1
local anim = Animation:new_spanned(leafRangerAtlas, start, start + len - 1)
return { animation = anim, on_finish = on_finish, next = next }
end
local states = {
idle = sprites(1, 12),
run = sprites(2, 10),
hurt = sprites(16, 6, "goto", "idle"),
death = sprites(17, 19, "stop"),
}
LeafRanger = Animator(states, "idle")
local options = {}
for idx, unit in ipairs(Units) do