Press the Green Flag to start. Try to get more points than your opponent before time runs out. Player 1 (Blue Cat): Press left and right arrow key to move and point in those directions. Press the up arrow key jump and point up. Press m to shoot a basketball at an angle depending on what the direction of the Blue Cat. Aim the ball at the moving hoop and hit the hitbox to increase your score. Player 2 (Red Cat): Press a and d to move and point in those directions. Press the w key jump and point up. Press the spacebar to shoot a basketball at an angle depending on what the direction of the Blue Cat. Aim the ball at the moving hoop and hit the hitbox to increase your score.
Created for TEEN Game Design Class. Credits to the book "Scratch 3 Programming Playground," pages 58-81 for the basis of the coding. Thanks to GameDesignTeacher for the base sprites, sounds, and backdrops. I added player direction and ball direction because it was annoying me that I could only throw the ball in one direction. Also, I added the Timer variable and disabled the controls when Timer reaches 0. Also, I increased the size of the sprite Hitbox from 100 to 150. I changed the background music to the current music, which I found in the Scratch Library. 2 Player version: Added a second player and second ball, and recolored both cats. Made it so that the cats start at the origin Added a second score, and the Winner sprite. Also, added code to pause the game, play music, and show a sprite before completely stopping the game. Added title screen. Additional sounds from the scratch library. The Basketball Hoop I found on wikipedia: (Douglas Road Metrorail basketball hoop) https://en.wikipedia.org/wiki/File:Douglas_Road_Metrorail_basketball_hoop.jpg (Creative Commons 2). I edited the hoop image to remove its background.