Skip to content

Check if the border threshold work fine in multiple screens #13

@iamgabrielma

Description

@iamgabrielma

Currently:

        /// Screen bottom threeshold to score
        if ball.position.y <= (mainPaddle.position.y - 20 ){
            addScore(playerWhoWon: enemyPaddle)
        }
        /// Screen top threeshold to score
        else if ball.position.y >= (enemyPaddle.position.y - 20 ){
            addScore(playerWhoWon: mainPaddle)
        }

That -20 might need to be adjusted.

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