Improve and add end game scenes


Player can use "w,s" to control the left racket and "up and down arrow" keys to control the right racket

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 player miss a ball,  add points to 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, can only move vertically, cannot exceed the boundary, and is not affected by collision

5. When palyer have ten score, pasue and show winner message.

6. When game end have a paly angain button.


Reference: 

1. Source of material -- Rolling Ball Assets · Kenney

2.UTAS tutorial materials practice 2-5, Scrpits.

3. Copilot for debug.

Files

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

Leave a comment

Log in with itch.io to leave a comment.