Create game


Player can use ws to control the left racket and up and down keys to control the right racket

Source of material -- Rolling Ball Assets · Kenney


In addition to the basic functions: 

1. I completed that the ball can be generated back above or below the center when it disappears, and given a suitable initial velocity and suitable random direction.

2. When you miss a catch, you add points to your opponent's score

3. A greater speed rate can be added when the ball bounces off the racket, which can be adjusted in the script

4. limit Racket move range and direction

Files

KIT109 Assignment 1 - Pong.zip Play in browser
Mar 15, 2025

Leave a comment

Log in with itch.io to leave a comment.