warning: Creating default object from empty value in /home/mlange/codes.widged.com/modules/taxonomy/taxonomy.pages.inc on line 34.

RPG maker

Terrain Editor

Something I had wanted to figure out. The LandscapeMapEditor on wondefl provided all that was required to get started. The original code was under a MIT license and that license is therefore carried on.

This is a strictly actionscript project. Label and InputText controls come from the minimalComps library by Keith Peters.

You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialize correctly.

NOTE. It looks like I changed the controls for the diameter of the circle. Use the up arrow and down arrow to increase/decrease the radius of the circle.

Demo | Source

Terrain generation in Flash

Background Information

Generating Random Fractal Terrain by Paul Martz. A good overview of the theory behind terrain generation (midpoint displacement and other techniques).

Actionscript 3

An extensive list of links on terrain rendering in Flash by Bruce Jawn

Impressive ones at wonderfl

Code found on wondefl can be executed within Flex Builder. Create a project File > New ... > Actionscript Project. Make sure that you have the Flex SDK 3.5 installed and that this project makes use of it (Project > Properties > Actionscript Compilers > Flex SDK Version). If Base64Decoder is required for the project to run, download the SDK source for 3.5. Locate mx.utils.Base64Decoder. In your project, create a folder mx/utils/ and copy there the class Base64Decoder. Delete the line that define the resource metadata as this requires the Flex framework (not included in an Actionscript project). Run your project,

Simplistic map maker

Expand on the tileset example to provide a map editor

(The download functionality requires flash player 10)

You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialize correctly.

Demo | Source

Free to re-use tilesets can be found on the Reiners website. As per Reiners Readme Page "All the graphics and meshes are freeware. Even for commercial Games. I just want my name in the Credits in the commercial case: Reiner "Tiles" Prokein. You can modify my graphics in every needed way to fit it to your needs: size, colour, fileformat, etc., you can reuse the textures ... . "

Further resources are listed on the widged wiki, under game content and game tiles. (Note however that these links were collected 2-5 years ago, some may be broken)

Mini tileset/chipset parser in Flex.

Tile manipulation via a SpriteSheet (grid that defines the location of the tiles) and TileSet (combination of grid and image data) abstraction


/**
* Get the bitmap for a tile at a given [row,column]
* @param rowId row index (starts at 0)
* @param columnId column index (starts at 0)
*/
public function getTileBitmap(rowId:int,colId:int):Bitmap
{
var bitmapData:BitmapData = new BitmapData(_sheet.tileWidth,_sheet.tileHeight, false, 0xFFFFFF);
bitmapData.copyPixels(_bitmap.bitmapData, _sheet.getTileRectangle(rowId, colId), new Point(0, 0));
return new Bitmap(bitmapData);
}

You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialize correctly.

Demo | Source

Syndicate content
Powered by Drupal, an open source content management system