really a pirate game
This commit is contained in:
16
scratches/bootstrap.clj
Normal file
16
scratches/bootstrap.clj
Normal file
@@ -0,0 +1,16 @@
|
||||
;; you should be in space-sim.core>
|
||||
|
||||
(def my-ship (ref {:position [0. 0.]
|
||||
:heading (normalize [1.0 1.0])
|
||||
:slots [{:type :downwind-sail :length 2 :furl 1.0}]
|
||||
:velocity [1. 0.]}))
|
||||
|
||||
(reset! ships [my-ship])
|
||||
|
||||
(start-program)
|
||||
@my-ship
|
||||
(dosync (alter my-ship assoc :heading (normalize [0. 1.])))
|
||||
(stop-program)
|
||||
|
||||
|
||||
(show-ui)
|
||||
Reference in New Issue
Block a user