2022 Developer Survey is open! Take survey.

Questions tagged [pong]

A classic arcade game in which two players control paddles to bounce a ball back to their opponent (like air hockey)

Filter by
Sorted by
Tagged with
6 votes
3 answers
178 views

Predict bouncing ball destination in JavaScript

In a Pong-style 2D game, a ball (a circle of radius BALLRADIUS) can bounce (with perfect elasticity) on the top or bottom of the screen. When it hits the left or right side of the screen, one of the ...
user avatar
  • 2,780
2 votes
2 answers
187 views

Game States / Pong: SFML Box2D EnTT

Trying to make a little 2D engine I can play with. The end goal is a simple multiplayer PVP game just using shapes. I will make one version using ECS and one using OOP for learning. This is the shell ...
user avatar
2 votes
0 answers
28 views

DQN implementation

I just wrote my pong DQN. It seems to work. I'm looking for a performance based review on anything that might slow down the training in complex models. main.py: ...
user avatar
5 votes
1 answer
168 views

Pong Game project

I tried to make a Pong game in Java. It's my first game I have ever programmed, and I would be very pleased if you would take the time to advise me on what I could do better next time. Thank you so ...
user avatar
  • 53
1 vote
0 answers
133 views

Python console pong game - multithreading

I am writing a pong game in Python that uses voice input to move the paddles. I have implemented multithreading so that the google speech recognition module can always run in a separate thread from ...
user avatar
25 votes
1 answer
3k views

A Pong Game using C++

I wrote a simple, 2-player Pong game for a Udacity Nanodegree in C++. The program has the following class structure (relatively new to UML so any tips on here would be very much welcome too): ...
user avatar
  • 351
2 votes
0 answers
76 views

Pong Implementation using Rust SFML

Getting my feet wet with Game Development, and was wanting to see where I could improve in my usage of Rust as well as Game Development concepts. ...
user avatar
6 votes
2 answers
113 views

Pong-Like Game. First game I ever made. advice needed

This is my first time ever making a game. It is a pong-like game, where the user has a paddle and has to prevent the ball from passing them. Since this is my first game, I want any recommendations/...
user avatar
2 votes
1 answer
2k views

Pong game in Python with tkinter

This is a pong game I created some time ago, but it doesn't have methods to store scores yet and also might have some bugs. It is also very slow. The code: ...
user avatar
  • 2,710
1 vote
1 answer
904 views

Basic Pong game using C++ and SFML

I am making use of C++ and SFML to make a basic Pong game. I have made it so that there are two players who can control the paddle on each side and the ball will bounce off screen and paddles except ...
user avatar
4 votes
1 answer
59 views

PONG XI Platinum Edition

This is my first game. This header defines the constants: Constants.h: ...
user avatar
  • 43
6 votes
1 answer
726 views

First OOP in Python 3: Pygame Pong

I have been studying Python for a few months and just recently decided to stop avoiding OOP and reworked a Pong game to a more object oriented style. Please tell me how I should improve my code. Some ...
user avatar
3 votes
1 answer
10k views

Python Pong using turtle

I am a new Python programmer, and I am learning how to use the turtle import. I am making some projects, and now I am trying to do a Pong game using turtle. It is working but not really well; the ...
user avatar
2 votes
1 answer
3k views

1 player Pong with AI

I have made this pong game as a 1 player game, versus the computer. however it is impossible to beat the ai. Any ideas to make the code better would be appreciated. ...
user avatar
  • 45
16 votes
1 answer
98k views

Pong game in Java

I have recently written the following Pong game in Java: Pong class: ...
user avatar
  • 1,291