How To Make a Breakout Game with Corona
4 posts
• Page 1 of 1
How To Make a Breakout Game with Corona
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
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ray Wenderlich
Blog: http://www.raywenderlich.com
Twitter: http://twitter.com/rwenderlich
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

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
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
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
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.
-

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
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 9 guests