Basically I have this code and another program that rotates text around the screen and I'm trying to merge them. How do I draw a string to this code without the use of something like
public...
Type: Posts; User: JakkyD
Basically I have this code and another program that rotates text around the screen and I'm trying to merge them. How do I draw a string to this code without the use of something like
public...
As you can see here as well
// if the ball hits the left wall add to Player 2 score
if ( BallXLoc <= 11 ){
Player2Score +=...
I solved object going outside of screen by saying if the Y axis of paddle = top or bottom of screen then set the paddle's Y axis to the min/max so it can't go over.
I have another query to do with...
I am using this listener
class Transaction implements KeyListener // When character typed
{
public void keyPressed( KeyEvent e) // Obey this method
{
...
Ahh my first post on this forum and it's a shambolic one. I apologise. I didn't call the checkCollisions(); function while running the main program loop.
I added this and now it's working fine.
...
Hi all, I'm creating a game of Pong and I'm having trouble seeing whether the ball has hit the paddle. My game so far has a ball that bounces around the screen, and a paddle on the left which can be...