im making kind of like a shooting game where u have a rectangle on side of the screen and they shoot each other, im trying to make one fo the rectangles move up with the letter 'o' but it doesnt seem...
Type: Posts; User: joelmeler
im making kind of like a shooting game where u have a rectangle on side of the screen and they shoot each other, im trying to make one fo the rectangles move up with the letter 'o' but it doesnt seem...
I wanna make the circle move up, heres the code:
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.ImageObserver;
import...
i guess i have a lot of the needed ones
help please?
yeah u were right
i have this now
Image img=null;
try
{
img=ImageIO.read(new File("Leftp2.png"));
}
i do, dont i?
g.drawImage(img,p2.x,p2.y,this);
Image img=null;
try
{
img=ImageIO.read(new File("Leftp2.png");
catch(IOException e)
}
if(p2Direction==LEFT)
g.drawImage(img,p2.x,p2.y,this)
yeah i already tried different ways with the ImageIO tool and none have worked culd u help me?
this is a racing game and i want the picture to take place for my "square cars". thanks, heres the code, everything works fine, i just wanna add the pics.
import javax.swing.*;
import...
thats not a problem i tried it already but thanks. i added some brackets i was missing and got down to 10 errors, the ones bothering me right now are the "try without catch" and i have no clue on...
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
public class GameRace extends JFrame
{
final int WIDTH = 900, HEIGHT = 650;
other than the WITHD, i fixed it still doesnt work
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
public class Game1 extends JFrame {
final int WITHD = 900, HEIGHT = 650;
Rectangle left...