Power Heroes is an upcoming simple action RPG with arcade feel. Game sets you in an endless world filled with monsters to kill, areas to explore and gold coins to collect. It is simple to play, but it also offers long-term goals to achieve.

Report article RSS Feed Development Update #2 - Level Transitions

In this update: hero select almost complete, and we'll have a closer look at some of the things running behind the scenes.

Posted by kortesalo on Sep 17th, 2013

Another week has passed. Let's have a look what I accomplished.

Hero select almost complete


This is now an updated version of the character/hero select screen I showed in the previous dev update:

characterselectmockup4

I managed to fit in the coins and the buttons at the bottom of the screen. I was also wondering if the hero names should be visible prior to unlocking them?

When you have decided on your hero of choice, you have an option to increase the hero's life hearts before game start. The "PLAY!" button becomes available at this stage.

characterselectmockup4b


Improvements under the hood


In the course of ongoing improvements to the game code, I restructured my hero class and the magical part where level transitions happen. These improvements can be time consuming tasks that are not visible to the player, but they are necessary from the developer's point of view as they help code maintainability, ease of expansion and so on.

Hero class


Initially the hero class was pretty dumb and acted as a container for hero's basic data. Then I added a feature to unlock heroes by collecting a number of items in the game, and this had to be included in the class. With each unlock a hero specific item becomes available for collecting in order to unlock even more heroes later in the game. At this stage the item drop system got involved in the process. So it expands pretty quickly.

Level transitions


Levels are divided into different themes like forest, desert or winter. I have a counter which is incremented after each level and when that counter reaches a pre-determined value, the game progresses into the next theme in order. Transition from level to level (or area to area, depends on what you want to call them) happens normally by scrolling, or in situations where scrolling does not really make sense (entering buildings or a dungeon), by fadeout/fadein sequence.

This worked perfectly fine. However, the theme shift did not have its own transition and relied on the logic built around level to level transitions: scroll or fade. I felt that scrolling from, let's say, forest to desert was too harsh because of the different graphics/tiles, so the level change engine (sounds fancy) now always forces a fadeout/fadein transition in these situations. Works like a charm!

The system still has one issue that I'll need to tackle. More on that soon.

Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Icon
Power Heroes
Platforms
iPhone, iPad
Developed By
kortesalo
Contact
Send Message
Official Page
Kortesalo.com
Release Date
TBD
Game Watch
Track this game
News
Browse
News
Report Abuse
Report article
Related Games
Power Heroes
Power Heroes Indie Single Player Hack 'n' Slash
Related Engines
cocos2d for iPhone
cocos2d for iPhone Zlib Released Sep 7, 2010