tweaked y collision offset

This commit is contained in:
Sebastian Hugentobler 2014-06-04 15:40:35 +02:00
parent deb8199f9c
commit 626d6adb9f
4 changed files with 3 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

View File

@ -4,9 +4,9 @@ local animator = require '../engine/animator'
Gridwalker = class()
Gridwalker.speed = 2
Gridwalker.collisionTestSize = 12
Gridwalker.collisionTestSize = 13
Gridwalker.neighbourOffsetX = (object.width - Gridwalker.collisionTestSize) / 2
Gridwalker.neighbourOffsetY = object.width - Gridwalker.collisionTestSize * 1.5
Gridwalker.neighbourOffsetY = object.width - Gridwalker.collisionTestSize * 1.9
Gridwalker.testShape = nil
Gridwalker.objectinfo = nil
Gridwalker.animation = nil

View File

@ -84,7 +84,7 @@ end
function Engine:initObjects()
self.objects = {}
self.map:addCustomLayer("object layer", 4)
self.map:addCustomLayer("object layer", 5)
local objectLayer = self.map.layers["object layer"]
objectLayer.sprites = {}