Skip to content

add collision detection #12

@juicyGentlemen

Description

@juicyGentlemen

collision function
add top property to players
add bottom property to players
add left property to players
add right to players

add top bottom left right propertrties to the ball

add function to check if the ball is hitting a paddle

check if player one or player two by checking to see which side of the screen the player is on

change the velocity of the ball depending on the angle and speed the ball hits the paddle

TRIGONOMETRY!!!
right around 25 minutes

lots going on with this

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