diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..9baecf8 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,3 @@ +FROM mcr.microsoft.com/devcontainers/base:ubuntu + +RUN apt-get update && apt-get install -y cc65 \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..b87605a --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,22 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/debian +{ + "name": "cc65 devcontainer", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "build": { + // Path is relative to the devcontainer.json file. + "dockerfile": "Dockerfile" + } + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/README.md b/README.md index 892e258..783e310 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,13 @@ then have at it. simple as `sudo apt-get install cc65`. 2. Run `make` from the project root to build the ROM. +#### VS Code Dev Linux Container (from any host OS) +1. Install/configure [Docker](https://www.docker.com/get-started/) +2. Install [VS Code](https://code.visualstudio.com/) +3. Open `Platformer Movement` repo folder in VS Code +4. Install the Dev Containers extension when prompted (If not already present). +5. Ctrl-P and select _Dev Containers: Rebuild and Reopen in Container_ + ### Code Style One of the biggest points of this project is to act as a reference so that folks can follow along with the code and learn. As such, keeping the code nice and