Exported the start-functions. Removed the jumping-bug.
authorChristoph Senjak <christoph@christoph-senjaks-macbook-pro.local>
Wed, 19 Aug 2009 15:12:03 +0000 (17:12 +0200)
committerChristoph Senjak <christoph@christoph-senjaks-macbook-pro.local>
Wed, 19 Aug 2009 15:12:03 +0000 (17:12 +0200)
BUGS
player.lisp
uxul-world.lisp

diff --git a/BUGS b/BUGS
index 655148f..a3cbddf 100644 (file)
--- a/BUGS
+++ b/BUGS
@@ -6,3 +6,4 @@
    time clipping works correctly.
 
 2009/08/04 Jumping after falling down from a stone is possible
+- 2009/08/20 Fixed
index a111e43..72090d6 100755 (executable)
@@ -28,6 +28,9 @@
              :initform  (make-animation 7
                                        |uxul_small1|
                                        |uxul_small2|))
+   (last-y :initarg :last-pos
+            :accessor last-y
+            :initform nil)
    (jump-accel :accessor jump-accel
               :initform -50)
    (mayjump :accessor mayjump
 (defmethod invoke ((obj player))
   "Do whatever a player does ^^"
 
+  (if (and
+       (last-y obj)
+       (< (last-y obj) (y obj)))
+      (setf (mayjump obj) nil))
+
+  (setf (last-y obj) (y obj))
+
   ;; SIMPLE GRAVITY HACK
   (setf (key-pressed-down obj) (not (key-pressed-up obj)))
 
index 34a44bb..fd6efd1 100755 (executable)
@@ -8,4 +8,6 @@
         #:init-media
         #:level-editor
         #:create-room-from-item-list
-        #:start-game))
+        #:start-game
+        #:run-room
+        #:run-testing-room))