Spike Prime - Spike pong - Fedor Agarshev
Back to: List of projects of Spike up Prime Interest in Science and Technology through Games
About the project
The Spike pong project is a game for two players. In this game, the reaction of the players is very important. Lego hammer jumps between players. To tilt the hammer towards the opponent, you need to turn your joystick in the right direction in the direction of the arrow on the light matrix. If you turn too early, you will lose and the indicator will turn purple, and if you do not have time to throw the ball, you will also lose and the indicator will turn red. With each throw, the speed of the hammer increases, so watch your fingers. The game is played on the score, you yourself can set up to how many points, we recommend up to 5 in order not to drag out the game (professionals up to 3).
Video
Build a robot
Before you start playing, you need to assemble the robot in one, you can study its design.
- Be careful while building the motors should be at zero. That is, the dot on the rotating part must match the circle on the base of the motor.
Building instructions:
Get the robot ready
Python code:
Game improvement task
Perhaps some of you have noticed that when the hammer moves up, you can stop it with your fingers and then the loss will not be defended. Use the function of the motor that it feels that it is being slowed down. and in the code, write that the robot defends the defeat of the one whose turn it is now to throw the ball back if the motor feels that it is being slowed down.
Evaluate your performance
Think about what you did well and what you could do better next time. And also how could the game be more interesting.
Teacher Resources