Skip Navigation

Ramblings from the team at zinc Roe

Metal Fish Eggs

Archive for the ‘Code’ Category

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 post7 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 postLeave a Comment

Label Utility Class

One problem I always run into when developing a game in Flash is how to tell when a timeline animation is finished.
The quick and dirty solution is to put some callback functions on a frame (or two or three)…

Read the full postLeave a Comment

Zimmer Twins at the Drupal Meetup

Drupal has been our choice of CMS since James Walker worked with us to build terminus1525.ca. Ashok Modi is our very own Drupal guru and recently undertook a major project in porting the Zimmer Twins site from Drupal 4.6 to Drupal 6.0. Ashok…

Read the full post1 Comment