This commit is contained in:
Alexander Popov 2023-04-30 17:39:03 +03:00
parent 51dbf116c1
commit c52b91c007
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
12 changed files with 2097 additions and 16 deletions

View File

@ -13,7 +13,7 @@ fi
# editorconfig # editorconfig
echo "Checking by EditorConfig..." echo "Checking by EditorConfig..."
ec . &> /dev/null ec -exclude 'node_modules' . &> /dev/null
if [[ "$?" == 0 ]]; then if [[ "$?" == 0 ]]; then
echo "✅ EditorConfig" echo "✅ EditorConfig"

View File

@ -1,10 +1,10 @@
# ⚠️ STATUS: DEVELOPMENT # ⚠️ IN DEVELOPMENT
![engine_icon](/test/icons/apple-touch-icon.png) ![engine_icon](test/icons/apple-touch-icon.png)
# Documentation # Documentation
- 🇷🇺 [Russian](docs/ru.md) - 🇷🇺 [Russian](docs/ru/)
# Build `ENGINE` # Build `ENGINE`

0
docs/.nojekyll Normal file
View File

5
docs/README.md Normal file
View File

@ -0,0 +1,5 @@
# ⚠️ IN DEVELOPMENT
## 🧻 Documentation
- [API](us/api.md)

2
docs/_navbar.md Normal file
View File

@ -0,0 +1,2 @@
- 🇷🇺 [Russian](/ru/)
- 🇺🇸 [English](/)

1
docs/assets/icon.png Symbolic link
View File

@ -0,0 +1 @@
../../test/icons/apple-touch-icon.png

47
docs/index.html Normal file
View File

@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ujs</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: 'ujs',
repo: 'https://git.a2s.su/emilecok/ujs',
logo: '/assets/icon.png',
nativeEmoji: true,
loadNavbar: true,
nameLink: {
'/ru/': '#/ru/',
'/': '#/',
},
alias: {
'/ru/(.*)': '/ru/$1',
},
search: {
noData: {
'/ru/': 'Нет результатов!',
'/': 'No results!',
},
paths: 'auto',
placeholder: {
'/ru/': 'Поиск',
'/': 'Search',
},
pathNamespaces: ['/ru'],
},
}
</script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.min.js"></script>
</body>
</html>

5
docs/ru/README.md Normal file
View File

@ -0,0 +1,5 @@
# ⚠️ В РАЗРАБОТКЕ
## 🧻 Документация
- [API](/ru/api.md)

View File

@ -1,4 +1,4 @@
# App # 🔵 App
Основной класс движка. Основной класс движка.
@ -20,10 +20,10 @@
} }
``` ```
- backgroundColor — фон холста. - `backgroundColor` — фон холста.
По умолчанию `#ffcc68`. По умолчанию `#ffcc68`.
- welcome — `bool` тип. - `welcome``bool` тип.
Отображает информацию о движке в **Console**. Отображает информацию о движке в **Console**.
По умолчанию `true`. По умолчанию `true`.
@ -43,7 +43,7 @@ window.addEventListener('DOMContentLoaded', () => {
}); });
``` ```
# Scene # 🔵 Scene
Класс сцены. Класс сцены.
@ -61,7 +61,7 @@ window.addEventListener('DOMContentLoaded', () => {
... ...
``` ```
# SceneLayer # 🔵 SceneLayer
Класс слоя сцены. Класс слоя сцены.
@ -79,7 +79,7 @@ window.addEventListener('DOMContentLoaded', () => {
... ...
``` ```
# Object # 🔵 Object
Класс объекта. Класс объекта.
@ -93,7 +93,7 @@ window.addEventListener('DOMContentLoaded', () => {
... ...
``` ```
# Rect # 🔵 Rect
... ...
@ -107,7 +107,7 @@ window.addEventListener('DOMContentLoaded', () => {
... ...
``` ```
# StrokeRect # 🔵 StrokeRect
... ...
@ -121,7 +121,7 @@ window.addEventListener('DOMContentLoaded', () => {
... ...
``` ```
# Sprite # 🔵 Sprite
... ...
@ -135,7 +135,7 @@ window.addEventListener('DOMContentLoaded', () => {
... ...
``` ```
# TiledSprite # 🔵 TiledSprite
... ...

1
docs/us/api.md Normal file
View File

@ -0,0 +1 @@
`contribute`

2018
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,9 +5,11 @@
"build": "rm -rf ./dist/ && rollup src/js/main.js --file dist/engine-$(npm pkg get version | tr -d '\"').js --format es", "build": "rm -rf ./dist/ && rollup src/js/main.js --file dist/engine-$(npm pkg get version | tr -d '\"').js --format es",
"prettier-check": "prettier --check .", "prettier-check": "prettier --check .",
"prettier-write": "prettier --write .", "prettier-write": "prettier --write .",
"editorconfig-check": "ec ." "editorconfig-check": "ec -exclude 'node_modules' .",
"docs-serve": "docsify serve docs"
}, },
"devDependencies": { "devDependencies": {
"prettier": "2.8.7" "prettier": "2.8.7",
"docsify-cli": "^4.4.4"
} }
} }