really a pirate game

This commit is contained in:
2023-11-05 21:30:20 -06:00
commit 7dbdaa6888
10 changed files with 501 additions and 0 deletions

16
scratches/bootstrap.clj Normal file
View 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)