Developing Games: Difference between revisions
Jump to navigation
Jump to search
(Created page with " === Prerequisites for Developing Games ===") |
No edit summary |
||
Line 1: | Line 1: | ||
=== Prerequisites for Developing Games === | === Prerequisites for Developing Games === | ||
=== Visual Studio Code === | |||
The [https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.vscode-arduino 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 [https://code.visualstudio.com/ 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: <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. | |||
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: | |||
<pre> | |||
{ | |||
"configuration": "core=arduboy-core,boot=cathy3k", | |||
"board": "arduboy-homemade:avr:arduboy-fx", | |||
"sketch": "my_game.ino", | |||
"output": "build/" | |||
} | |||
</pre> | |||
7. You can now build your project with the "Arduino: Verify" command. |
Revision as of 16:55, 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.