Reworking the junkmap
This commit is contained in:
@@ -102,7 +102,7 @@ var moonlightSettings = {
|
|||||||
'layers': {
|
'layers': {
|
||||||
'0 - NonCollide Base': {
|
'0 - NonCollide Base': {
|
||||||
'collides': false,
|
'collides': false,
|
||||||
'collisionBetwen': [0, 0]
|
'collisionBetween': [0, 0]
|
||||||
},
|
},
|
||||||
'0 - Collide Base': {
|
'0 - Collide Base': {
|
||||||
'collides': true,
|
'collides': true,
|
||||||
@@ -785,7 +785,7 @@ GameState.prototype.create = function()
|
|||||||
this.map_collision_layers = [];
|
this.map_collision_layers = [];
|
||||||
|
|
||||||
for (var ln in moonlightSettings['map']['layers']) {
|
for (var ln in moonlightSettings['map']['layers']) {
|
||||||
lp = moonlightSettings['map']['layers']['lp'];
|
lp = moonlightSettings['map']['layers'][ln];
|
||||||
layer = map.createLayer(ln);
|
layer = map.createLayer(ln);
|
||||||
map.setCollisionbetween(
|
map.setCollisionbetween(
|
||||||
lp['collisionBetween'][0],
|
lp['collisionBetween'][0],
|
||||||
|
|||||||
Reference in New Issue
Block a user