# HG changeset patch # User Steve Losh # Date 1450095072 0 # Node ID 8b6a5e8858614c92f55242763b408768bb979a6f # Parent f131887d02bc69729c59ff106f07c2f8823c01f2 Minor tweaks before initial packaging run. It works on Windows! diff -r f131887d02bc -r 8b6a5e885861 src/silt/core.clj --- a/src/silt/core.clj Mon Dec 14 11:51:40 2015 +0000 +++ b/src/silt/core.clj Mon Dec 14 12:11:12 2015 +0000 @@ -1,6 +1,7 @@ (ns silt.core (:require [lanterna.screen :as s] [roul.random :as rr] + [clojure.pprint] [clojure.core.match :refer [match]] [clojure.stacktrace :refer [print-stack-trace]]) (:gen-class)) @@ -405,10 +406,10 @@ (commute cursor-loc #(let [[x y] %1] (case %2 - \k [x (- y 1)] - \j [x (+ y 1)] - \h [(- x 1) y] - \l [(+ x 1) y])) + (\w \k) [x (- y 1)] + (\s \j) [x (+ y 1)] + (\a \h) [(- x 1) y] + (\d \l) [(+ x 1) y])) key)) (mark-dirty!)) @@ -484,7 +485,7 @@ (:up :down :left :right) (move-window! key 10) - (\h \j \k \l) + (\h \j \k \l \w \a \s \d) (move-cursor! key) \space @@ -499,7 +500,7 @@ (\- \_) (update-temperature! -1) - \r + \R (reset-world!) nil))) @@ -539,10 +540,8 @@ ; Scratch --------------------------------------------------------------------- -(defn -main - "I don't do a whole lot ... yet." - [& args] - (println "Hello, World!")) +(defn -main [& args] + (main-loop)) (comment (reset! running false)