Provides a screen to draw pixels to with a basic rendering update loop and accepts user input
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.
|
|
|
package sig;
|
|
|
|
|
|
|
|
import javax.swing.JFrame;
|
|
|
|
|
|
|
|
import sig.engine.Color;
|
|
|
|
import sig.engine.Panel;
|
|
|
|
import java.awt.RenderingHints;
|
|
|
|
|
|
|
|
public class JavaProjectTemplate {
|
|
|
|
public static final String PROGRAM_NAME="Sig's Java Project Template";
|
|
|
|
public static int WINDOW_WIDTH=1280;
|
|
|
|
public static int WINDOW_HEIGHT=720;
|
|
|
|
public static Panel game;
|
|
|
|
|
|
|
|
public static void drawGame() {
|
|
|
|
game.Clear(Color.BRIGHT_BLUE);
|
|
|
|
|
|
|
|
game.Draw_Line(null, WINDOW_HEIGHT, WINDOW_HEIGHT, WINDOW_WIDTH, WINDOW_HEIGHT, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
Panel.InitializeEngine();
|
|
|
|
}
|
|
|
|
}
|