Skip to content

Code Ball Game State #12

@alienboy13

Description

@alienboy13
  • Create StartGame() method which receives that the game has started
  • Have StartGame() give the ball an initial upwards velocity
  • Create OnCollisionEnter2d(Collisoin2D collision) method on Ball.
  • On collision, have the ball invert its velocity in the direction parallel to the surface and randomize the component of its velocity in the x-direction

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