Skip to content

Documentation ▸ Developer Guides ▸ Getting Started ▸ chapter 5 chapter files -- a minor bug in the backup code example #177

Open
@Ratgor

Description

@Ratgor

from page https://docs.coronalabs.com/guide/programming/05/index.html
zip download url https://github.com/coronalabs/GettingStarted05/archive/master.zip

in GettingStarted05-master.zip
file main_original.lua
line 73: physics.addBody( ship, { radius=30 } )
should be: physics.addBody( ship, { radius=30, isSensor=true } )

While passing this user guide I occassionally dropped my own main_original.lua,
to cope with that I took that one from archive,
and after extracting these lines to game.lua as manual says,
I got a bug: the ship after the first collision with asteroid keeps impulse on the next life and drifts out of screen.

I've additionally checked, the chapter 4 zip also have the same bug in the same file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions