Setup project variables

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
Nic0Nic0Nii 3 years ago
parent 4acf3fc708
commit e99eaa0f43
  1. 2
      sig
  2. 2
      src/sig/ArcadeScreenshotHandler.java
  3. 4
      src/sig/engine/Panel.java

2
sig

@ -1,6 +1,6 @@
source utils/define.sh
define PROJECT_NAME "JavaProjectTemplate"
define PROJECT_NAME "ArcadeScreenshotHandler"
define PROJECT_DIR "src/sig"
define MAIN_CLASS "sig.${PROJECT_NAME}"
define OUT_DIR "bin"

@ -3,7 +3,7 @@ package sig;
import javax.swing.JFrame;
import sig.engine.Panel;
public class JavaProjectTemplate {
public class ArcadeScreenshotHandler {
public static final String PROGRAM_NAME="Sig's Java Project Template";
public static void main(String[] args) {
JFrame f = new JFrame(PROGRAM_NAME);

@ -12,7 +12,7 @@ import java.util.List;
import javax.swing.JFrame;
import javax.swing.JPanel;
import sig.JavaProjectTemplate;
import sig.ArcadeScreenshotHandler;
public class Panel extends JPanel implements Runnable {
JFrame window;
@ -80,7 +80,7 @@ public class Panel extends JPanel implements Runnable {
if (window!=null&&System.currentTimeMillis()-lastSecond>=1000) {
window.setTitle(JavaProjectTemplate.PROGRAM_NAME+" - FPS: "+(frameCount-lastFrameCount));
window.setTitle(ArcadeScreenshotHandler.PROGRAM_NAME+" - FPS: "+(frameCount-lastFrameCount));
lastFrameCount=frameCount;
lastSecond=System.currentTimeMillis();
}

Loading…
Cancel
Save