Developing Games: Difference between revisions

From Arduboy Wiki
Jump to navigation Jump to search
No edit summary
Line 9: Line 9:
1. Download and install [https://code.visualstudio.com/ Visual Studio Code].
1. Download and install [https://code.visualstudio.com/ Visual Studio Code].


2. Install the Arduino extension developed by Microsoft.
2. Install the "Arduino" extension developed by Microsoft.


3. Configure the extension to use the bundled version of Arduino CLI.
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: <pre>https://raw.githubusercontent.com/MrBlinky/Arduboy-homemade-package/master/package_arduboy_homemade_index.json</pre>
4. Add the following URL to the "Additional Urls" setting for the Arduino extension: <pre>https://raw.githubusercontent.com/MrBlinky/Arduboy-homemade-package/master/package_arduboy_homemade_index.json</pre>


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

Revision as of 16:56, 21 June 2024

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.