From 920ae46a60d8b68c214d929f51debd579446621a Mon Sep 17 00:00:00 2001 From: dxiao Date: Mon, 17 Sep 2012 18:12:02 -0400 Subject: [PATCH] Added slick test file, ignored .classpath file. Should be remade on import. --- Mazebuilder/.project | 17 ++++++++++ .../.settings/org.eclipse.jdt.core.prefs | 11 ++++++ Mazebuilder/src/TestSlick.java | 34 +++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 Mazebuilder/.project create mode 100644 Mazebuilder/.settings/org.eclipse.jdt.core.prefs create mode 100644 Mazebuilder/src/TestSlick.java diff --git a/Mazebuilder/.project b/Mazebuilder/.project new file mode 100644 index 0000000..bc44699 --- /dev/null +++ b/Mazebuilder/.project @@ -0,0 +1,17 @@ + + + Mazebuilder + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/Mazebuilder/.settings/org.eclipse.jdt.core.prefs b/Mazebuilder/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..54e493c --- /dev/null +++ b/Mazebuilder/.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.6 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.6 +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.6 diff --git a/Mazebuilder/src/TestSlick.java b/Mazebuilder/src/TestSlick.java new file mode 100644 index 0000000..2c5f588 --- /dev/null +++ b/Mazebuilder/src/TestSlick.java @@ -0,0 +1,34 @@ +import org.newdawn.slick.BasicGame; +import org.newdawn.slick.GameContainer; +import org.newdawn.slick.Graphics; +import org.newdawn.slick.SlickException; +import org.newdawn.slick.AppGameContainer; + +public class TestSlick extends BasicGame { + + public TestSlick () { + super("SimpleTest"); + } + + @Override + public void init(GameContainer container) throws SlickException {} + + @Override + public void update(GameContainer container, int delta) + throws SlickException {} + + @Override + public void render(GameContainer container, Graphics g) + throws SlickException { + g.drawString("Hello, Slick world!", 0, 100); + } + + public static void main(String[] args) { + try { + AppGameContainer app = new AppGameContainer(new TestSlick ()); + app.start(); + } catch (SlickException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file