minor change: init the files in level-editor.
[uxul-world.git] / game.lisp
index 711dc78..fd366fd 100755 (executable)
--- a/game.lisp
+++ b/game.lisp
@@ -4,7 +4,16 @@
 
 (defparameter *cfont* nil)
 
-(defun start-game (&key (music nil) room-function (15-fps nil))
+(defun run-testing-room ()
+  (start-game :room-function #'make-testing-room))
+
+(defun run-room (item-list)
+  (start-game :room-function
+             #'(lambda () (create-room-from-item-list item-list))))
+
+(defun start-game (&key (music nil)
+                  (room-function #'make-testing-room)
+                  (15-fps nil))
   "Start the Game: Call room-function for getting the room-object to
 run. Music is ignored so far. 15-fps makes only every second frame be
 drawn (for very slow computers)"