How To Make a Breakout Game with Corona

Discussion of the official tutorials published on raywenderlich.com. Please only discuss the official tutorials here - for general questions, use the General Discussion forum instead.

How To Make a Breakout Game with Corona

Postby rwenderlich » Thu Jan 24, 2013 11:00 am

This is the official thread to discuss the following blog post: How To Make a Breakout Game with Corona
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ray Wenderlich
Blog: http://www.raywenderlich.com
Twitter: http://twitter.com/rwenderlich
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
User avatar
rwenderlich
Site Admin
 
Posts: 1776
Joined: Thu Dec 23, 2010 4:14 pm
Has thanked: 26 times
Been thanked: 187 times

Re: How To Make a Breakout Game with Corona

Postby samuel » Fri Jan 25, 2013 10:23 am

Thanks for the article! I plan to use Corona for my my next game and this will help a lot!
samuel
Baby Hacker
 
Posts: 8
Joined: Wed Jun 20, 2012 3:04 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How To Make a Breakout Game with Corona

Postby livewire1407 » Thu Feb 21, 2013 3:36 pm

Why is it that the walls on the left and right don't seem to match up with the edge of the screen when you look at this on an android phone in the simulator?
livewire1407
n00b
 
Posts: 1
Joined: Thu Feb 21, 2013 3:35 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How To Make a Breakout Game with Corona

Postby GPAnimations » Thu Feb 21, 2013 7:37 pm

livewire1407 wrote:Why is it that the walls on the left and right don't seem to match up with the edge of the screen when you look at this on an android phone in the simulator?


This is because the app is created for an iPhone-sized screen, with "letterbox" chosen in the config.lua file. The reason the walls of the game don't line up with the edges of the Android display is because the app is being letterboxed.

In config.lua, you can change scale="letterbox" to scale="zoomStretch" to see the difference. While not the best choice for the artwork, as it was designed for an iPhone, it will solve the problem without too many concerns. If you were to use "zoomEven" instead, the paddle would be pushed off of the thinner Android screen.
User avatar
GPAnimations
iOS Tutorial Team Member
 
Posts: 28
Joined: Thu Oct 27, 2011 12:47 pm
Location: PA
Has thanked: 0 time
Been thanked: 0 time


Return to Official Tutorials

Who is online

Users browsing this forum: Google [Bot] and 9 guests