From 78c8c529734b569c6476bab399378daa241dd11a Mon Sep 17 00:00:00 2001 From: Christoph Senjak Date: Wed, 19 Aug 2009 17:12:03 +0200 Subject: [PATCH] Exported the start-functions. Removed the jumping-bug. --- BUGS | 1 + player.lisp | 10 ++++++++++ uxul-world.lisp | 4 +++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/BUGS b/BUGS index 655148f..a3cbddf 100644 --- 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 diff --git a/player.lisp b/player.lisp index a111e43..72090d6 100755 --- a/player.lisp +++ b/player.lisp @@ -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 @@ -153,6 +156,13 @@ (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))) diff --git a/uxul-world.lisp b/uxul-world.lisp index 34a44bb..fd6efd1 100755 --- a/uxul-world.lisp +++ b/uxul-world.lisp @@ -8,4 +8,6 @@ #:init-media #:level-editor #:create-room-from-item-list - #:start-game)) + #:start-game + #:run-room + #:run-testing-room)) -- 2.20.1