iTGB - Ball Physics - Accelerometer - Chipmunk Engine
by Kevin Ryan · in iTorque 2D · 08/20/2009 (1:38 am) · 27 replies
I was playing around with the chipmunk physics engine and iTGB the last few days. Here is a short not real high quality video showing it running on my iTouch.
I am mapping the accelerometer x and y values to gravity each frame. Chipmunk handles the physics and iTGB handles the rendering. Each ball is composed of two bitmaps. A base ball bitmaps that can rotate and highlight bitmap that is fairly translucent and doesn't rotate.
It was running at roughly 60 fps on my 2nd gen iTouch. I was pretty happy with the frame rate because I wasn't sure if it was going to crawl at slow fps or not.
The bottom 320x48 of the screen is running AdMob ads. AdMob was pretty easy to integrate into iTGB.
I submitted this to the App Store this evening as a free app. It was a fun little experiment and its pretty cool to watch the balls move around correctly as you tilt the iPhone this way and that.
I am mapping the accelerometer x and y values to gravity each frame. Chipmunk handles the physics and iTGB handles the rendering. Each ball is composed of two bitmaps. A base ball bitmaps that can rotate and highlight bitmap that is fairly translucent and doesn't rotate.
It was running at roughly 60 fps on my 2nd gen iTouch. I was pretty happy with the frame rate because I wasn't sure if it was going to crawl at slow fps or not.
The bottom 320x48 of the screen is running AdMob ads. AdMob was pretty easy to integrate into iTGB.
I submitted this to the App Store this evening as a free app. It was a fun little experiment and its pretty cool to watch the balls move around correctly as you tilt the iPhone this way and that.
#22
08/27/2009 (1:19 am)
Please make a separate blog/post when it's approved (which should be today or tomorrow if Apple keep their promises, right?) :)
#23
I'll try to post a video of this new pretty real game here on this thread in the next few days. I need to try to figure out an easy way to film it that looks good because I'm tilting the iPhone all directions getting the balls to the various goals and it is hard to keep it on camera.
08/27/2009 (1:45 am)
I just checked my notes and I submitted the physics prototype that the first post video shows a week ago tonight. So if Apple takes as long as they have on my last few new game submissions then it will be available for free any time now on the App store. Its called "Balls Away!"I'll try to post a video of this new pretty real game here on this thread in the next few days. I need to try to figure out an easy way to film it that looks good because I'm tilting the iPhone all directions getting the balls to the various goals and it is hard to keep it on camera.
#24
itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=328117148&mt=8
08/31/2009 (4:39 pm)
The free version has showed up in the App Store:itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=328117148&mt=8
#25
08/31/2009 (5:08 pm)
got it. very cool and great performance.
#26
I've just noticed the paid game is in the New and Noteworthy section on iTunes! Good Job.
Has this affected sales at all once it was on the New and Noteworthy section? Would be good to know but I'll understand if you don't want to share the information :D.
Thanks.
10/08/2009 (10:25 am)
Just wanted to say to Well Done to Kevin. I've just noticed the paid game is in the New and Noteworthy section on iTunes! Good Job.
Has this affected sales at all once it was on the New and Noteworthy section? Would be good to know but I'll understand if you don't want to share the information :D.
Thanks.
#27
10/08/2009 (2:13 pm)
The first week that it was on the games' "New and Noteworthy" was when Apple had changed their system so there was no New and Noteworthy category in games. So it first popped up on page 2 in the second week when that category came back. It only showed up on a featured category on iTunes, not on the actual iPhone. Sales went up a lot - slowly dropping each Tuesday as a new group of New and Noteworthy came in.
Associate Kevin Ryan
Top Meadow Inc.
I spent the last few days turning this prototype into a game which I just submitted to the App store.
When I get a chance I'll put up a blog and video. I think its pretty fun to play. First game I ever made where you don't click any buttons - just tilt.
Here are a few screen shots: