From d91ee3946c4e1776fcb4c9d5d3dc9b7d83dfe1f0 Mon Sep 17 00:00:00 2001 From: ESloman Date: Mon, 22 Feb 2016 14:30:33 +0000 Subject: [PATCH 1/2] Level Changes Adding in a new layer in later levels caused old levels to crash due to missing layer. Added empty layer for the older levels. --- core/assets/levels/level1.tmx | 5 +++++ core/assets/levels/level2.tmx | 5 +++++ core/assets/levels/level3.tmx | 5 +++++ core/assets/levels/level5.tmx | 5 +++++ core/src/com/game/Actor/Spike.java | 5 ++--- core/src/com/game/Screens/Play.java | 2 +- 6 files changed, 23 insertions(+), 4 deletions(-) diff --git a/core/assets/levels/level1.tmx b/core/assets/levels/level1.tmx index d49126a..b28e2df 100644 --- a/core/assets/levels/level1.tmx +++ b/core/assets/levels/level1.tmx @@ -29,4 +29,9 @@ + + + eJxjYBgFo2AUjIJRMApIBwAGQAAB + + diff --git a/core/assets/levels/level2.tmx b/core/assets/levels/level2.tmx index 9eda0ee..d07c016 100644 --- a/core/assets/levels/level2.tmx +++ b/core/assets/levels/level2.tmx @@ -29,4 +29,9 @@ + + + eJxjYBgFo2AUjIJRMApIBwAGQAAB + + diff --git a/core/assets/levels/level3.tmx b/core/assets/levels/level3.tmx index e106351..abdf43d 100644 --- a/core/assets/levels/level3.tmx +++ b/core/assets/levels/level3.tmx @@ -29,4 +29,9 @@ + + + eJxjYBgFo2AUjIJRMApIBwAGQAAB + + diff --git a/core/assets/levels/level5.tmx b/core/assets/levels/level5.tmx index 2a8a752..a7fd15f 100644 --- a/core/assets/levels/level5.tmx +++ b/core/assets/levels/level5.tmx @@ -29,4 +29,9 @@ + + + eJxjYBgFo2AUjIJRMApIBwAGQAAB + + diff --git a/core/src/com/game/Actor/Spike.java b/core/src/com/game/Actor/Spike.java index 36e51f8..d89203c 100644 --- a/core/src/com/game/Actor/Spike.java +++ b/core/src/com/game/Actor/Spike.java @@ -29,10 +29,9 @@ public class Spike extends Base { new Vector2((-size.x / 2 + 5) / PPM, (size.y / 2 + 5) / PPM), new Vector2((size.x / 2 - 5) / PPM, (size.y / 2 + 5) / PPM) }, - "SPIKE", + "SPIKES", true, - Vars.BIT_MISC, - Vars.BIT_PLAYER + Vars.BIT_MISC, maskBits ); } } diff --git a/core/src/com/game/Screens/Play.java b/core/src/com/game/Screens/Play.java index 389177c..de5d066 100644 --- a/core/src/com/game/Screens/Play.java +++ b/core/src/com/game/Screens/Play.java @@ -352,7 +352,7 @@ public class Play extends AbstractScreen { { introWindow = new Window("Level "+levelNumber, skin); introWindow.getTitleLabel().setPosition(350, 500); - introBackground = new Image(app.assets.get("textures/level1Intro.png", Texture.class)); + introBackground = new Image(app.assets.get("textures/level" + levelNumber + "Intro.png", Texture.class)); introWindow.setBackground(introBackground.getDrawable()); introWindow.setSize(700, 500); introWindow.setPosition(280, 50); From a3d850647d75b25c83f96ec270bbfd319c5c998d Mon Sep 17 00:00:00 2001 From: ESloman Date: Mon, 22 Feb 2016 15:40:49 +0000 Subject: [PATCH 2/2] Level Changes Updated Level 8 + 9 --- core/assets/levels/level8.tmx | 1 - core/assets/levels/level9.tmx | 13 ++++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/core/assets/levels/level8.tmx b/core/assets/levels/level8.tmx index f3d1813..804bd88 100644 --- a/core/assets/levels/level8.tmx +++ b/core/assets/levels/level8.tmx @@ -32,7 +32,6 @@ - eJxjYBgFo2AUUBOw0lnfKBhYMJLjDQAnTAAQ diff --git a/core/assets/levels/level9.tmx b/core/assets/levels/level9.tmx index 748488f..8702aab 100644 --- a/core/assets/levels/level9.tmx +++ b/core/assets/levels/level9.tmx @@ -1,5 +1,5 @@ - + @@ -8,7 +8,7 @@ - eJxjYBgFo2AUDCRgRMPk6h3JgAmKYYAZCY+CUTAKRsFAAABsiAAV + eJxjYBgFQw0wIuFRgBswDbQDiASMDJTFKaVpgVA4DUQ4MpFoL7p6ZihGlqcU0Cu/IfsFVzgwYxEDgcFQNlBqN3p+QPYPMwNm3OIzY6ABEwP2OCTGD/gAJXpHAf0AADOTAFA= @@ -20,11 +20,18 @@ - + + + + + + eJztwTEBAAAAwqD1T20JT6AAAHgaCWAAAQ== + +