From 87a133a74b1a122c88f752ae3d82a79c2abac41d Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 27 Jul 2019 15:40:19 +0200 Subject: [PATCH] fix: use right height for Battle-like blocks --- sonic-radiance.love/game/modules/world/maps/battle.lua | 2 +- sonic-radiance.love/game/modules/world/maps/test.lua | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sonic-radiance.love/game/modules/world/maps/battle.lua b/sonic-radiance.love/game/modules/world/maps/battle.lua index 3ba24a7..9b6900a 100644 --- a/sonic-radiance.love/game/modules/world/maps/battle.lua +++ b/sonic-radiance.love/game/modules/world/maps/battle.lua @@ -27,7 +27,7 @@ function BattleMap:addBlock(x, y, w, h, top, bottom) if (self.assets.images[bottom] == nil) then self.assets:addImage(bottom, self.directory .. bottom .. ".png") end - self.world.obj.collisions["textured"](self.world, x*2, y, 0, w*2, h, 64, top, bottom) + self.world.obj.collisions["textured"](self.world, x*2, y, 0, w*2, h, 48, top, bottom) end function BattleMap:getDimensions() diff --git a/sonic-radiance.love/game/modules/world/maps/test.lua b/sonic-radiance.love/game/modules/world/maps/test.lua index d497e45..f11b7b4 100644 --- a/sonic-radiance.love/game/modules/world/maps/test.lua +++ b/sonic-radiance.love/game/modules/world/maps/test.lua @@ -10,10 +10,10 @@ end function TestMap:loadCollisions() self.world:newCollision("wall", 0, 0, -16, 8*64, 8*32, 16) - self.world:newCollision("wall", 64*1, 32*1, 0, 64*1, 32*3, 64) - self.world:newCollision("wall", 64*4, 32*1, 0, 64*3, 32*1, 64) - self.world:newCollision("wall", 64*6, 32*5, 0, 64*1, 32*3, 64) - self.world:newCollision("wall", 64*1, 32*7, 0, 64*3, 32*1, 64) + self.world:newCollision("wall", 64*1, 32*1, 0, 64*1, 32*3, 48) + self.world:newCollision("wall", 64*4, 32*1, 0, 64*3, 32*1, 48) + self.world:newCollision("wall", 64*6, 32*5, 0, 64*1, 32*3, 48) + self.world:newCollision("wall", 64*1, 32*7, 0, 64*3, 32*1, 48) end function TestMap:getDimensions()