Want to receive a weekly email containing
the scoop on our new titles along with the
occasional special offer? Just click the button.
(You can always unsubscribe later by editing your
account information).

Give us an email and a password (you can use the password later to log in and
change your preferences). We'll send you a newsletter roughly once a week.

Errata for Create Mobile Games with Corona

We try to keep our books accurate, but sometimes mistakes creep
in. This page lists the errors submitted by our astute readers.
If you've found a new error, please
submit it.

The latest version of the book is P2.0,
released about 1 year ago.
If you've bought a PDF of the book and would like to upgrade
it to this version (for free), visit your
home page.

Key:TypoTech. ErrorSuggestionNot a problemNext edition

By default this page displays the errata for the latest version of
the book. If you have a previous version, select it here:

(To find out what version you have, look at the copyright page, a
few pages in from the front of the book. If it says (say)
'Second Printing', then here it'll be P2.0. If there are interim PDF
releases in that printing, they'll be 2.1, 2.2, and so on.)

PDF

Paper

Description

Found in

Fixed in

18

#76603: Corona updated the Storyboard API to Composer. In time they will phase out storyboard and/or possibly offer more features with Composer. Right now, it seems they have simplified some things with the new API and suggests developers to move forward with Composer.

#76603: Corona updated the Storyboard API to Composer. In time they will phase out storyboard and/or possibly offer more features with Composer. Right...more...

P2.0
03-Apr-14

27

#76620: When setting up classes, you explain the need for the 'class.lua' file but you don't include it in the source as a require statement.

It is noted in Page 24 that you need to use the 'require()' function to include other Lua files to run their code but then this isn't reiterated when setting up classes or included in the code snippet.

As a programmer taught using Object Oriented principles, it was confusing that such an important statement wasn't made and that seemingly the only mention of the 'require("class")' line of code is in the 'main.lua' file from the downloadable source code.--Liam Wilson

#76620: When setting up classes, you explain the need for the 'class.lua' file but you don't include it in the source as a require statement.
It is...more...

P1.0
06-Apr-14

34

#76375: Whilst the text does state that there needs to be a RemoveEventListener, otherwise tick will be called even when the scene has changed which could be fun ... it never actually does this.--Paul Robson

#76375: Whilst the text does state that there needs to be a RemoveEventListener, otherwise tick will be called even when the scene has changed which c...more...

P2.0
05-Feb-14

45

#76455: Should EnterFrame be changed to EnterScene? I guess the function name and the text name should be the same?--Robert Curlette

P2.0
28-Feb-14

55

#76359: The hip > PLANET_RADIUS_SQ has been added in the spaceship update method before it is explained. The if test should not be in the middle version.--Paul Robson

P2.0
04-Feb-14

56

#76360: Where the local ships {} is added it may not be clear to a beginner that this should be with the rest of the locals. Conceptually it should be done in one of the events.--Paul Robson

#76360: Where the local ships {} is added it may not be clear to a beginner that this should be with the rest of the locals. Conceptually it should be...more...

P2.0
04-Feb-14

61

#76365: The two planet radius tests are > and <. There is a small probability that the hip value might be equal to PLANET_RADIUS in which case it will neither advance nor be killed. Probably doesn't matter but good practice.--Paul Robson

#76365: The two planet radius tests are > and <. There is a small probability that the hip value might be equal to PLANET_RADIUS in which case it will...more...

P2.0
05-Feb-14

61

#76371: in tappedShip() event.target.object.wasKilled needs to be set to true, otherwise the game cannot distinguish between those ships ended by touching and those ended by landing. --Paul Robson

#76371: in tappedShip() event.target.object.wasKilled needs to be set to true, otherwise the game cannot distinguish between those ships ended by touc...more...

P2.0
05-Feb-14

62

#76364: call removeMe() half way down ; it wasn't written in the previous chapter, it was written immediately above the text.--Paul Robson

P2.0
05-Feb-14

62

#76366: When the ship is removed the event listener still exists, so the object will not be garbage collected. --Paul Robson

P2.0
05-Feb-14

62

#76372: toggleDelete is a bad choice of method name because it doesn't do what it says it does. It would be better called 'isShipDead' for example.--Paul Robson

P2.0
05-Feb-14

64

#76367: "Corona's template creation feature" - I can't find it ? I copied one from the SDK. It might be better to copy the template to create game.lua rather than changing scenetemplate.lua itself.--Paul Robson

#76367: "Corona's template creation feature" - I can't find it ? I copied one from the SDK. It might be better to copy the template to create game.lua...more...

P2.0
05-Feb-14

65

#76368: A novice may think the eventListener should be added after the group=self.view line ?--Paul Robson

P2.0
05-Feb-14

68

#76369: When the lives variable is created it is done so as a global. It would be best and consistent for local lives to be declared at the module level.--Paul Robson

P2.0
05-Feb-14

69

#76370: wasKilled is compared against false, but earlier it was set to nil. In lua false ~= nil. --Paul Robson

P2.0
05-Feb-14

72

#76374: Player sprites have changed - would be a good idea to have the same sprites files throughout. Life spacing is too small. Position is partly off the top. Group may be hidden behind the background image, requires a toFront call on the group.--Paul Robson

#76374: Player sprites have changed - would be a good idea to have the same sprites files throughout. Life spacing is too small. Position is partly of...more...