Archive

Posts Tagged ‘Lab’

From the Labs: Tetragon Tile Engine Early Preview

February 11th, 2010 2 comments

An early tech demo of the tetragonLib Tile Engine on which I restarted work on recently again. Click the image to view. There’s not much interaction yet though. You can scroll around with the cursor keys and apart from that open the Rhombus App Framework built-in debug console with F8 and the FPS monitor with SHIFT+F8. Everything is still under heavy development.

However the demo already shows some of the special features of the tile engine. It’s a blitted multi-layer engine which supports animated tiles (but it doesn’t use MovieClips or Sprites for this but animated Bitmap tiles). The demo shows two layers, one as a backdrop and the other with the maze on it. Additionally layers can use layer effects like the second layer here uses a drop shadow filter which is also defined in the tilemap file.

The engine tries to be resource friendly. If there is nothing to update it will not waste render cycles. E.g. if you move to any area without animated tiles on the screen the engine will shortly after start to consume less CPU.

tile_engine_2_early_demo.png

Quite a list of features is still planned to be implemented, for example map-wrapping (to create endless maps), auto-scrolling and support for hexagonal as well as isometric tiles has already been started before but these implementations are going to be completely overhauled.

If you’re interested in having a look at the engine’s tileset and tilemap data files, they can be found here.

ActionScript3 Dice Class

December 4th, 2007 3 comments

In game development randomness is often necessary for certain tasks, be it the random distribution of graphic tiles, a random factor in NPC AI or random stats in a roleplaying game. Especially for the latter purpose the static Dice class provides a set of methods to roll dice as it is common in a Role-playing game, to be exact four-, six-, eight-, ten-, twelve-, twenty-sided and percentile dice.

Read more…

Animated Bitmap Class

September 23rd, 2007 21 comments

The AnimatedBitmap class provides functionality for Bitmap objects that are animated by using a series of still images. When creating a new AnimatedBitmap you provide a BitmapData object that contains an image that consists of the ‘single-frame’ images for the animation.

Read more…

Hexagon Framework Effects Demo

May 28th, 2007 7 comments

Here’s a small demo that I threw together yesterday which shows how the effects in the Hexagon Framework effects package can be used. The effects package contains classes that are used on display objects to apply an animated effect on them. That is not all however. The effects send a signal back to the calling class when they are finished and there are two more classes with that effects can be arranged, namely the EffectChainer class and the EffectCombiner class.

Read more…

Flex Application: Star Wars Name Generator

May 11th, 2006 5 comments

I finally spend some time to make myself more familiar with the Flex 2 Beta and this is what came out as a result: Star Wars Name Generator! It’s a small and modest tool to generate random names (obviously). If you’re a fan of the Star Wars Pen & Paper Role-playing game (like me) you might find this tool useful!

You can generate names for planets and for characters, there are some parameters that can be chosen from before pressing the Generate button. After that it will spit out a list of more or less useful names (some of them sound very exotic). Interesting names can then be dragged and dropped onto the right side list. All names in this list are stored in local shared object on the users computer until the Clear button is pressed. The Switch button displays the saved names in a text area from where the names can be copied to the clipboard. (Small update: Works now with latest Flash Player v9).

swnamegen_preview.png