Skip Navigation

Ramblings from the team at zinc Roe

Metal Fish Eggs

Archive for the ‘Code’ Category

Mirrored Video Object in Flash

When using the webcam in your flash applications, it can be handy to flip the video object so it acts like a mirror. Many of the flash webcam demos out there does exactly this, usually by setting the scaleX property…

Read the full postLeave a Comment

Obscure YouTube player bugs on the iPhone

While debugging our new Tickle Tap Toddler Pack iPhone app, I had to fix a couple of obscure bugs caused by the YouTube video on the app’s info screen. After watching the video, none of the sound effects in Sound Shaker work…

Read the full postLeave a Comment

AVAudioPlayer Memory Leak

While coding the sound for Arctic Shuffle 2, I ran into a non-obvious memory (to me, anyway) memory leak related to the AVAudioPlayer that took forever to track down.
Here was my original code, which leaks if an error occurs…

Read the full post4 Comments

Artifacts in small textures on the iPhone

For the next version of Arctic Shuffle, we’re using Open GL to speed things up. One problem we’re run into along the way is strange artifacts in textures smaller than 64 pixels by 64 pixels. After a lot of head…

Read the full post1 Comment

Units in Box2D

There were some good questions during my presentation last night and via email this morning about units in Box2D.
@jasonkrogh asked what kind of units Box2D uses. Here’s the relevant bit about units from the Box2D manual:

Box2D works with floating point…

Read the full postLeave a Comment

Project Organization and Coding Conventions for iPhone Games

Now that we’re knee deep in iPhone game development, we’re working with a number of different outside developers. Since everyone involved is pretty new to Objective-C, XCode and iPhone development, project organization and coding conventions in our projects have been…

Read the full post1 Comment

How To Add Box2D To An iPhone XCode Project

Using Box2D is a great way to add physics to a 2D iPhone game. Since Box2D is written in C++ rather than Objective-C, adding it to your XCode project and getting it to build cleanly can be a bit tricky.…

Read the full post8 Comments

Next stop, App Store

We’re very excited about our early experiments with iPhone development. Today we are submitting our very first app to the App Store. Timecoder is a super-simple time code calculator, an idea that came to us from our super-talented video editor Kyle…

Read the full postLeave a Comment

Beautiful Code

Beautiful Code asks well-known (and not so well-known) programmers to discuss the most beautiful piece of code they know.
From the preface:
For some, it lives in the small details of elegantly crafted software. Others find beauty in the big picture…

Read the full post4 Comments

Batch Optimize in Flash

Optimizing vector artwork in Flash is usually the last thing on an illustrator or animator’s mind when they’re drawing in Flash. Unfortunately, when all the artwork is done and it’s time to get it ready for the web, it can…

Read the full post4 Comments