##// END OF EJS Templates
MENU
MENU

File last commit:

r30:3c634d0a default
r30:3c634d0a default
Show More
main.ps
44 lines | 1.1 KiB | application/postscript | PostScriptLexer
Tutorial game works!
r6
Use Parenscript's minifier and obfuscator... and namespaces. SAVES CURRENTLY BROKEN
r25 (in-package sugar-qsp.main)
Tutorial game works!
r6
A better UI
r9 (setf (root)
Use Parenscript's minifier and obfuscator... and namespaces. SAVES CURRENTLY BROKEN
r25 (create
Sounds, save/load UI buttons
r12 ;;; Game session state
;; Variables
Use Parenscript's minifier and obfuscator... and namespaces. SAVES CURRENTLY BROKEN
r25 vars (create)
Sounds, save/load UI buttons
r12 ;; Inventory (objects)
objs (list)
Use Parenscript's minifier and obfuscator... and namespaces. SAVES CURRENTLY BROKEN
r25 current-location nil
Finishing lib
r20 ;; Game time
Use Parenscript's minifier and obfuscator... and namespaces. SAVES CURRENTLY BROKEN
r25 started-at (chain *date (now))
Finishing lib
r20 ;; Timers
timer-interval 500
timer-obj nil
Sounds, save/load UI buttons
r12 ;;; Transient state
;; Savegame data
Use Parenscript's minifier and obfuscator... and namespaces. SAVES CURRENTLY BROKEN
r25 state-stash (create)
Sounds, save/load UI buttons
r12 ;; List of audio files being played
Use Parenscript's minifier and obfuscator... and namespaces. SAVES CURRENTLY BROKEN
r25 playing (create)
Locals
r14 ;; Local variables stack (starts with an empty frame)
locals (list)
Sounds, save/load UI buttons
r12 ;;; Game data
;; ACTions
Use Parenscript's minifier and obfuscator... and namespaces. SAVES CURRENTLY BROKEN
r25 acts (create)
Sounds, save/load UI buttons
r12 ;; Locations
Use Parenscript's minifier and obfuscator... and namespaces. SAVES CURRENTLY BROKEN
r25 locs (create)))
Tutorial game works!
r6
Menu, game saving
r11 ;; Launch the game from the first location
Use Parenscript's minifier and obfuscator... and namespaces. SAVES CURRENTLY BROKEN
r25 (setf (@ window onload)
A better UI
r9 (lambda ()
Use Parenscript's minifier and obfuscator... and namespaces. SAVES CURRENTLY BROKEN
r25 (#.(intern "INIT-DOM" "SUGAR-QSP.API"))
Finishing lib
r20 ;; For MSECCOUNT
Use Parenscript's minifier and obfuscator... and namespaces. SAVES CURRENTLY BROKEN
r25 (setf (root started-at) (chain *date (now)))
Finishing lib
r20 ;; For $COUNTER and SETTIMER
Use Parenscript's minifier and obfuscator... and namespaces. SAVES CURRENTLY BROKEN
r25 (#.(intern "SET-TIMER" "SUGAR-QSP.API")
(root timer-interval))
MENU
r30 ;; Start the first location
Use Parenscript's minifier and obfuscator... and namespaces. SAVES CURRENTLY BROKEN
r25 (funcall (getprop (root locs)
(chain *object (keys (root locs)) 0))
Properly handle stringly-indexed arrays
r16 (list))
A better UI
r9 (values)))
Menu, game saving
r11