Animated Gif of the Angry Guard and status development

In anticipation of the animation function in Pixaki I discovered that the updated Pixely app has an animation function that can export to gif. I added the frames of the angry guard character (a small character in The Lost Adventures)  and create an animated gif.

Angry guard walking
Angry guard walking

It really looks if he is about to beat you up!

The Lost Adventures engine is almost feature complete and I am about to leave pre-production. There will probably missing some features, but they are not necessary for the main story and adventure gameplay.

The adventure engine has the following features :

  • Voice acting support in dialogs
  • Animation system controlled by Lua scripting
  • Game state saving (no saving interface yet!)
  • Follow and zoomcamera controllable with scripting
  • Dialog tree support
  • Scripted background music and sound
  • Inventory management
  • A star path finding for tilemaps
  • All kinds of scripting events , wait, walk to, move to etc..
  • System describing stuff in the world including voice support

Wish list :

  • Save interface
  • Loading screen
  • Character animation for seperate parts, mouth and arm gestures
Archived: Uncategorised

Created font rendering node for the dialogs

I had some serious trouble with my arcade true type font. Because ttf only have one color, I pondered about pre rendered fonts on a bitmap sprite sheet.

Initially I liked this idea, but I like the true type font because it’s quick and resizes really nicely. But the problem is that If I wanted multicolour characters this won’t do. So what did I do? Well, I made two CCLabelTTF nodes and drew them over each other. One node as an outline and one for the fill. This worked very well, except for multiple lines…. The truetype font node shifted a pixel or so on each row. This is because of the rounding errors in the “how many text can fit in a certain box” calculation in the True Type rendering. Look at the green coloured arcade text. Its the TTF version. Some of the characters are smeared across each other and that sucks big time. So what to do then? Wrestle with bitmaps and aliasing again? No not again!

screenieFonts

The orange coloured is drawn block for block by Cocos2D primitives rendered on a texture. A sprite for each character is created from those textures. But with this new approach I had to create the “how many text can fit in a certain box” algorithm for my solution too. Plus all the font input had to be made too, so it took me about 6 hours to make this. But this is a very important aspect of the game, so it deserves the quality it has now. On the plus side I can make lowercase characters, making the game even more authentic to the likes of Indiana Jones and the Fate of Atlantis. Another plus is memory consumption, my solution uses less memory than the TTF one. Another plus is that I also aligned every line of text in the dialogs, just because I was on it anyway.

 

 

Archived: Uncategorised