commit fb9ccc1d3522387aa99023873dbfbe745a047952 Author: Maurice Date: Wed Nov 26 20:01:02 2025 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2f4698c --- /dev/null +++ b/.gitignore @@ -0,0 +1,31 @@ +### IntelliJ IDEA ### +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ +.kotlin + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ +.idea/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/JGame2D.iml b/JGame2D.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/JGame2D.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/de/mp/jgame2d/core/Boot.java b/src/de/mp/jgame2d/core/Boot.java new file mode 100644 index 0000000..905225f --- /dev/null +++ b/src/de/mp/jgame2d/core/Boot.java @@ -0,0 +1,17 @@ +package de.mp.jgame2d.core; + +import javax.swing.*; + +public class Boot { + + public static void main() { + JFrame window = new JFrame(); + window.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); + window.setResizable(false); + window.setTitle("JGame2D"); + + window.setLocationRelativeTo(null); + window.setVisible(true); + } + +} diff --git a/src/de/mp/jgame2d/core/GamePanel.java b/src/de/mp/jgame2d/core/GamePanel.java new file mode 100644 index 0000000..83056d9 --- /dev/null +++ b/src/de/mp/jgame2d/core/GamePanel.java @@ -0,0 +1,10 @@ +package de.mp.jgame2d.core; + +import javax.swing.*; + +public class GamePanel extends JPanel { + + // SCREEN SETTINGS + final int originalTileSize = 16; //16x16 tile + +}