We’ve been promoting the physics engine in Corona Game Edition, but how does it actually work, in concrete terms? How do you integrate it with familiar Corona code? This two-minute video, starring the humble crate, attempts to answer these questions: Of course, a crate is about the simplest possible case for a physics engine. But one test of a development tool is that simple tasks should be simple, and we think you’ll agree that we’ve accomplished that here.
Category: Game Development
We recently spoke with Matt Pringle, designer and author of the new game Alien Horde, about his experiences developing the game. You can learn more about the game at www.alienhorde.com, and a video is on youtube. Tell us a bit about yourself, what kinds of work you have done. I’m a graphic designer by trade and have worked as one for 10 years now. I started out studying Aerospace Engineering at University but I wanted to do something a little more creative so I decided to become a designer. I’ve worked for clients such as Electronic Arts and 3DO in the game industry producing renderings, packaging and logo designs. These days I mostly design and build websites, working for a design company in Manchester, England.
We’ve just put up a new trailer for Corona Game Edition, featuring a montage of demos. The cool thing is that most of this footage is actually from sample code that ships with the current alpha version — and the rest should be turned into sample code shortly.
Okay, I’m sitting here on a Friday night, waiting for what we think is the last build before Corona Game Edition Alpha 1 can be pushed out the door. At that time we’ll have a welcome celebration…. we’ve said we wanted to push it out every week for the last 3, and it just hasn’t quite come together. Corona 2.0 Beta 4 and 5 have taken priority, and there’s been one thing after another to keep us occupied. Meanwhile we keep adding features, which means the docs have to be updated, and Evan keeps futzing with the demos because, well, it’s just so much fun to play with. So knock on wood, we’ll have it ready in a matter of minutes. This time for sure!
While working out last-minute issues with deploying Game Edition Alpha, we’ve used the time to produce a stack of cool sample projects. (I often find it easier to learn from code samples than from documentation, and from what we’ve heard, a lot of our users feel the same way.) So far, my favorite Game Edition sample code is “SimplePool”, which uses our new physics engine to literally implement an entire game of billiards for iPad in just 200 lines of code! Better yet, the majority of that code is used to position the objects and initialize their physical properties; the physics engine then takes over and manages most of the game automatically. This is the nice thing about physical simulations: you just need to set
The external movieclip.lua library allows you to create animated sprites (sometimes called “movieclips”) from sequences of images, which can then be moved around the screen using the same techniques as any other Corona display object. Functions are available to play these animation frames, or partial sequences of these frames, in either the forward or reverse direction; to jump to specified frames; to skip to the next or previous frame; to automatically delete the animation on completion of a sequence; and to make the animation draggable, complete with press, drag, and release events. Drag boundaries have also been added in this revision. For further documentation, see the latest version of the 2.0 Beta Guide, although this library should be compatible with any version of Corona since
Our recently announced Corona roadmap features a new section named “Corona Game Edition”. I’d like to describe exactly what that is and how it differs from Corona SDK 2.0. As Walter discussed in a previous post, Corona apps are actually built around a classic game-development structure: an Objective-C/C++ engine driven by compiled Lua. This architecture is common not only on iPhone, but on console games in general. After looking at the number of apps that our customers have written, as well as apps currently in progress, we learned that more than 50% were game apps. We therefore started to add features to Corona that are primarily of interest to game developers — the most obvious examples being a physics engine, texture-memory optimization techniques, social gaming APIs, and
You’re not supposed to be seeing this. We are not having this conversation. The video below shows something that’s pre-beta, pre-alpha, not currently shipping and not ready for prime time. In fact, it doesn’t really exist and you didn’t hear it from me. But trust me and press “play”, because you’ll be impressed at what Corona can do: Emergent behavior is cool. But that isn’t the best part! The best part isn’t in the video: you won’t believe how few lines of code it will take to build things like this. I’m really excited by our API design (that sounds odd, but I’m serious) and what it will mean for game developers. But I’ve already said too much — if this post disappears tomorrow, you’ll