diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..f3e1f1c --- /dev/null +++ b/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..9e4ad9c --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + Dive Engine Test Games + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..3a21537 --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,11 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/bin/Space Wars/build.config b/bin/Space Wars/build.config new file mode 100644 index 0000000..2a8bb47 --- /dev/null +++ b/bin/Space Wars/build.config @@ -0,0 +1,3 @@ +StartScene = game +Resolution = 1024x600 +name = Space Wars \ No newline at end of file diff --git a/bin/Space Wars/game.scene b/bin/Space Wars/game.scene new file mode 100644 index 0000000..0e37590 --- /dev/null +++ b/bin/Space Wars/game.scene @@ -0,0 +1,15 @@ +[diveengine2d.Entity] +$GUID = "9e477f6d-778d-43e2-afe0-028a0a99cd74" +$name = "Player" + +Component spacewars.PlayerController +$name = "player controller" +$message = "hello from the script!" +End Component + +Component diveengine.RectRenderer +$name = "render!" +$width = 16F +$height = 16F +$color = #776611 +End Component \ No newline at end of file diff --git a/bin/Space Wars/player.template b/bin/Space Wars/player.template new file mode 100644 index 0000000..e69de29 diff --git a/src/Space Wars/build.config b/src/Space Wars/build.config new file mode 100644 index 0000000..2a8bb47 --- /dev/null +++ b/src/Space Wars/build.config @@ -0,0 +1,3 @@ +StartScene = game +Resolution = 1024x600 +name = Space Wars \ No newline at end of file diff --git a/src/Space Wars/game.scene b/src/Space Wars/game.scene new file mode 100644 index 0000000..0e37590 --- /dev/null +++ b/src/Space Wars/game.scene @@ -0,0 +1,15 @@ +[diveengine2d.Entity] +$GUID = "9e477f6d-778d-43e2-afe0-028a0a99cd74" +$name = "Player" + +Component spacewars.PlayerController +$name = "player controller" +$message = "hello from the script!" +End Component + +Component diveengine.RectRenderer +$name = "render!" +$width = 16F +$height = 16F +$color = #776611 +End Component \ No newline at end of file diff --git a/src/Space Wars/player.template b/src/Space Wars/player.template new file mode 100644 index 0000000..e69de29 diff --git a/src/spacewars/PlayerController.java b/src/spacewars/PlayerController.java new file mode 100644 index 0000000..0ea4bbf --- /dev/null +++ b/src/spacewars/PlayerController.java @@ -0,0 +1,7 @@ +package spacewars; + +import diveengine2d.DiveScript; + +public class PlayerController extends DiveScript { + public String message = null; +} diff --git a/src/spacewars/SpaceWars.java b/src/spacewars/SpaceWars.java new file mode 100644 index 0000000..6c8ac07 --- /dev/null +++ b/src/spacewars/SpaceWars.java @@ -0,0 +1,18 @@ +package spacewars; + +import java.io.File; + +import diveengine2d.Engine; + +public class SpaceWars { + public static void main(String[] args) { + test("Space Wars"); + } + + private static void test(String game) { + final String gamePath = "" + new File(SpaceWars.class.getProtectionDomain().getCodeSource() + .getLocation().getPath().replace("%20", " ") + game + "\\").getPath(); + + Engine engine = new Engine(gamePath); + } +}