Мини-игра в жанре endless runner на чистом HTML5 Canvas (без сборщиков и библиотек).
- Скачайте/клонируйте репозиторий.
- Откройте
index.htmlв браузере.
- Откройте терминал в папке проекта.
- Запустите:
python3 -m http.server 8000- Откройте в браузере:
http://localhost:8000
git init
git add .
git commit -m "feat: add SPACE Runner canvas game"
git branch -M main
git remote add origin https://github.com/<username>/<repo>.git
git push -u origin main- В репозитории GitHub откройте Settings → Pages.
- В блоке Build and deployment выберите Deploy from a branch.
- Укажите:
- Branch:
main - Folder:
/ (root)
- Branch:
- Сохраните настройки.
- После публикации сайт появится по адресу вида:
https://<username>.github.io/<repo>/
Для аккаунта GitHub Free, если использовать GitHub Pages для репозитория проекта, сам репозиторий должен быть публичным. Это значит, что ссылку сможет открыть любой, у кого она есть. index.html index.html New +34 -0
<!doctype html>
<title>SPACE Runner: Community Orbit</title>
💰 Бюджет: 0
👥 Комьюнити: 0
⚡ Энергия: 3
<canvas id="gameCanvas" aria-label="SPACE Runner canvas" role="img"></canvas>
<section class="bottom-bar">
<p id="message">Готов к орбитальному забегу?</p>
<p class="records">
Рекорды — 💰 <b id="bestScoreValue">0</b>, 👥 <b id="bestCommunityValue">0</b>
</p>
</section>
<div id="overlay" class="overlay"></div>
</main>
<script src="main.js"></script>