Web Game


Use Z,Q,S,D to move, mouse to attack and space to swap mode

This game has been created during a Ludum Dare-like competition called Dev'Art. The theme was relaxation and we have to do whatever we want, in 32 Hours.

Details

General

Our team :

I have done it with my colleague Alexis Lafuente (Check his website here !). He was the graphic designer and has done the game's sprites in pixel-art.

I was the programmer, using JavaScript and HTML5. I've chosen those programming languages because of portability and easy-of-use (what I though at the beginning). Actually, before the competition I've prepared a Physic and Graphic engine in JavaScript, and JavaScript doesn't have real "classes" like any object-oriented languages. Which has slow down my productivity.
During the competition, I've done the gameplay part, ennemy's behavior, wave system and UI.

Game mechanics
As I said, the theme was relaxation, but we've extrapolated it : To have relaxation, you need to have some stressing parts !
Here came the idea of Hell/Heaven mode. The player fights against quick ennemies with a lot of damages, we called this part "Hell".
They can go in "heaven" mode to freeze ennemies and heal themself for a time.
Here a picture of the heaven mode :

The green bar shows how long the player can stay in heaven mode.

Physic Engine

The physic engine is quite simple, it uses elastic and inelastic models. Each object in the game have a PhysicComponent containing circles with informations :

Each PhysicComponent are placed every frame in a grid, to avoid unneccessary collisions.
You can see the PhysicEngine by using the checkbox, right after PhysicObjectCount :

Red circles are not colliding and green ones are.

Graphic Engine

Not that much to say about graphic part. Objects are as well composed of DrawComponent, containing animated sprites.