Skip to content

Need to Implement Game Modes #2

Description

@ZeroDRequiem

Need to implement the two game modes: Classical and Ping Pong

Classical Mode:

  • Ball starts in the middle of the playing field
  • Ball randomly moves toward player 1 or player 2, regardless of who scored last
  • Direction is picked at random, or is fixed (angle of movement)
  • Ball reflects from paddle based on inverting x-axis direction (but no change to y-axis)

Ping Pong Mode:

  • Ball starts at the paddle
  • Paddle can move with ball, to start the serve from anywhere in the y-plane of the field
  • The serve switches sides every two points (starting with player 1)
  • Direction of the ball is determined by the player (directional arrow)
  • Ball reflects from paddle based on the section of the paddle that it hit (invert x-axis; change y-axis based on area of the paddle that got hit)

Additional rules: See: wiki

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions