Archive for March, 2008

31Mar

APE and Display Objects -> Displaying Images

No comments

Essentially the WheelParticle class is an extension of the base AbstractParticle class which has a setDisplay method. The setDisplay method allows you to assign a DisplayObject to be used when the particle is drawn, in this example an image is being used as my DisplayObject. The parameters for the setDisplay method are:
(displayObject, offsetX, offsetY, rotation) [...]

28Mar

[AS 3] AS Physics Engine (APE) - Car Demo

2 comments so far

Playing around a little more I was able (as much as I think) to make a more rigid, possibly more real, way of creating a car. I decided to combine this new class with the Bridge class file I created earlier in the week.


Here is the Main.as Document Class:

package {
import org.cove.ape.*;

import [...]

27Mar

[AS 3] AS Physics Engine (APE) - Swinging Platform

No comments

I have been wondering how the swinging platform was created, so I built this little demo.


Here is the main Document Class APESwingingPlatform:

package {
import org.cove.ape.*;

import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;

public class APESwingingPlatform extends Sprite {
private var swingingPlatform:SwingingPlatform;

public function APESwingingPlatform() {
// Initialize the engine. The argument here is the time step value.
// Higher values scale [...]

26Mar

[AS 3] AS Physics Engine (APE) - Bridge Demo

4 comments so far

So the more I dug into the code of APE, I wanted to understand a little more about the Bridge that was created in the carDemo.swf file that comes packaged with the code library. I quickly wrote up and modified a little of the existing code to come up with the following demo (use your [...]

25Mar

[AS 3] Papervision Random Cube Spin

No comments

I just wanted to play around a little more with the materials available for Papervision, not to mention I found this tutorial (http://labs.zeh.com.br/blog/?p=95) and used the tutorial’s code as my base. This was also a good time to get use to using Tweener. One note is that I used a MovieClip in my library to [...]