Skip to content

Commit

Permalink
Added slick test file, ignored .classpath file. Should be remade on
Browse files Browse the repository at this point in the history
import.
  • Loading branch information
dxiao committed Sep 17, 2012
1 parent c9cb39e commit 920ae46
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Mazebuilder/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Mazebuilder</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>
11 changes: 11 additions & 0 deletions Mazebuilder/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -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
34 changes: 34 additions & 0 deletions Mazebuilder/src/TestSlick.java
Original file line number Diff line number Diff line change
@@ -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();
}
}
}

0 comments on commit 920ae46

Please sign in to comment.