tweaked y collision offset
This commit is contained in:
parent
deb8199f9c
commit
626d6adb9f
Binary file not shown.
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Binary file not shown.
@ -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
|
||||
|
@ -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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user