So this is going to be the last project for my java class. Any input is appreciated and I'm generally posting it here because someone else might benefit from it. It is not done yet but when it is I'm going to post the full code. I made a video about this u can see it here: https://www.youtube.com/watch?v=wWmsXcuW6FE The ball class: /* * This is the Ball class */ public class Ball { //variables for the x and y position private int xPos,yPos; //the direction of the x and y position. Dy is set to -5 because, //remeber that the …

Member Avatar
+0 forum 0

Hi guys. I made a pong game with Python, and I was looking for some possible improvements. The code can be found [here](https://github.com/astronautlevel/Python-Repo/blob/master/Python/Pong%20game/Pong.py). Please look at it and reccomend some improvements. Thanks!

Member Avatar
+0 forum 0

Hello, I'm writing a small game for a class. The problem is when i run it it starts consuming the computers resources, i bet i've done something very wrong but i just can't find it (haven't even added bouncing back from the paddle to the code, or game over for that matter) 4 classes Mang.java [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Mang extends JPanel implements MouseMotionListener, ActionListener { Reket alus=new Reket(); Pall Pallike=new Pall(); Timer t=new Timer(100, this); int abiX=180; int abiY=getHeight()-50; public Mang(){ alus.muudaAsukoht(abiX, abiY); setLayout(new BorderLayout()); addMouseMotionListener(this); t.start(); } public void paintComponent(Graphics g){ super.paintComponent(g); Pallike.joonista(g); alus.joonista(g); …

Member Avatar
Member Avatar
+0 forum 8

I played this game of pong I made for 3 hours two days ago. Summer is so boring. [URL="http://danielberry.zxq.net/pong"]http://danielberry.zxq.net/pong[/URL]

Member Avatar
Member Avatar
+0 forum 5

Hello, I recently took up a challenge to make a full screen pong game in java. So far it is full screen, it does the basics (bouncing off floor/roof/paddles) with a minor point system. I also added support for every 20 seconds it speeds up the ball by 1pixel per 0.05 seconds (50ms is the time I used for an update "delay"), there is also a ball color changer that changes the ball's color randomly every 2 seconds after the 1 minute mark. The 2 mini-challenges have a timer where if one of the 2 paddles misses the ball (aka …

Member Avatar
Member Avatar
+0 forum 2

I'm a beginner c++ programmer. I use Win XP and CodeBlocks. I'm trying to make a pong game, I already have the controls programmed, but I need a method to do the following: Check for user input, if they don't input for x milliseconds, then continue with the loop so the ball's path can be updated. Or something that could check input and move the ball at the same time. Any Suggestions? Thank you!

Member Avatar
Member Avatar
+0 forum 3

[U][B]Explanation on why program must maintain simplicity:[/B][/U]I am a peer tutor of a computer programming class and my teacher has asked me to develop a few simple games to teach the class. This is the first year the school has taught Python (thanks to my final project last semester, and now I'm stuck doing the teaching... =/ ). Because of this, my teacher cannot assist me very successfully. I am aware of PyGame and wxPython but my teacher really wants me to keep things as simple and self contained as possible (he does not want to reimage every computer in …

Member Avatar
Member Avatar
+0 forum 4

I've made pong and was wondering how I could embed it (it was made in java). I'm new to java so if you could explain it, that would be helpful, but if you can't that's ok. Thanks in advance :icon_mrgreen:.

Member Avatar
Member Avatar
+0 forum 4

The End.