Assignment 1 devlog


Further exercises

  • i borrowed the random direction code from the tutorial but made it only do a 45 degree angle either left or right depending on who scored the goal
  • i made it so the moving script only worked within bounds by adding to the if statement that reads the input
  • i made a single UI of both the scores with 3 spaces in-between them
  • (made the game end at 5 points instead of ten) i did this by when either score reaches 5 the ball deletes itself when going of screen and winner text is displayed
  • along with the winner text there is text that tells you to press enter to restart
  • the restart option takes you to the title
  • for the AI i programed the if statements to move according to the ball instead of player movements
  • did not add sound effects
  • made the vector it is multiplied by -1.05 instead of -1 to add speed scaling and added the difference in y value to the velocity. Also added a speed cap with the help of the teacher.

this game only uses the inbuilt square sprite with different scales to make all the objects 

Files

Build.zip Play in browser
Jul 27, 2023

Leave a comment

Log in with itch.io to leave a comment.