Wednesday, January 8, 2014

Developing a flash game 07

Hi there guys...

With this updated, I am trying to create the map dynamically. Right now the map generator gets the width, and height of the map, then it gets the these and general format.

What you see is the platform format of the map, with the jungle theme. The generator surrounds the area with blocks to make sure the player does not go out of the screen.

In the next update, I will create multiple screens and manage navigation between them.


Tuesday, January 7, 2014

Developing a flash game 06

Hi there guys...

In this update, collision detection with map tiles, and sound is being added. Check it out and let me know what you think.


Sunday, January 5, 2014

Developing a flash game 05

Hi there guys...

I kind of had a little bit of time, so I added the logic required to make the character stand on tiles. Right now the character does not get affected by the tiles above or in front of it. Adding these will be done in the next update. For now check this work.

The x and y coordinates are mapped from character real values to map tile values by dividing them. In my case each tile uses 16 pixels, so x and y are divided by 16.

Next the tiles at location x,y are checked. If the character can stand on then then the Y acceleration is zero, otherwise the character is falling, i.e. the y acceleration get increased.


Thursday, December 19, 2013

Developing a flash game 04

Hi there guys...

Adding tile maps to the game wasn't that hard. In the demo below, the map is stored as a text file. This file is interpreted by the game, and all the tiles are then drawn on an image that is the same size of the game. Next the tile map is placed on top of the background. Right now 4 tiles are defined: empty, grass, rocks, and bricks. The interaction between the character and the tiles has not been implemented yet.


Wednesday, December 18, 2013

Developing a flash game 03

Hi there guys...

I just finished adding acceleration to the character and gravity. To test that use left,right, and up buttons:


Tuesday, December 17, 2013

Developing a flash game 02

Hi there guys...

I just finished writing the class that collects user input. Now you could use left and right arrow keys to move the characters left or right. Check it out down here:


Sunday, December 15, 2013

Developing a flash game 01

Hi there...

Recently I found a free flash development tool called FlashDevelop. So I decided to give it a try and learn a little bit about Flash and ActionScript3. Working with flash is kind of easy, so I decided to rewrite the game for flash. I won't dedicate much time to it, instead I will post small builds on the blog. When the game get finished I will put it on the site. For now all I did was creating the main character moving in front of a background.

Over time I hope I could make something that people enjoy and have fun with.

Thanks for reading and have a nice day.