2022-05-21 14:03:21 +09:00
|
|
|
package sig;
|
|
|
|
|
2022-05-21 02:41:04 -05:00
|
|
|
import javax.imageio.ImageIO;
|
2022-05-21 14:03:21 +09:00
|
|
|
import javax.swing.JFrame;
|
|
|
|
import sig.engine.Panel;
|
2022-05-21 02:41:04 -05:00
|
|
|
import java.awt.image.BufferedImage;
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.IOException;
|
2022-05-21 14:03:21 +09:00
|
|
|
|
2022-05-21 02:41:04 -05:00
|
|
|
public class RabiClone {
|
2022-05-21 14:03:21 +09:00
|
|
|
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();
|
2022-05-21 02:41:04 -05:00
|
|
|
BufferedImage nana;
|
|
|
|
try {
|
|
|
|
nana = ImageIO.read(new File("..","3x.png"));
|
|
|
|
p.Draw_Nana(p.Get_Nana(nana));
|
|
|
|
} catch (IOException e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
2022-05-21 14:03:21 +09:00
|
|
|
}
|
|
|
|
}
|