Friday, January 17, 2014

Developing a flash game 12

Hi there guys...

In this simple update, your character get affected when colliding with monkeys. The effect you see is done by applying a color transform to the sprite.

A TextField is used to display the character HP.

Wednesday, January 15, 2014

Developing a flash game 11

Hi there guys...

What better than hearing and seeing explosions in a video game? Well in this update I added the sound of explosions, and a particle effect. Now you can kill monkeys. To do so, just press space to throw a bomb.

Sunday, January 12, 2014

Developing a flash game 10

Hi there guys...

In this update I made your character capable of throwing bombs. Try pressing space and see what happens. Right now the bombs does not explode or affect anyone, but that will be done in the next updates.

Friday, January 10, 2014

Developing a flash game 09

Hi there guys...

In this update, the map generator is using the jungle theme to generate a large map consisting of 1000 screens. The map now have monkeys. Right now monkeys don't affect you in any way.

The monkeys are controlled by Finite State Machine. With simple input based on their standing status and a random number they can decide to jump or stay still.

Check out the update below. Also check out the updated mini-map by pressing enter.

Thursday, January 9, 2014

Developing a flash game 08

Hi there guys...

In this update you get a map containing 100 screens. The map generator links them randomly and build platforms to help linking them. Of coule the number can be increased - I tried 1000 - but 100 is more than enough.

By pressing Enter key you can show/hid the mini map, and see your location. I hope your character does not get trapped when the map renders. If so, then try refreshing the page. I haven't added checks to prevent traps yet.

In the next update, I will focus on adding other elements to the map such as trees, houses, etc.

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.