This blog will be discontinued here at wordpress and will be moved to blogger, so please update your feed to:
http://www.gamedevjuice.blogspot.com/
Cheers.
Martin.
This blog will be discontinued here at wordpress and will be moved to blogger, so please update your feed to:
http://www.gamedevjuice.blogspot.com/
Cheers.
Martin.
I wanted to share this incredibly useful web site. No matter in what language you program this site is the equivalent to a Victorinox Swiss army pocket knife for a programmer. GotApi is a web language reference for a lot of languages and APIs. This is the supported stuff:
HTML / CSS / JavaScriptHTML at htmlhelp.com AJAX and FrameworksGoogle GWT XMLXSL at w3schools.com C/C++C, C++, STL at cppreference.com |
PHPPHP at php.net Ruby / RailsRuby / Rails at ruby-doc.org & rubyonrails.com PythonPython at docs.python.org More Programming LanguagesSicstus Prolog Adobe / MacromediaActionScript GroovyGroovy 1.1 beta 1 - Marc Dexet Updated Drupal CMSDrupal 4.7/HEAD - Z.Karman FlickrFlickr API - parhuzamos Orb APIOrb API – Orb Networks |
DatabasesMySQL at mysql.com JavaJ2SE v1.3.0 Application TestingJUnit Java2MEexpand… Apache AntAnt at ant.apache.com |
In some cases in a project, we need to use striped sprites, it means an an animation of bitmaps which has their frames arranged in rows or columns like the examples below:
Sometimes the output of some graphic tools are this kind of sprite, for example this explosion generator: http://www.geocities.com/starlinesinc Actionscript do not brings anything built-in to handle this kind of sprites what I called Bitmap MovieClip, so I created a handy class to handle this situations where we need want to create an animation from an array of frames on an image.
The result is something like this:
Finally after a long wait I got a Nintedo DS.

I also bought a R4, so after a long season of gaming I will start to diving into the nuts and bolts of DS game programming.
The collision detection in Papervision3D is not a big deal. Is easy to detect collision between two DisplayObject3D for that task PV3D provide us with two methods
public function hitTestPoint( x:Number, y:Number, z:Number ):Boolean public function hitTestObject( obj:DisplayObject3D,multiplier:Number=1 ):Boolean
The first method is to test if the current DisplayObject3D is hitting a point in the scene and the second one is to detect if the current object is hitting another DisplayObject3D in the scene.
This is quite similar to the display architecture used by flash and its DisplayObject the difference is when we have a main DisplayObject3D with other objects 3D as childs.
In that case we would be tempted to use hitTestObject assuming that the collision test will be tested using the parent DisplayObject3D and their childs but that is wrong.
Read the rest of this post »
In the following example I will explain how to use it combined with the Effects branch to obtain something like this:
I’ve been playing around lately with Papervision3D 2.0 which still in alpha yet. But this new version has a lot of new cool features one of the new features are shaders. So make things look like this:

This post is a list of tips and tricks for tunning performance in Actionscript 3. Keep in mind the following quote while reading this:
“Premature Optimization is the root of all evil.” – Hoare and Knuth
Read the rest of this post »