Wiebo de Wit's thoughts about game development and more…
Tag Archives: Artemax
Last week I finished my blitzmax port of the java entity framework Artemis. The framework will allow you to use a data oriented design approach to your gaming development.
The download includes a little Asteroids game as well which was built using the framework. The source code is included and you can check out how to use the system and create a simple game with it.
I am now starting work on implementing the system in my map editor so we can enjoy an endless diversity in game objects and structure in the new game. The thing to build now is something like an object set, where each game object is described by which components it holds and the values that go with that component. Something like this:
This defines an enemy, with a transform component: position = 10,10, scale = 1.0, rotation = 50 degrees. It also has a renderform component: the image is loaded from alien.png, and it holds 10 frames of 32×32 each. It is also subject to gravity and its weight is 2.0.
This is very easy to load and save. Also, the editor user will be able to add objects on the fly, add components to it and add it to the map. The objectset is saved with the map itself or separately so it can be re-used for other maps.
Bye for now!