Share Your Code

Break Out Game

Posted by carlos m. icaza, Posted on October 16, 2010

At a training seminar we setup once, we went through and build a break out game from scratch.

Evan Kirchhoff, our sr. engineer put it together and we are uploading it for you to see how easy it is to do a full game in a few lines using Corona.

Bricky

There are six folders that build up to to the final game play.

Carlos

Compatibility: 
Corona 2.0

Replies

PixelAmp
User offline. Last seen 2 years 44 weeks ago. Offline
Joined: 14 Oct 2010

I keep getting an error indicating that I don't have permission to access the requested resource.

carlos m. icaza
User offline. Last seen 2 years 19 weeks ago. Offline
Alumni
Joined: 22 Jun 2009

Try now.

Sorry about that...

Carlos

mynameisace
User offline. Last seen 3 years 25 weeks ago. Offline
Joined: 10 Oct 2010

Hey Carlos

http://www.youtube.com/watch?v=BD2uOLa2mms

Dunno what happened there, just started spazzing out and making a grgrgrgrgrrrrrr sound and left the particle trail of a couple of the blocks I'd already hit for some reason. How can that be fixed or was it a one off error?

Ace

sanchan91
User offline. Last seen 2 years 41 weeks ago. Offline
Joined: 29 Aug 2010

The top of the main.lua in Brick 6 mentions this:

"Any functions and variables that we want to use "globally" can be declared as local up here.
The advantage of doing this here is that we can treat them like globals below, while also
retaining the compiler optimization that results from local variables in Lua."

What compiler optimizations are there? Speed increases perhaps, or just better memory usage?

MikeHart
User offline. Last seen 21 weeks 5 days ago. Offline
Joined: 22 Mar 2010

Speed increases. Lua can use LOCAL stuff faster (use of stack) than global stuff.

elgenaro
User offline. Last seen 2 years 36 weeks ago. Offline
Joined: 9 Apr 2011

Some bricks don't dissappear completely

Corona 20011.268