![]() |
I'm creating a 2D game. - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: Off Topic (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=5) +--- Forum: Programming (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=30) +--- Thread: I'm creating a 2D game. (/showthread.php?tid=7947) |
I'm creating a 2D game. - Nice - 08-11-2011 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) { } |