You are the blue paddle, which you can move with your mouse. The red paddle is computer-controlled. Whoever gets 7 goals first wins. Have fun! I do recommend using a mouse to play this game. It can get quite tricky using a touchpad. If you beat Insane or you find any bugs, please let me know in the comments. 100 views! 7/1/13 5 loves/favorites! 200 views! 8/3/13
I used the idea of a speed variable and a "friction" multiplier from fbrd's project "Air Hockey with perfect AI" at this link: http://scratch.mit.edu/projects/249231/ I used the idea of a processor from griffpatch's project "Paper Minecraft v4.9d (2D Minecraft)" at this link: http://scratch.mit.edu/projects/10128407/ The AI is based on a zone system: if the puck is in a zone on its side of the rink, it will take the proper guarding position for pucks coming from that zone. Whenever it gets into that position, it will attack the puck. VERSION HISTORY 11/21/13--v. 2.2.3--Small changes to make code easier to read and slightly smaller. 9/8/13--v. 2.2.2--Removed labels from CPU Goals and Player Goals variables. 8/25/13--v. 2.2.1--Simplified code slightly more. 8/24/13--v. 2.2--Reduced size of code with custom blocks with input. This made the code for the CPU drastically smaller. 7/30/13--v.2.1--Improved goalpost physics. Changed control of goal and game winning/losing text from puck to text sprite. 7/29/13--v.2.0--Added the Space theme! Finally! This includes a new background and puck color. Cleaned code a bit. Shortened gong. Added some cloud variables so I can adjust the difficulty. 7/24/13--v.1.4--Added more Easter eggs. Text now starts the game, instead of the puck. Fixed bug that prohibited the upper speed limit from working. 7/23/13--v.1.3--Added goal sensors at the back of the goals, instead of having the goals themselves be sensors. Added (invisible) goalposts. Added a "Game Over" screen. Added own goal recognition and statistic. Added a touch statistic. Updated the instructions and notes. Added some Easter eggs at the end of certain games... 7/1/13--v.1.2--Added CPU recognition of the puck when the puck is near the red line. Cleaned the CPU code so that it runs faster. Fixed bug in processor that prevented sound from being played at the end of the game. 6/30/13--v.1.1--Cleaned the whole code to make the game run faster. (Yay!) Fixed a bug that allowed easy goals on the CPU. Added a processor to take over running the game from the puck, further increasing the game speed. Eliminated "Puck x" and "Puck y" variables. Switched goal sounds. This update dramatically reduces lag! 6/29/13--v 1.0.1--Cleaned up paddle codes a little. 6/27/13--v 1.0--Went live! by ParkerS98