I’m somewhere near a bunch of crates, apparently… UPDATE: Here is a bonus code sample, which is one line long. [cc lang="lua"] myMap = native.newMapView( 40, 80, 240, 280 ) [/cc]
Following our teaser from earlier today, we wanted to give you a preview/glimpse into how easy it soon will be to integrate Facebook into your app. Behind the scenes, we’re integrating Facebook’s OAuth-based library for FBConnect support. It’s going to be insanely easy to access Facebook’s graph API. Here’s the breakdown: It’s a one-liner to prompt the user for login. The first argument is the app id that you get from Facebook and the second is a listener that responds to “fbconnect” events: [cc lang="lua"] facebook.login( “1234567890″, listener )[/cc] Once the user has logged in, it’s one line to get that user’s friends list: [cc lang="lua"] facebook.request( “me/friends” )[/cc] And one more line to convert the JSON response into a Lua table: [cc lang="lua"] response
A tease of what’s in the works…
Steffen Itterheim is no stranger to development. He is a former software engineer/manager at Germany’s Electronic Arts division and author of the book Learn iPhone and iPad Cocos2D Game Development. Though he is proficient in a multitude of languages, Steffen says his favorite mobile programming script is Lua. For more specific details, we have given him the floor below to illustrate why he prefers Lua for mobile development. Steffen currently is an independent app and game developer. You can follow him on Twitter and check out his website for more info. Lua, like most languages, allows you to do specific tasks in a variety of ways. Usually some ways are more efficient and thus faster. In this blog post I’ll show you how you can squeeze
A few weeks ago, we talked to the creators of Rabbit and Turtle’s Amazing Race about how they used Corona to build their Top 10 eBook. Today, we are thrilled to tell you that Rabbit and Turtle have jumped to the #1 spot on the App Store’s eBook list! Congrats to creators Unicorn Labs, and thanks for making Corona a part of your magnificent achievement!
Tim is taking a break this week from his “Game in 8 Minutes” series, but has still provided you with a very useful tutorial on dragging physical objects. (somebody could make a really cool shuffleboard game with this!)
This past week, we presented our Physics in 5 Lines demo at the MobiCASE conference in Silicon Valley. To our most pleasant surprise, Corona was named ‘Best Demo’ at the conference for its contribution to the field of mobile development! Thanks to the MobiCASE organizers for the honor, and thanks to you — our users — for putting our “5 Lines” demo to everyday use in your creations!
While it’s awfully hard to fill a bag with candy via the Internet, the folks at X-Pressive.com just gave us some Particle Candy to share with you! Particle Candy is a high-performance particle/effects engine, which X-Pressive have now made available for Corona. Behold! You soon will be able to implement Particle Candy in your own Corona creations by following X-Pressive’s very easy How to Guide. The best part? No cavities!
In this quick tutorial, Carlos demonstrates several features of Corona: sprite sheets, alpha channels, and event listeners. Using the classic iFishies sample app, he shows how to use textures to create a better illusion of movement for your in-app animations. Simple, but highly effective!