Grizzly Panda http://blog.grizzlypanda.com Eats Shoots & Codes posterous.com Thu, 29 Apr 2010 21:53:51 -0700 first video http://blog.grizzlypanda.com/first-video-60 http://blog.grizzlypanda.com/first-video-60
test-2010-04-29.mov Watch on Posterous

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/224125/mii.jpg http://posterous.com/users/36ESxwIZgQ49 H C hc5duke H C
Sun, 21 Mar 2010 20:20:41 -0700 iPad icon size ≠ iPhone icon size http://blog.grizzlypanda.com/ipad-icon-size-iphone-icon-size http://blog.grizzlypanda.com/ipad-icon-size-iphone-icon-size
Ipad_curling_icons

Just noticed our iPhone icon looked funny when run on the iPad.  It seems, at least on the simulator, the iPad app icon size is 72px, different from the 57px on the iPhone.  Here's a screenshot of how the 57px icon looks against a 72px icon.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/224125/mii.jpg http://posterous.com/users/36ESxwIZgQ49 H C hc5duke H C
Thu, 25 Feb 2010 00:05:00 -0800 AppStore front page! http://blog.grizzlypanda.com/appstore-front-page http://blog.grizzlypanda.com/appstore-front-page

This is amazing -- within days of the Olympic curling event starting, Cool Curlings LITE has skyrocketed up to the top 10 free apps (currently at #6 as I write this), and has appeared on the front page of the App Store.  It's #4 in free games, and has been #1 in both of its subcategories (puzzle and sports, both under games) for about a day.  Its paid sibling isn't doing too shabby, either, currently sitting at #82 (it did reach #80 at one point).  Combined, we have had over 250,000 downloads - it's crazy to think that something we created is being used by quarter of a million people worldwide, and without any kind of a marketing budget!

Never in our wildest imagination did we think our first app will make it this far this fast - thanks to all those who have helped out and downloaded the app!

** EDIT: As of 2/25 at 3pm, we are now the #3 free app overall (#59 among paid apps)! **

 

 

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/224125/mii.jpg http://posterous.com/users/36ESxwIZgQ49 H C hc5duke H C
Mon, 08 Feb 2010 11:18:52 -0800 iPad beta SDK cannot compile iPhone apps for distribution http://blog.grizzlypanda.com/ipad-beta-sdk-cannot-compile-iphone-apps-for-0 http://blog.grizzlypanda.com/ipad-beta-sdk-cannot-compile-iphone-apps-for-0 Cross-posted here.

Learned this the hard way... if you upgrade your Xcode to the iPad beta (iphone_sdk_3.2_beta_with_xcode_3.2.2.dmg), you cannot compile iPhone projects in distribution mode, even if you set the target device to 3.0/3.1.  I'm not 100% certain what build configuration flag is causing this to fail, but it compiles just fine in my other configurations and I can even run the non-distribution mode build on an emulator.  In distro mode the build always craps out with 18 C++ errors (similar to this).  It's possible that the issue is also related to the fact that I recently migrated to a new macbook, but I had already reinstalled Xcode so I can't imagine that being the issue.

I just downgraded my Xcode to the latest non iPad version (iphone_sdk_3.1.3_with_xcode_3.2.1__snow_leopard__10m2003a) to confirm this, and was finally able to submit version 1.0.2 of Cool Curlings.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/224125/mii.jpg http://posterous.com/users/36ESxwIZgQ49 H C hc5duke H C
Thu, 21 Jan 2010 12:41:00 -0800 Cool Curlings now available! http://blog.grizzlypanda.com/cool-curlings-now-available http://blog.grizzlypanda.com/cool-curlings-now-available

Cool Curlings full version is now available in the App Store! http://is.gd/6KYFF Try the free one first: http://is.gd/6DxZi

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/224125/mii.jpg http://posterous.com/users/36ESxwIZgQ49 H C hc5duke H C
Tue, 19 Jan 2010 19:32:00 -0800 LITE version approved in the App Store! http://blog.grizzlypanda.com/lite-version-approved-in-the-app-store http://blog.grizzlypanda.com/lite-version-approved-in-the-app-store

Cool Curlings LITE was approved in the App Store! itms://itunes.apple.com/us/app/cool-curlings-lite/id350523538?mt=8. This is our first app, exciting stuff!

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/224125/mii.jpg http://posterous.com/users/36ESxwIZgQ49 H C hc5duke H C
Wed, 13 Jan 2010 02:48:54 -0800 Yet Another "WTF Xcode?" Moment http://blog.grizzlypanda.com/yet-another-wtf-xcode-moment http://blog.grizzlypanda.com/yet-another-wtf-xcode-moment
Wtfxcode

From what I can tell it's ROT-29'ed... not that it makes any more sense.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/224125/mii.jpg http://posterous.com/users/36ESxwIZgQ49 H C hc5duke H C
Sat, 09 Jan 2010 14:34:38 -0800 Versus mode team selection screen http://blog.grizzlypanda.com/versus-mode-team-selection-screen http://blog.grizzlypanda.com/versus-mode-team-selection-screen
20100109-142501.mov Watch on Posterous

Demo time! Just playing around with what we've got so far.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/224125/mii.jpg http://posterous.com/users/36ESxwIZgQ49 H C hc5duke H C
Fri, 08 Jan 2010 16:14:32 -0800 more sneak peek http://blog.grizzlypanda.com/more-sneak-peek http://blog.grizzlypanda.com/more-sneak-peek
Vatican

Jamaica vs the perennial Curling powerhouse, Vatican City!

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/224125/mii.jpg http://posterous.com/users/36ESxwIZgQ49 H C hc5duke H C
Mon, 04 Jan 2010 16:16:18 -0800 Weird Xcode bug http://blog.grizzlypanda.com/weird-xcode-bug http://blog.grizzlypanda.com/weird-xcode-bug I'm not even sure if this is an Xcode (well, Interface Builder, really) bug or something in our code, but one of our images titled "menu.png" was showing up weird in Interface Builder.  When you run it in the iPhone simulator, everything looks fine, but whenever we opened up our HighScoresView.xib, it would show some weird menu image instead of menu.png, and in the attributes it would show "menu" (without the file extension).  This would go away once we added the ".png" but if you save and reload, the same thing would happen.  Upon inspection of the xib file, it would appear the file is saving correctly:

<string key="NSResourceName">menu.png</string>

but I guess Interface Builder opens it up wrong.  Although this doesn't affect our end product in anyway, we ended up just renaming the file menuu.png and this problem went away.  Strange!

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/224125/mii.jpg http://posterous.com/users/36ESxwIZgQ49 H C hc5duke H C
Mon, 28 Dec 2009 15:55:00 -0800 More sneak peek at Cool Curlings! http://blog.grizzlypanda.com/more-sneak-peek-at-cool-curlings http://blog.grizzlypanda.com/more-sneak-peek-at-cool-curlings

Sneakpeek

oops, the reset button is for debugging purposes... ignore that

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/224125/mii.jpg http://posterous.com/users/36ESxwIZgQ49 H C hc5duke H C
Sun, 27 Dec 2009 01:54:00 -0800 Running interpreted code in an iPhone app http://blog.grizzlypanda.com/running-interpreted-code-in-an-iphone-app http://blog.grizzlypanda.com/running-interpreted-code-in-an-iphone-app
3.3.2 An Application may not itself install or launch other executable code by any means, including without limitation through the use of a plug-in architecture, calling other frameworks, other APIs or otherwise. No interpreted code may be downloaded and used in an Application except for code that is interpreted and run by Apple’s Published APIs and built-in interpreter(s).

An iPhone app we are developing will at some point have downloadable content, where a user can download levels.  In order to implement the grading algorithm, we were looking into dumping some Lua script with each level and having an interpreter.  The quoted statement above disallows this, but we've found an alternate solution.  This is nothing new by any means, but it's not always the most obvious.  UIWebView#stringByEvaluatingJavaScriptFromString can parse JavaScript, and therefore is exempted by the "built-in interpreter" clause.

in Utils.m
... // in initialization
webView = [[UIWebView alloc] init];
...

-(CGFloat) evaluate:(NSString*)script{
    NSString *eval = [webView stringByEvaluatingJavaScriptFromString:script];
    return [eval floatValue];
}

in GameScreen.m
... // in grading method
NSString* script = [[NSString alloc] initWithFormat:
  @"var xi=%f, yi=%f, xf=%f, yf=%f, dx=xf-xi, dy=yf-yi; Math.sqrt(dx*dx + dy*dy)",
  xi, yi, xf, yf];
CGFloat eval = [[Utils instance] evaluate:[script autorelease]];
...

This returns the distance between (xi, yi) and (xf, yf), and if we wanted another level to calculate the Manhattan distance or ignore the y axis altogether, we can simply load a different script with the level and we're set. All without getting flogged by the Apple gestapo, whew!

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/224125/mii.jpg http://posterous.com/users/36ESxwIZgQ49 H C hc5duke H C
Fri, 25 Dec 2009 14:32:00 -0800 Cool Curlings site up http://blog.grizzlypanda.com/cool-curlings-site-up http://blog.grizzlypanda.com/cool-curlings-site-up

Cc_new_site

A little more update to the Cool Curlings site! We've added some users/scores interface to it, but we're not quite ready to show it off yet.  We'll open it up once the game becomes active in the AppStore.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/224125/mii.jpg http://posterous.com/users/36ESxwIZgQ49 H C hc5duke H C
Mon, 14 Dec 2009 21:31:44 -0800 Cool Curlings has a homepage http://blog.grizzlypanda.com/cool-curlings-has-a-homepage http://blog.grizzlypanda.com/cool-curlings-has-a-homepage Wow has it really been two months since the last blog post?  CoolCurlings.com is up and running on Heroku for the time being

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/224125/mii.jpg http://posterous.com/users/36ESxwIZgQ49 H C hc5duke H C
Tue, 13 Oct 2009 22:44:00 -0700 Cool Curlings Sneak-peek Video http://blog.grizzlypanda.com/cool-curlings-sneakpeak-video http://blog.grizzlypanda.com/cool-curlings-sneakpeak-video

20091013-224125.mov Watch on Posterous

It's a work in progress, but here's a preview of what we're cooking up!

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/224125/mii.jpg http://posterous.com/users/36ESxwIZgQ49 H C hc5duke H C
Tue, 13 Oct 2009 00:27:00 -0700 Hello World http://blog.grizzlypanda.com/hello-world-1694 http://blog.grizzlypanda.com/hello-world-1694

Coolcurlingsnapshot

We are now on Posterous, too. How very web2.0 of us! Here's a snapshot of Cool Curlings artwork Ryan made.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/224125/mii.jpg http://posterous.com/users/36ESxwIZgQ49 H C hc5duke H C