Game Development Reference
In-Depth Information
debugDraw.SetFillAlpha(0.5);
world.SetDebugDraw(debugDraw);
}
private function updateWorld(e:Event):void {
world.Step(1/30,10,10);
world.ClearForces();
world.DrawDebugData();
}
}
Really nothing to explain here as it's just copy/paste of old scripts.
Test the movie and you should see your level ready to be destroyed:
Angry Birds: Rovio Entertainment Ltd. ( www.rovio.com )
Ok, the pig isn't there, but it does not matter at the moment as you won't be able to
kill it until the next chapter. At the moment, let's just destroy its house.
Before we can smash the pigs hideout, we need to draw some graphics representing
the sling and the bird. Basically the sling is a circle in which the bird can be moved.
The bird itself will be represented at the moment with another circle.
 
Search WWH ::




Custom Search