##// END OF EJS Templates
Globals instead of ROOT object
Globals instead of ROOT object

File last commit:

r39:7db3bdd1 default
r39:7db3bdd1 default
Show More
main.ps
48 lines | 1.2 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
Globals instead of ROOT object
r39 ;;; Game session state (saved in savegames)
;; Variables
(var *globals (create))
;; Inventory (objects)
(var *objs (create))
(var *current-location nil)
;; Game time
(var *started-at (chain *date (now)))
;; Timers
(var *timer-interval 500)
(var *timer-obj nil)
;; Games
(var *loaded-games (list))
Multiple sources, multiple games, openqst/addqst/killqst
r31
Globals instead of ROOT object
r39 ;;; Transient state
;; ACTions
(var *acts (create))
;; Savegame data
(var *state-stash (create))
;; List of audio files being played
(var *playing (create))
;; Local variables stack (starts with an empty frame)
(var *locals (list))
Multiple sources, multiple games, openqst/addqst/killqst
r31
Globals instead of ROOT object
r39 ;;; Game data
;; Games (filename -> [locations])
(var *games (list))
;; The main (non library) game. Updated by openqst
(var *main-game nil)
;; Active locations
(var *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
Globals instead of ROOT object
r39 (setf *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")
Globals instead of ROOT object
r39 *timer-interval)
Multiple sources, multiple games, openqst/addqst/killqst
r31 ;; Start the first game
(#.(intern "RUN-GAME" "SUGAR-QSP.API")
Globals instead of ROOT object
r39 (chain *object (keys *games) 0))
A better UI
r9 (values)))