##// END OF EJS Templates
Null indexes
Null indexes

File last commit:

r32:f0801da6 default
r38:de154bb9 default
Show More
main.ps
51 lines | 1.3 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
Multiple sources, multiple games, openqst/addqst/killqst
r31 ;;; Game session state (saved in savegames)
Sounds, save/load UI buttons
r12 ;; Variables
Use Parenscript's minifier and obfuscator... and namespaces. SAVES CURRENTLY BROKEN
r25 vars (create)
Sounds, save/load UI buttons
r12 ;; Inventory (objects)
Special variables and locations
r32 objs (create)
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
Multiple sources, multiple games, openqst/addqst/killqst
r31 ;; Games
loaded-games (list)
Sounds, save/load UI buttons
r12 ;;; Transient state
Multiple sources, multiple games, openqst/addqst/killqst
r31 ;; ACTions
acts (create)
Sounds, save/load UI buttons
r12 ;; 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)
Multiple sources, multiple games, openqst/addqst/killqst
r31
Sounds, save/load UI buttons
r12 ;;; Game data
Multiple sources, multiple games, openqst/addqst/killqst
r31 ;; Games (filename -> [locations])
games (list)
;; The main (non library) game. Updated by openqst
main-game nil
;; Active 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))
Multiple sources, multiple games, openqst/addqst/killqst
r31 ;; Start the first game
(#.(intern "RUN-GAME" "SUGAR-QSP.API")
(chain *object (keys (root games)) 0))
A better UI
r9 (values)))
Menu, game saving
r11