Initial commit

This commit is contained in:
2025-11-26 20:01:02 +01:00
commit fb9ccc1d35
4 changed files with 69 additions and 0 deletions

31
.gitignore vendored Normal file
View File

@@ -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

11
JGame2D.iml Normal file
View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@@ -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);
}
}

View File

@@ -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
}