Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I'm creating a 2D game.
#1
I'm creating it with java.
DAY 1.
Created the frame, dude/user, and the board.
I fixed a few bugs from the scripts I created.

DAY 2.
I will start continuing to create the board a bit and the dude and the frame.
The board looks like this:

package javaapplication1;

import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;

import javax.swing.*;

public class Board extends JPanel implements ActionListener{
Dude p;
Image img;
Timer time;

public Board () {
p = new Dude () ;
setFocusable (true) ;
ImageIcon i = new ImageIcon ("C:/specit.png") ;
img = i.getImage () ;
time = new Timer (5, this) ;
time.start () ;
}

public void actionPerformed (ActionEvent e) {
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)