-
Notifications
You must be signed in to change notification settings - Fork 0
Getting started
Marcin edited this page Oct 11, 2020
·
2 revisions
- any Linux distro capable of running rust,
- or Windows 10 Pro version capable of running WSL2/WSL
In order to set up your dev environment, one can do following:
- Install rust if not done already
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Clone snake2d repository
- In cloned repo, run to check if project compiles:
cargo build
- Configure your X server, if your distro does not have it already. Skip this step if on WSL/WSL2.
- Run game to check if X server works:
cargo run
- Download you IDE of preference. You can use IDEA Community edition (https://www.jetbrains.com/idea/download/other.html) and install official JetBrains Rust plugin.
- Open the project, set up default Rust toolchain, build and run project.
- Install WSL2/WSL: https://docs.microsoft.com/en-us/windows/wsl/install-win10
- Set up an X Server for Windows: https://techcommunity.microsoft.com/t5/windows-dev-appconsult/running-wsl-gui-apps-on-windows-10/ba-p/1493242
- Proceed as per Linux section
- Optionally: install Windows Terminal, change default shell to WSL/WSL2, and set default color scheme.