Skip to content

Error in condition of game.js #4

@upavloff

Description

@upavloff

The line 206 of game.js has a small mistake:

    if (this.x + r < x + w)  

The condition should be this.x - r < x + w ! It should be a minus since this.x is the middle of the bird's corpse and x+wis the end of the pipe; otherwise, the condition is false as soon as the pic of the bird goes past the pipe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions