Running a game on mGBA
In this section we will use the mGBA emulator to run a Game Boy Advance game.
Determine the ROM location
- Go back to the terminal you already had open OUTSIDE of VS Code (Git Bash or Mac terminal). We will use this to determine where our ROM is on your computer. We are not interested in where it is in the Dev Container.
- Make sure you’re in the right directory by running
pwdpwd - This should end with
env-learning. Everything before it is the folders of whereenv-learningis on your computer. Make a note of where it is. This is how we’ll find the ROM.
Open the ROM
- Open mGBA on your computer. Depending on how you installed it, you will either be able to search for it using the windows key or cmd-space, and then typing
mgbaor by going to your downloads and running it from there. - Click File > Load ROM
- Find your ROM based off of where
pwdsaid it was. Open theenv-learning.gbaROM. - Run the game! The arrow keys correspond the to the d-pad and
zandxare the A and B buttons.
Now that the game is running, let’s try making a change, and saving our changes to git/GitHub.