##// END OF EJS Templates
Fix two regressions
Fix two regressions

File last commit:

r64:44143cfd default
r64:44143cfd default
Show More
main.ps
58 lines | 1.4 KiB | application/postscript | PostScriptLexer
Tutorial game works!
r6
Localization. Renamed to txt2web
r46 (in-package txt2web.main)
Tutorial game works!
r6
Globals instead of ROOT object
r39 ;;; Game session state (saved in savegames)
;; Variables
(var *globals (create))
Fix two regressions
r64 (var *default-globals (create))
Globals instead of ROOT object
r39 ;; 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))
Bugfixes to optimized variables. CURACT, DELACT
r40 ;; Promise to continue running the game after menu
(var *menu-resume nil)
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
Use Parenscript's minifier and obfuscator... and namespaces. SAVES CURRENTLY BROKEN
r25 (setf (@ window onload)
Make frontender option actually work
r47 #'start)
(defun start ()
(#.(intern "INIT-DOM" "TXT2WEB.API"))
;; For MSECCOUNT
(setf *started-at (chain *date (now)))
;; For $COUNTER and SETTIMER
(#.(intern "SET-TIMER" "TXT2WEB.API")
*timer-interval)
;; Start the first game
Fix two regressions
r64 (let ((first-game (chain *object (keys *games) 0)))
(#.(intern "INIT-GLOBALS" "TXT2WEB.API") first-game)
(#.(intern "RUN-GAME" "TXT2WEB.API") first-game))
Make frontender option actually work
r47 (values))
Bugfixes
r41
;;; Some very common utilities (for both api and lib)
(defun by-id (id)
(chain document (get-element-by-id id)))