1 Attachment(s)
Stand O' Food Game Proyect
Hi!!
Well Im going to tell you what Im doing
In the university give me a task, to make a game in Java (lenguage Im learning)
I choose the Stand O' Food
http://www.alawar.com/games_img/game...creenshot2.jpg
As you can see is and ambitious proyect to me, but I want to try.
The idea of the proyect is to make the game and olso with thread make a step by step tutorial
To beging my first step is to make the backgruond of the game and thats were the problems starts, because i dont know how to putit
what i have is this..
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
public class StandOFood{
public static final int WIDTH = 1026;
public static final int HEIGHT = 757;
public StandOFood() {
JFrame ventana = new JFrame("Stand O' Foof");
ventana.setBounds(0,0,WIDTH,HEIGHT);
ventana.setVisible(true);
ventana.addWindowListener( new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
}
public static void main(String[] args) {
StandOFood inv = new StandOFood();
}
}
So the cuestion is.. how can i put a background image that i attach on my screen??
THX!!!! very much!!