Skip to content

Commit

Permalink
Merge pull request #36 from ncskier/RootingEnemy
Browse files Browse the repository at this point in the history
Fixed Rooting enemies still being movable
  • Loading branch information
ncskier authored May 6, 2018
2 parents 07bb234 + 3226ae8 commit dd8218a
Show file tree
Hide file tree
Showing 9 changed files with 677 additions and 10 deletions.
9 changes: 6 additions & 3 deletions assets/json/levelList.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
"json/levels/level2.json",
"json/levels/level3.json",
"json/levels/level4.json",
"json/levels/level5.json",
"json/levels/level6.json",
"json/levels/level7.json",
"json/levels/level8.json",
"json/levels/level9.json"
"json/levels/level9.json",
"json/levels/level10.json",
"json/levels/level11.json",
"json/levels/level12.json",
"json/levels/level13.json",
"json/levels/level14.json"

]
}
72 changes: 72 additions & 0 deletions assets/json/levels/level10.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"size": {
"width": 5,
"height": 5
},
"generationAlgorithm": "random",
"seed": 10,
"colors": 6,
"tiles": [],
"enemies": {
"enemy1": {
"components": {
"location": {
"x": 0,
"y": 2,
"direction" : 2
},
"immobleMovement": {},
"rooting":{},
"idle": {
"textureKeys": "enemy2_strip",
"textureRows": [
8
],
"textureColumns": [
16
],
"textureSize": [
128
],
"textureSpeed": [
2
]
},
"attackMelee" : {}
}
},
"enemy2": {
"components": {
"location": {
"x": 2,
"y": 4,
"direction" : 1
},
"rooting":{},
"immobleMovement": {
},
"idle": {
"textureKeys": "enemy2_strip",
"textureRows": [
8
],
"textureColumns": [
16
],
"textureSize": [
128
],
"textureSpeed": [
2
]
},
"attackMelee" : {}
}
}
},
"mika": {
"x": 2,
"y": 2
},
"allies": {}
}
128 changes: 128 additions & 0 deletions assets/json/levels/level11.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"size": {
"width": 5,
"height": 5
},
"generationAlgorithm": "random",
"seed": 11,
"colors": 6,
"tiles": [],
"enemies": {
"enemy1": {
"components": {
"location": {
"x": 0,
"y": 2,
"direction" : 2
},
"immobleMovement": {},
"rooting":{},
"idle": {
"textureKeys": "enemy2_strip",
"textureRows": [
8
],
"textureColumns": [
16
],
"textureSize": [
128
],
"textureSpeed": [
2
]
},
"attackMelee" : {}
}
},
"enemy2": {
"components": {
"location": {
"x": 2,
"y": 4,
"direction" : 1
},
"rooting":{},
"immobleMovement": {
},
"idle": {
"textureKeys": "enemy2_strip",
"textureRows": [
8
],
"textureColumns": [
16
],
"textureSize": [
128
],
"textureSpeed": [
2
]
},
"attackMelee" : {}
}
},
"enemy3": {
"components": {
"location": {
"x": 3,
"y": 2,
"direction" : 3
},
"dumbMovement": {
"movementDistance": 1
},
"idle": {
"textureKeys": "enemy0_strip",
"textureRows": [
8
],
"textureColumns": [
16
],
"textureSize": [
128
],
"textureSpeed": [
2
]
},
"attackMelee" : {}
}
},
"enemy4": {
"components": {
"location": {
"x": 2,
"y": 0,
"direction" : 0
},
"dumbMovement": {
"movementDistance": 1
},
"idle": {
"textureKeys": "enemy0_strip",
"textureRows": [
8
],
"textureColumns": [
16
],
"textureSize": [
128
],
"textureSpeed": [
2
]
},
"attackMelee" : {}
}
}
},
"mika": {
"x": 2,
"y": 2
},
"allies": {}
}
128 changes: 128 additions & 0 deletions assets/json/levels/level12.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"size": {
"width": 5,
"height": 5
},
"generationAlgorithm": "random",
"seed": 13,
"colors": 6,
"tiles": [],
"enemies": {
"enemy1": {
"components": {
"location": {
"x": 0,
"y": 4,
"direction" : 1
},
"immobleMovement": {},
"rooting":{},
"idle": {
"textureKeys": "enemy2_strip",
"textureRows": [
8
],
"textureColumns": [
16
],
"textureSize": [
128
],
"textureSpeed": [
2
]
},
"attackMelee" : {}
}
},
"enemy2": {
"components": {
"location": {
"x": 2,
"y": 4,
"direction" : 1
},
"rooting":{},
"immobleMovement": {
},
"idle": {
"textureKeys": "enemy2_strip",
"textureRows": [
8
],
"textureColumns": [
16
],
"textureSize": [
128
],
"textureSpeed": [
2
]
},
"attackMelee" : {}
}
},
"enemy3": {
"components": {
"location": {
"x": 4,
"y": 0,
"direction" : 3
},
"rooting":{},
"immobleMovement": {
},
"idle": {
"textureKeys": "enemy2_strip",
"textureRows": [
8
],
"textureColumns": [
16
],
"textureSize": [
128
],
"textureSpeed": [
2
]
},
"attackMelee" : {}
}
},
"enemy4": {
"components": {
"location": {
"x": 2,
"y": 0,
"direction" : 3
},
"smartMovement": {
"movementDistance": 1
},
"idle": {
"textureKeys": "enemy1_strip",
"textureRows": [
8
],
"textureColumns": [
16
],
"textureSize": [
128
],
"textureSpeed": [
2
]
},
"attackMelee" : {}
}
}
},
"mika": {
"x": 0,
"y": 0
},
"allies": {}
}
Loading

0 comments on commit dd8218a

Please sign in to comment.