Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function replaceSprite(self, name)
- modApi:appendAsset("img/units/player/"..name..".png",self.resourcePath.."/units/"..name..".png")
- end
- sprites = {
- "auto_mech_big",
- "auto_mech_idle",
- "auto_mech_spider",
- }
- for i, name in ipairs(sprites) do
- replaceSprite(self, name)
- replaceSprite(self, name.."_a")
- replaceSprite(self, name.."_broken")
- replaceSprite(self, name.."_ns")
- replaceSprite(self, name.."_h")
- replaceSprite(self, name.."_w")
- replaceSprite(self, name.."_w_broken")
- end
- ANIMS.AUTO_MechBig = ANIMS.MechUnit:new{ Image = "units/player/auto_mech_big.png", PosX = -19, PosY = -14 }
- ANIMS.AUTO_MechBiga = ANIMS.MechUnit:new{ Image = "units/player/auto_mech_big_a.png", PosX = -19, PosY = -14, NumFrames = 4 }
- ANIMS.AUTO_MechBigw = ANIMS.MechUnit:new{ Image = "units/player/auto_mech_big_w.png", PosX = -17, PosY = -4 }
- ANIMS.AUTO_MechBig_broken = ANIMS.MechUnit:new{ Image = "units/player/auto_mech_big_broken.png", PosX = -17, PosY = -2 }
- ANIMS.AUTO_MechBigw_broken = ANIMS.MechUnit:new{ Image = "units/player/auto_mech_big_w_broken.png", PosX = -14, PosY = 6 }
- ANIMS.AUTO_MechBig_ns = ANIMS.MechIcon:new{ Image = "units/player/auto_mech_big_ns.png" }
- ANIMS.AUTO_MechIdle = ANIMS.MechUnit:new{ Image = "units/player/auto_mech_idle.png", PosX = -18, PosY = -5 }
- ANIMS.AUTO_MechIdlea = ANIMS.MechUnit:new{ Image = "units/player/auto_mech_idle_a.png", PosX = -18, PosY = -5, NumFrames = 4 }
- ANIMS.AUTO_MechIdlew = ANIMS.MechUnit:new{ Image = "units/player/auto_mech_idle_w.png", PosX = -18, PosY = 8 }
- ANIMS.AUTO_MechIdle_broken = ANIMS.MechUnit:new{ Image = "units/player/auto_mech_idle_broken.png", PosX = -18, PosY = -5 }
- ANIMS.AUTO_MechIdlew_broken = ANIMS.MechUnit:new{ Image = "units/player/auto_mech_idle_w_broken.png", PosX = -18, PosY = 8 }
- ANIMS.AUTO_MechIdle_ns = ANIMS.MechIcon:new{ Image = "units/player/auto_mech_idle_ns.png" }
- ANIMS.AUTO_MechSpider = ANIMS.MechUnit:new{ Image = "units/player/auto_mech_spider.png", PosX = -20, PosY = -1}
- ANIMS.AUTO_MechSpidera = ANIMS.MechUnit:new{ Image = "units/player/auto_mech_spider_a.png", PosX = -20, PosY = -1, NumFrames = 4 }
- ANIMS.AUTO_MechSpiderw = ANIMS.MechUnit:new{ Image = "units/player/auto_mech_spider_w.png", PosX = -22, PosY = 8 }
- ANIMS.AUTO_MechSpider_broken = ANIMS.MechUnit:new{ Image = "units/player/auto_mech_spider_broken.png", PosX = -20, PosY = 1 }
- ANIMS.AUTO_MechSpiderw_broken = ANIMS.MechUnit:new{ Image = "units/player/auto_mech_spider_w_broken.png", PosX = -19, PosY = 10 }
- ANIMS.AUTO_MechSpider_ns = ANIMS.MechIcon:new{ Image = "units/player/auto_mech_spider_ns.png" }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement