lots of tweaks for versioning and extracting script.

This commit is contained in:
Bryce Covert
2015-10-28 18:28:29 -07:00
parent 34933312a2
commit 43661dbf29
12 changed files with 68 additions and 103 deletions

View File

@@ -164,7 +164,7 @@
{:run #(actions/respond entities % :ladder-guard "I am Took, son of Luke, son of Puke.")
:choices actions/previous-choices}
"Goodbye."
{:run #(actions/respond entities % "Goodbye.")}]}))
{:run #(actions/respond entities % :ladder-guard "Goodbye.")}]}))
(defn make [screen]
(let [#_#_warriors-stand-sheet (texture! (utils/get-texture "inside-cafeteria/warriors-stand.png") :split 66 126)

View File

@@ -13,6 +13,7 @@
[advent.screens.inventory :as inventory]
[advent.screens.safe :as safe]
[advent.screens.fade :as fade]
[advent.version]
)
(:import [com.badlogic.gdx.graphics Pixmap Pixmap$Filter Texture Texture$TextureFilter]
[com.badlogic.gdx.graphics.g2d TextureRegion]
@@ -253,7 +254,7 @@
:font font
:music music
:volume 1.0
:copyright (make-label "DEMO - Copyright Bryce Covert - Not for distribution")
:copyright (make-label (str "DEMO - Copyright Bryce Covert - Not for distribution - version " (advent.version/version)))
:tweens {:fade-in (tween/tween :fade-in screen [:fade :opacity] 1.0 0.0 1.0
:finish #(do

View File

@@ -0,0 +1,5 @@
(ns advent.version
(:gen-class))
(defn version []
(-> (eval 'advent.version) .getPackage .getImplementationVersion))