asfd
parent
99a2559bc2
commit
7bfc35a9d8
|
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="src" path="src"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||||
|
<classpathentry combineaccessrules="false" kind="src" path="/Dive Engine 2D"/>
|
||||||
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
</classpath>
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>Dive Engine Test Games</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
||||||
|
|
@ -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
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
StartScene = game
|
||||||
|
Resolution = 1024x600
|
||||||
|
name = Space Wars
|
||||||
|
|
@ -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
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
StartScene = game
|
||||||
|
Resolution = 1024x600
|
||||||
|
name = Space Wars
|
||||||
|
|
@ -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
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
package spacewars;
|
||||||
|
|
||||||
|
import diveengine2d.DiveScript;
|
||||||
|
|
||||||
|
public class PlayerController extends DiveScript {
|
||||||
|
public String message = null;
|
||||||
|
}
|
||||||
|
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue