Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Latest commit

 

History

History
24 lines (20 loc) · 945 Bytes

README.md

File metadata and controls

24 lines (20 loc) · 945 Bytes

Pong with Processing

About the author

Miguel Herrera Álvarez. Last-year Computer Engineering student in the University of Las Palmas de Gran Canaria.

Develop

Try to remake original Pong game using Processing for it developt. The code consist in a setup() method where initialice all the variables and a draw() method which call other auxiliar methods who paint the frame and handler the movements and bounds. Most interesting of this methods are which handler bounds, in this case contactWithPlayer() control the bound of the ball with a player's paddle.

Decisions

  • Player 1 controls:
    • W key for up.
    • S key for down.
  • Player 2 controls:
    • ↑ key for up.
    • ↓ key for down.
  • Win score is 10 goals.

Tools and references

Take a peek of result