HTML 5 Engine Update

The other day I started on an HTML5 engine and due to the project being started from a lack of bordom I ended up writing zero documentation, aside from the gravity and collision, which means that this is going to be one of those ‘write once then again’ kind of projects.

The structure of it so far is specific to the player, the characters drawing, there are no proper objects and no proper object handling because of this. Before the project is done I would like to incorporate these things to make the application run better faster smoother etc. As for now I would just like to create the game and make it relatively fun though.

Clouds

I added in a cloud and the cloud kind of moves at the moment. Rather slowly but that’s just because it doesn’t look back around to the other side yet. I would like the could to rain and require the player to have to eat the rain in order to jump, move etc. Once the rain bar is filled then the level is over.

Platforms are going to be in the way of the rain falling and this will allow forcing of the player to jump up onto the platforms to get said water. The trick to the game is going to be a risk vs reward factor which means that the player is going to have to make judgment calls on whether or not the rain drop is worth trying to get to.

 

HTML5 Plat-former Engine Update 1

I have now added in some gravity and velocity to the game. I still need to tweek a few things to make it a little more enjoyable and give it a better transition of movement. At the moment everything tends to happen rather quickly and it looks really blocky and buggy.

At the start of the round the player drops from the top left and lands on the floor. This is the first proof of concept that the dropping of the character is working.

picture!

The next thing on the list is to go through the blocks that the character can land on. This is going to involve creating an array of platforms and checking to see if the character should have landed on it based on where it came from, where the platform is and where it is going.

Yay math! Yay branching statements!

HTML5 Plat-former Engine

Currently working on a little plat-former game engine that is currently being built rather slowly but I am happy with the current rounds of performance and how well everything has been coming together. I now have colliding objects and an integration of tweening motion between points with movement levels. An example of this is the sun moving right, down, left and up again by 50 blocks per 50 or so cycles.


 

The next step in the project is to built a proper gravity engine that will allow for player velocity through the x and y co-ordinates along with object collision with all blocks that will act as ground blocks meaning that if the player hits them they will then be registered on that level and will be able to be moved with the keyboard again.