Round one of the AI contest. Just a simple pong game, with motion blurry thingies for eye candy. !!!! Please make a remix, or post your links in the studio !!!! Deadline will be next Saturday, 5th july, midnight GMT , so you have over a week. The contest will be ended if everyone has already finished. Your objective: make player 2 an AI, make it so it always wins, or most of times. This is easy enough, since it's the first round. Inside is the "AI" object, the only one you may edit, which indicates which variables you may read and which you may write. It is "at the front", so it will run before the game code. You can create other variables to use as counters or temporarily store numbers or anything, but you may not "hack" and set the paddle's y position to that of the ball.
Useful numbers: 200 -> x coordinate of the paddles 10 -> ball radius 60 -> paddle height 35 -> y difference between ball and paddle that assures bounce 1 -> initial ball x speed and y speed 5 -> paddles' y speed -------------------------------------------------------------------------------------- Would you like to have one of your games as a round? let me @xlk or @tcodina know, and we'll consider it. Keep in mind it has to be harder than the rounds already finished, yet not crazy-hard. It WON'T be a remix, so much as a downloaded copy that has been set up for the contest. If it's too hard to understand what the code does, it won't be used.