Developing Games

From Arduboy Wiki
Revision as of 16:55, 21 June 2024 by Brow1067 (talk | contribs)
Jump to navigation Jump to search

Prerequisites for Developing Games

Visual Studio Code

The Arduino plugin for Visual Studio Code is an easy way to develop and build Arduboy games with a full-featured IDE.

1. Download and install Visual Studio Code.

2. Install the Arduino extension developed by Microsoft.

3. Configure the extension to use the bundled version of Arduino CLI.

4. Add the following URL to the Additional Urls setting for the Arduino extension:

https://raw.githubusercontent.com/MrBlinky/Arduboy-homemade-package/master/package_arduboy_homemade_index.json

5. Open the Arduino Board Manager and click "Refresh Package Indexes". Install the Arduboy homemade package by Mr.Blinky.

6. Add a file ".vscode/arduino.json" to your project to define how to build your project. For example, to build a game for the Arduboy FX, you might have:

{
    "configuration": "core=arduboy-core,boot=cathy3k",
    "board": "arduboy-homemade:avr:arduboy-fx",
    "sketch": "my_game.ino",
    "output": "build/"
}

7. You can now build your project with the "Arduino: Verify" command.