T-minus: 1 day 18 hours.
BAAAAAD situation, as I single-handedly knocked a day's worth of work out of range due to work, sickness, and other obligations. x.x.
From here on out, it's the grind. Which brings the latest update.
After working for the past....2 hours or so, I finally have the main menu and game over menus halfway implemented, and switching "states" or scenes implemented as well. The rest of the classes I need to implement are laid out already, now its just time to fill in the code. The only problem is that as I continue, I find myself wanting to create my own assets, as far as graphics are concerned, which takes more time out. That, and every now and then, I find myself dwelling on if switch statements are safe to use in this situation....
A little snapshot of the work in progress: ^^^^^
And the code that drives it:
WarpexGame:
public void render ()
{
Gdx.gl.glClearColor(0, 0, 0, 0);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
state.readGameState(spr, control);
}
GameState class:
public void readGameState(SpriteClass sp, Controller con)
{
switch(s)
{
case 1:
{
sp.getSprite(1).setTexture(sp.getTexture(1));
ortho.update();
con.poll(this);
batch.begin();
sp.getSprite(7).draw(batch);
batch.end();
break;
}
case 2:
{
ortho.update();
con.poll(this, sp.getSprite(1));
batch.begin();
sp.getSprite(1).draw(batch);
batch.end();
break;
}
case 3:
{
ortho.update();
con.poll(this);
batch.begin();
sp.getSprite(8).draw(batch);
batch.end();
break;
}
}
}
As of now, here's the rest to get done:
- Adapt the game state to address the player / enemies, not sprites themselves
- Add enemies + their AI
- Add collision
- Add the scrolling star background
- Add Sound*
- Add rewind feature*
- Add individual levels*
- Add scripting for levels*
- Add Animation* (explosions, etc)
Although, I do have some questions during programming, with my main one being if LibGDX has its own exception handling, or should I stick to creating my own with Java's native libraries? I'd rather not, since after the jam I'd like to make this portable for all platforms, but for now, I don't have much need.