Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pong]

Pong is a game where two players each control a paddle, hitting a ball and trying to score points by having the opponent missing the ball. Questions about clones of this game should use this tag.

0
votes
1answer
39 views

How do I destroy a class/how do I link a class to a gameObject

I am fairly new to programming and I decided to create a Pong game. I created the sprites and was able to make the paddles and the dot work. The only help I needed was when I wanted the dot to ...
1
vote
2answers
87 views

Pong tutorial / Unity Logic question

I've been following this Pong tutorial, which is great: https://noobtuts.com/unity/2d-pong-game. The C#, unity components etc I understand. But what I am having trouble with is understanding the logic ...
0
votes
0answers
52 views

Optimization for end-to-end multiplayer pong-like game

I've developing a small pong-like game for educational purposes and I've reached the point where I'm looking at implementing network gameplay. The idea is that a player can either wait for someone to ...
0
votes
0answers
43 views

What is this controllable black object appearing in my scene?

I am following the 'Blueprint and C++ Integration in Unreal Engine 4' course on Pluralsight as a project in my CS class. I am at the end of the course, and I have the BP_PaddlePlayer BP implemented, ...
4
votes
1answer
469 views

What is original Pong ball behaviour?

I am building a Pong clone to learn interactive programming and I've stumbled in getting the ball movement and bouncing on the paddles right. If I play the original game I can't really understand how ...
1
vote
2answers
82 views

How is ball_pos calculated

I'm new to game development and I'm trying to build my first Pong game on the Godot engine. the tutorial I'm following is given below. Simple Pong Game What I don't understand is the line: ...
1
vote
1answer
898 views

Calculating ball trajectory in Pong

I'm making a Pong game and I'm just looking for a simple way to calculate a straight travelling path for the ball based on the angle of the ball. How would I go about implementing something like this? ...
1
vote
2answers
1k views

How to make the paddle stop at the screen edge in my Pong clone?

Well, I'm obviously very new to game dev and Android. I've got a ball bouncing around (successfully detecting screen edge collisions so that the bitmap stays within screen) and a paddle that the user ...