##// END OF EJS Templates
Some DOM stuff, VIEW
Some DOM stuff, VIEW

File last commit:

r18:6b72d87e default
r18:6b72d87e default
Show More
main.ps
32 lines | 786 B | application/postscript | PostScriptLexer
Tutorial game works!
r6
(in-package sugar-qsp)
A better UI
r9 (setf (root)
Sounds, save/load UI buttons
r12 (ps:create
;;; Game session state
;; Variables
vars (ps:create)
;; Inventory (objects)
objs (list)
;;; Transient state
;; Savegame data
state-stash (ps:create)
;; List of audio files being played
playing (ps:create)
Locals
r14 ;; Local variables stack (starts with an empty frame)
locals (list)
Sounds, save/load UI buttons
r12 ;;; Game data
;; ACTions
acts (ps:create)
;; Locations
locs (ps:create)))
Tutorial game works!
r6
Menu, game saving
r11 ;; Launch the game from the first location
A better UI
r9 (setf window.onload
(lambda ()
Some DOM stuff, VIEW
r18 (api-call init-dom)
Menu, game saving
r11 (funcall (ps:getprop (root locs)
Properly handle stringly-indexed arrays
r16 (ps:chain *object (keys (root locs)) 0))
(list))
A better UI
r9 (values)))
Menu, game saving
r11