You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
702 B
32 lines
702 B
3 years ago
|
package sig;
|
||
|
|
||
3 years ago
|
import javax.imageio.ImageIO;
|
||
3 years ago
|
import javax.swing.JFrame;
|
||
|
import sig.engine.Panel;
|
||
3 years ago
|
import java.awt.image.BufferedImage;
|
||
|
import java.io.File;
|
||
|
import java.io.IOException;
|
||
3 years ago
|
|
||
3 years ago
|
public class RabiClone {
|
||
3 years ago
|
public static final String PROGRAM_NAME="Sig's Java Project Template";
|
||
|
public static void main(String[] args) {
|
||
|
JFrame f = new JFrame(PROGRAM_NAME);
|
||
|
Panel p = new Panel(f);
|
||
|
p.init();
|
||
|
|
||
|
f.add(p);
|
||
|
f.setSize(1280,720);
|
||
|
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||
|
f.setVisible(true);
|
||
|
|
||
|
p.render();
|
||
3 years ago
|
BufferedImage nana;
|
||
|
try {
|
||
|
nana = ImageIO.read(new File("..","3x.png"));
|
||
|
p.Draw_Nana(p.Get_Nana(nana));
|
||
|
} catch (IOException e) {
|
||
|
e.printStackTrace();
|
||
|
}
|
||
3 years ago
|
}
|
||
|
}
|