diff --git a/build.clj b/build.clj index 3dc071d..a9975bf 100644 --- a/build.clj +++ b/build.clj @@ -28,7 +28,7 @@ (b/copy-dir {:src-dirs ["src" "resources"] :target-dir class-dir}) (b/compile-clj {:basis basis - :ns-compile '[ois.core] + :ns-compile '[ois.launcher] :class-dir class-dir}) (b/uber {:class-dir class-dir :uber-file uber-file diff --git a/deps.edn b/deps.edn index 4bb1d8f..b42e8fb 100644 --- a/deps.edn +++ b/deps.edn @@ -9,6 +9,7 @@ com.badlogicgames.gdx/gdx-bullet-platform$natives-desktop { :mvn/version "1.11.0" } com.badlogicgames.gdx/gdx-platform$natives-desktop { :mvn/version "1.11.0" } org.clojure/clojure { :mvn/version "1.7.0" } + play-clj/play-clj { :mvn/version "1.1.1" } } :aliases { :build { diff --git a/src/ois/core.clj b/src/ois/core.clj index c44f0a4..7206a07 100644 --- a/src/ois/core.clj +++ b/src/ois/core.clj @@ -6,7 +6,7 @@ [com.badlogic.gdx.scenes.scene2d.ui Label Label$LabelStyle])) (gen-class - :name demo.core.Game + :name ois.core.Game :extends com.badlogic.gdx.Game) (def main-screen @@ -14,7 +14,7 @@ (proxy [Screen] [] (show [] (reset! stage (Stage.)) - (let [style (Label$LabelStyle. (BitmapFont.) (Color. 1 1 1 1)) + (let [style (Label$LabelStyle. (BitmapFont.) (Color. 0 1 0 1)) label (Label. "Hello world!" style)] (.addActor @stage label))) (render [delta] diff --git a/src/ois/launcher.clj b/src/ois/launcher.clj index a29dae9..7bc618b 100644 --- a/src/ois/launcher.clj +++ b/src/ois/launcher.clj @@ -1,9 +1,9 @@ (ns ois.launcher - (:require [demo.core :refer :all]) + (:require [ois.core :refer :all]) (:import [com.badlogic.gdx.backends.lwjgl LwjglApplication] [org.lwjgl.input Keyboard]) (:gen-class)) (defn -main [] - (LwjglApplication. (demo.core.Game.) "demo" 800 600) + (LwjglApplication. (ois.core.Game.) "demo" 800 600) (Keyboard/enableRepeatEvents true))