##// END OF EJS Templates
Make frontender option actually work
naryl -
r47:fa3235d6 default
parent child Browse files
Show More
@@ -20,7 +20,7 b' be found in `extas` directory.'
20 3. I'm a frontend developer!<br/>
20 3. I'm a frontend developer!<br/>
21 `txt2web game.txt -c -o game.js`<br/>
21 `txt2web game.txt -c -o game.js`<br/>
22 It just builds the game script into a js you can put on your website. To run
22 It just builds the game script into a js you can put on your website. To run
23 the game execute `SugarQSP.start()`
23 the game execute `qsp_start()`
24
24
25 # txt2web
25 # txt2web
26 Компилятор для игр на QSP создающий монолитные страницы на HTML.
26 Компилятор для игр на QSP создающий монолитные страницы на HTML.
@@ -41,4 +41,4 b' 2. **\xd0\xaf \xd0\xb7\xd0\xbd\xd0\xb0\xd1\x8e \xd1\x87\xd1\x82\xd0\xbe \xd0\xb4\xd0\xb5\xd0\xbb\xd0\xb0\xd1\x8e**:<br/>'
41 3. **Я - фронтендер!**<br/>
41 3. **Я - фронтендер!**<br/>
42 `txt2web game.txt -c -o game.js`<br/>
42 `txt2web game.txt -c -o game.js`<br/>
43 Просто соберёт игру в Javascript файл который вы можете разместить на своём
43 Просто соберёт игру в Javascript файл который вы можете разместить на своём
44 сайте как вам угодно.
44 сайте как вам угодно. Чтобы запустить игру: `qsp_start()`
@@ -36,17 +36,19 b''
36 (var *locs (create))
36 (var *locs (create))
37
37
38 (setf (@ window onload)
38 (setf (@ window onload)
39 (lambda ()
39 #'start)
40 (#.(intern "INIT-DOM" "TXT2WEB.API"))
40
41 ;; For MSECCOUNT
41 (defun start ()
42 (setf *started-at (chain *date (now)))
42 (#.(intern "INIT-DOM" "TXT2WEB.API"))
43 ;; For $COUNTER and SETTIMER
43 ;; For MSECCOUNT
44 (#.(intern "SET-TIMER" "TXT2WEB.API")
44 (setf *started-at (chain *date (now)))
45 *timer-interval)
45 ;; For $COUNTER and SETTIMER
46 ;; Start the first game
46 (#.(intern "SET-TIMER" "TXT2WEB.API")
47 (#.(intern "RUN-GAME" "TXT2WEB.API")
47 *timer-interval)
48 (chain *object (keys *games) 0))
48 ;; Start the first game
49 (values)))
49 (#.(intern "RUN-GAME" "TXT2WEB.API")
50 (chain *object (keys *games) 0))
51 (values))
50
52
51 ;;; Some very common utilities (for both api and lib)
53 ;;; Some very common utilities (for both api and lib)
52
54
General Comments 0
You need to be logged in to leave comments. Login now