Minor change to render-world towards allowing heightmaps to be selected.

This commit is contained in:
Simon Brooke 2014-07-17 09:52:58 +01:00
parent b666540ac9
commit dc4581924f
4 changed files with 35 additions and 21 deletions

View file

@ -41,8 +41,9 @@
(let [world (or (session/get :world)
(engine/transform-world
(heightmap/apply-heightmap
(world/make-world 20 20)
"resources/public/img/20x20/hill.png")
;;"resources/public/img/20x20/hill.png"
"resources/public/img/heightmaps/great_britain_and_ireland_small.png"
)
rules/init-rules))
rules (or (session/get :rules)
(do (session/put! :rules (compiler/compile-file "resources/rulesets/basic.txt"))