First Commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package view;
|
||||
|
||||
import java.awt.Graphics;
|
||||
import java.awt.Graphics2D;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.Timer;
|
||||
|
||||
public class GameView extends JPanel implements ActionListener{
|
||||
|
||||
Timer t;
|
||||
|
||||
public GameView()
|
||||
{
|
||||
t = new Timer(1000/30, this);
|
||||
t.start();
|
||||
}
|
||||
|
||||
public void actionPerformed(ActionEvent arg0) {
|
||||
repaint();
|
||||
}
|
||||
|
||||
public void paintComponent(Graphics g)
|
||||
{
|
||||
super.paintComponent(g);
|
||||
Graphics2D g2d = (Graphics2D) g;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user