Updated levels and created new ones

Updated levels 1 and 2 to make them playable.
Added in levels 3 - 10.
This commit is contained in:
ESloman 2016-02-16 11:00:20 +00:00
parent a7ee3d7de7
commit 03f5bea581
14 changed files with 269 additions and 2 deletions

View file

@ -24,6 +24,7 @@ public abstract class Base {
RED,
GREEN,
BLUE,
YELLOW,
NONE,
}

View file

@ -105,6 +105,12 @@ public class Player extends Base {
bits |= Vars.BIT_BLUE;
texture = App.assets.get("textures/player_blue.png", Texture.class);
break;
case YELLOW:
bits &= ~Vars.BIT_RED;
bits &= ~Vars.BIT_GREEN;
bits |= Vars.BIT_BLUE;
texture = App.assets.get("textures/player_yellow.png", Texture.class);
break;
}
filter.maskBits = bits;

View file

@ -216,6 +216,10 @@ public class Play extends AbstractScreen {
colourchangeSound.play();
player.setCurColour(Base.Colours.BLUE);
}
if(Gdx.input.isKeyJustPressed(Input.Keys.NUM_4))
{
player.setCurColour(Base.Colours.YELLOW);
}
if(Gdx.input.isKeyJustPressed(Input.Keys.V)) { isDebug = !isDebug; }
}