pong

Pong ball not rebounding off of paddles

Pong ball not rebounding off of paddles Question: I’m writing a pong game, and everything works fine – score detection, bouncing off walls, movement of paddles, etc. However, the pong ball won’t bounce off the paddles, instead going right through them. (For the record, I’m doing this on MicroPython, using the pimoroni-pico library, so that’s …

Total answers: 1

Pong game, but the ball goes out of the window

Pong game, but the ball goes out of the window Question: I coded a Pong game but the ball goes out of the window. import pygame pygame.init() WIDTH, HEIGHT = 900, 500 WIN = pygame.display.set_mode((WIDTH, HEIGHT)) #Colors WHITE = (255, 255, 255) BLUE = (0, 0, 255) YELLOW = (255, 255, 0) RED = (255, …

Total answers: 1

What do I do when I exceed maximum recursion depth in __instancecheck__ in python pong?

What do I do when I exceed maximum recursion depth in __instancecheck__ in python pong? Question: I created pong with the help of a youtube tutorial https://www.youtube.com/watch?v=XGf2GcyHPhc&ab_channel=freeCodeCamp.org , and everything works, except the ball goes really fast, and then really slow and so on. The speed of the ball is inconsistent and this makes it …

Total answers: 2

Start the game when SPACE is pressed (Turtle module)

Start the game when SPACE is pressed (Turtle module) Question: I’ve been trying to code the Pong minigame using Turtle Graphics. Everything seems to work perfectly except for the beginning. I want the main loop to start iterating ONLY once the space key is pressed. Here is the part i’ve been having trouble with: ## …

Total answers: 2