My WCK project - Prankster Planet on PBSKids.org

Hey guys,

We're still wrapping up this large game project, but the first episode (+ training) has launched online.

http://pbskids.org/electriccompany/pranksterplanet/

There will be 12 episodes/levels released over the next few weeks. I was in charge of the side-scrolling game portion of the project.

Let me know what you think. I want to thank Jesse Sternberg (Mayobutter) for creating WCK. Without it I wouldn't have been able to make a game this large and visually complex happen.
Congrats! Thanks for sharing. A little too easy for my taste but I don't think I'm the target audience lol. It's cool seeing a full blow project built on this library.

So is the WCK / Alchemy library reloaded for every level? Also are you using primarily bitmaps or vector art? Looks like it's mostly vector.
Yea, it's too easy for more than just you, lol. Anyways, the target demographic is 5-8 year olds.

Almost everything in the game is vector based. The studio I've been working with, Primal Screen, is a animation and production house, so making things tileable is not in their vocabulary for the most part. They strive to make the visuals unique and special every step of the way. I'm utilizing a bitmap caching system, based off of TouchMyPixels AnimationCache+Animation classes. The vector artwork is simply too complex to draw at a reasonable framerate. There are lots of masks and gradients everywhere. You can "Zoom In" and see what's cached in the game.

Pretty much the previous 2-3 months went as follows: I hand off the game to the artist running at 30fps; they hand it back to me running at 14-15fps. I hand it back to them running at 30fps, they hand it back to me at 14-15fps. We just went back and forth and I made things as lean as I possibly could, did about 3-4 memory management passes. The moment I stopped using Adobe's cacheAsBitmap and started using my own system, we started getting big returns on optimization efforts. cacheAsBitmap still must waste a lot of time checking to see if it's internal contents have shifted or moved. My BitmapCachedSprite class that I wrote caches everything as a Bitmap and removeChilds everything else in the object.

Yea, we're dumping the Alchemy+WCK instance per episode. The levels are too big to all be contained in one flash file and the file size footprint for the levels are at what I feel is acceptable which is on average around 1.2MB per file. Not ideal, but the CLibInit call alone is about 500k per episode. Some levels, like episode 5 (it's a scrapyard) are good showcases of WCK and it has three separate zones (above ground, processing plant, caves).

Original thread: https://box2d.org/forum/viewtopic.php?t=6887