summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-06-26 02:06:32 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-06-26 02:06:32 +0200
commitccbec710375ddab05e60d893851e57f7ee743d19 (patch)
treed22eb9f39093e4a15113b4f29ff7eaf8f4562cfb /core
downloadgdx-boardgame-ccbec710375ddab05e60d893851e57f7ee743d19.zip
gdx-boardgame-ccbec710375ddab05e60d893851e57f7ee743d19.tar.gz
bare bone libgdx project
generated with https://libgdx.badlogicgames.com/nightlies/dist/gdx-setup.jar
Diffstat (limited to 'core')
-rw-r--r--core/build.gradle11
-rw-r--r--core/src/ZProject.gwt.xml5
-rw-r--r--core/src/ch/asynk/zproject/ZProject.java33
3 files changed, 49 insertions, 0 deletions
diff --git a/core/build.gradle b/core/build.gradle
new file mode 100644
index 0000000..03cd1be
--- /dev/null
+++ b/core/build.gradle
@@ -0,0 +1,11 @@
+apply plugin: "java"
+
+sourceCompatibility = 1.6
+[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
+
+sourceSets.main.java.srcDirs = [ "src/" ]
+
+
+eclipse.project {
+ name = appName + "-core"
+}
diff --git a/core/src/ZProject.gwt.xml b/core/src/ZProject.gwt.xml
new file mode 100644
index 0000000..747eb9e
--- /dev/null
+++ b/core/src/ZProject.gwt.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit trunk//EN" "http://google-web-toolkit.googlecode.com/svn/trunk/distro-source/core/src/gwt-module.dtd">
+<module>
+ <source path="ch/asynk/zproject" />
+</module> \ No newline at end of file
diff --git a/core/src/ch/asynk/zproject/ZProject.java b/core/src/ch/asynk/zproject/ZProject.java
new file mode 100644
index 0000000..11764d6
--- /dev/null
+++ b/core/src/ch/asynk/zproject/ZProject.java
@@ -0,0 +1,33 @@
+package ch.asynk.zproject;
+
+import com.badlogic.gdx.ApplicationAdapter;
+import com.badlogic.gdx.Gdx;
+import com.badlogic.gdx.graphics.GL20;
+import com.badlogic.gdx.graphics.Texture;
+import com.badlogic.gdx.graphics.g2d.SpriteBatch;
+
+public class ZProject extends ApplicationAdapter {
+ SpriteBatch batch;
+ Texture img;
+
+ @Override
+ public void create () {
+ batch = new SpriteBatch();
+ img = new Texture("badlogic.jpg");
+ }
+
+ @Override
+ public void render () {
+ Gdx.gl.glClearColor(1, 0, 0, 1);
+ Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
+ batch.begin();
+ batch.draw(img, 0, 0);
+ batch.end();
+ }
+
+ @Override
+ public void dispose () {
+ batch.dispose();
+ img.dispose();
+ }
+}