README.md
44 lines
| 1.6 KiB
| text/x-minidsrc
|
MarkdownLexer
r7 | (инструкции на Русском - внизу) | |||
Alexander Sukhoverkhov
|
r0 | # sugar-qsp | ||
Compiler for QSP games which creates monolithic HTML pages. | ||||
r1 | ||||
## Usage | ||||
There are three mastery levels | ||||
r5 | 1. Just build me the game:<br/> | |||
`sugar-qsp game.txt`<br/> | ||||
r1 | And it will create the game in game.html | |||
r5 | 2. I know what I'm doing:<br/> | |||
`sugar-qsp game.txt -o game.html --body body.html --js jquery.js my-js-library.js --css styles/*.css`<br/> | ||||
r1 | All options are self-explanatory. The result is a monolithic html specified | |||
with the `-o` option. Default `body.html` (used by the first mastery level) can | ||||
be found in `extas` directory. | ||||
r6 | 3. I'm a frontend developer!<br/> | |||
`sugar-qsp game.txt -c -o game.js`<br/> | ||||
r1 | It just builds the game script into a js you can put on your website. To run | |||
the game execute `SugarQSP.start()` | ||||
# sugar-qsp | ||||
Компилятор для игр на QSP создающий монолитные страницы на HTML. | ||||
## Инструкции | ||||
Есть три уровня мастерства. | ||||
r7 | 1. **Просто собери мне игру**:<br/> | |||
r6 | `sugar-qsp game.txt`<br/> | |||
r1 | Создаст игру в game.html | |||
r7 | 2. **Я знаю что делаю**:<br/> | |||
r6 | `sugar-qsp game.txt -o game.html --body body.html --js jquery.js my-js-library.js --css styles/*.css`<br/> | |||
r13 | Если вы знаете что делаете, то для вас смысл опций очевиден. `body.html` и `default.css` | |||
лежат в каталоге `extras`. | ||||
r1 | ||||
r7 | 3. **Я - фронтендер!**<br/> | |||
r6 | `sugar-qsp game.txt -c -o game.js`<br/> | |||
r1 | Просто соберёт игру в Javascript файл который вы можете разместить на своём | |||
r13 | сайте как вам угодно. | |||