Skip to content

hulvdan/isaac

Repository files navigation

The Game

Development Requirements

  • Install Visual Studio 17 2022
    • with "Desktop development with C++"
    • with "Game development with C++"
    • with "C++ CMake tools for Windows"
  • Install pyenv Windows:
    # In ADMIN Powershell
    Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"
  • Windows. Uninstall python
  • Windows. If running python in terminal opens Windows Store, then do what people here do: https://stackoverflow.com/questions/58754860/cmd-opens-windows-store-when-i-type-python
  • After installing pyenv run in default terminal:
    pyenv install 3.11.3
    pyenv global 3.11.3
  • TODO: MB migrate to ux instead of poetry + pyenv?
  • Install ffmpeg + llvm:
    choco install ffmpeg
    choco install llvm
  • Install emscripten:
    git clone https://github.com/emscripten-core/emsdk.git
    cd emsdk
    git pull
    ./emsdk install latest

Contributing to game-template

pip install poetry pre-commit
pre-commit install
pre-commit install --install-hooks
poetry install

Zheka: Contributing to a specific game

Open cli/win_start.bat

Optionally create a desktop shortcut to it (RMB -> Send to -> Desktop (create shortcut))

Execute the following in terminal

pip install poetry pre-commit
pre-commit install
pre-commit install --install-hooks
poetry install
cd vendor
cd bgfx
make
msbuild .build/proects/vs2022/bgfx.sln /t:Build /p:Configuration=Debug
msbuild .build/proects/vs2022/bgfx.sln /t:Build /p:Configuration=Release
make wasm
cd ..
cd ..

Press F5 in cursor to build the game (there is also a configuration for building + launching tests)

Bootstrap a new game

# * Create a repo in GitHub
# * Add ruleset to protect default branch in GitHub (disable deletions + disable force pushes)
# * Replace here `NEWGAME` with github-name of the repo
mkdir NEWGAME
cd NEWGAME
git init
touch a.txt
git add a.txt
git commit -m "f"
git remote add template https://github.com/Hulvdan/game-template.git
git fetch template
git rebase template/template
poetry install
pre-commit install
pre-commit install --install-hooks
go install github.com/google/yamlfmt/cmd/yamlfmt@latest
git remote add "origin" https://github.com/Hulvdan/NEWGAME.git
# FOR HULVDAN: REOPEN REPO IN NVIM SO THAT CMAKE WORKS
cd vendor
cd bgfx
make
msbuild .build/proects/vs2022/bgfx.sln /t:Build /p:Configuration=Debug
msbuild .build/proects/vs2022/bgfx.sln /t:Build /p:Configuration=Release
make wasm
cd ..
cd ..

# Set alias in Github Desktop

About

learnt to draw + was making it as my first yandex game

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors