# Arduboy Games on the GameShell

**URL:** https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094
**Category:** Developers
**Created:** [July 17, 2019, 11:15pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094 "2019-07-17T23:15:13Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Lix](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/lix/32/3394_2.png) [@Lix](https://forum.clockworkpi.com/u/Lix)
#### Post date: [July 17, 2019, 11:15pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/1 "2019-07-17T23:15:13Z")

</div>

I managed to compile this Arduboy Simulator without any issue on the GameShell but I can’t find any way to change controls, Resolution etc.

Could Someone interested try this? You can find .hex gamefiles here:

> **[Games](https://community.arduboy.com/c/games?order=activity)**
>
> Browse, share and play games made by the community.

  

> **[dxxb/sim-arduboy](https://github.com/dxxb/sim-arduboy)**
>
> Arduboy board implementation using simavr. Contribute to dxxb/sim-arduboy development by creating an account on GitHub.

sudo apt-get install build-essential libelf-dev libsdl2-dev freeglut3-dev  
git clone --recursive [https://github.com/dxxb/sim-arduboy.git](https://github.com/dxxb/sim-arduboy.git)  
cd sim-arduboy  
make

---

<div class="post-metadata">

### Author: ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)
#### Post date: [July 18, 2019, 2:45am UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/2 "2019-07-18T02:45:09Z")

</div>

> <https://github.com/dxxb/sim-arduboy/blob/9e48de068270d58aaa5bb692ffab7290bb7733f1/src/arduboy_sdl.c#L35>

> <https://github.com/dxxb/sim-arduboy/blob/9e48de068270d58aaa5bb692ffab7290bb7733f1/src/arduboy_sdl.c#L124>

---

<div class="post-metadata">

### Author: ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)
#### Post date: [July 18, 2019, 2:46am UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/3 "2019-07-18T02:46:19Z")

</div>

SDLK\_z =\> SDLK\_u  
SDLK\_x =\> SDLK\_i

SDLK\_q =\> SDLK\_ESCAPE

but not tested yet

---

<div class="post-metadata">

### Author: ![Lix](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/lix/32/3394_2.png) [@Lix](https://forum.clockworkpi.com/u/Lix)
#### Post date: [July 18, 2019, 1:01pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/4 "2019-07-18T13:01:57Z")

</div>

Thanks, the key binding works but it have to be changed before compiling.  
So now controls works but gameplay is weird. The game freeze every 10 seconds. I tried without lima activated but its worst.

Any Idea?

---

<div class="post-metadata">

### Author: ![Godzil](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/godzil/32/60_2.png) [@Godzil](https://forum.clockworkpi.com/u/Godzil)
#### Post date: [July 18, 2019, 4:39pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/5 "2019-07-18T16:39:00Z")

</div>

Well as it is made for full size computer, it may not be superwell optimised for small system like the Gameshell. Hard to tell.

You should try it on another SBC like a Raspberry Pi to see if it behave the same.

---

<div class="post-metadata">

### Author: ![Godzil](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/godzil/32/60_2.png) [@Godzil](https://forum.clockworkpi.com/u/Godzil)
#### Post date: [July 18, 2019, 4:58pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/6 "2019-07-18T16:58:58Z")

</div>

I would try to disable that function:

> <https://github.com/arduboy-emulator/sim-arduboy/blob/386bcd475ce9f1e09bdc1d87da6e60aca9040a59/arduboy_avr.c#L83>

Just adding a simple `return;` after the `struct timespec tp;` to see.

If it never happen, this function is buggy, he may never encounter it on a fast system, but could creep in case of a slow or overloaded system.

This is not a fix for the issue as it will induce some other after, but a quick and easy test to see if it is this function that cause the issue you run into.

---

<div class="post-metadata">

### Author: ![Lix](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/lix/32/3394_2.png) [@Lix](https://forum.clockworkpi.com/u/Lix)
#### Post date: [July 18, 2019, 6:33pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/7 "2019-07-18T18:33:16Z")

</div>

Wonderfull! It works 🙂  
Thanks Godzil and Guu!

I just hope they will emulate the sound soon.

---

<div class="post-metadata">

### Author: ![ITCactus](https://avatars.discourse-cdn.com/v4/letter/i/b2d939/32.png) [@ITCactus](https://forum.clockworkpi.com/u/ITCactus)
#### Post date: [July 19, 2019, 6:22pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/8 "2019-07-19T18:22:33Z")

</div>

- combined fixes for key mapping and slow work,
- fixed display resolution,
- added an instruction for CPI (with required files to launch it like other “preinstalled” emulators on CPI).

so now we finally can try to play ArduBoy games in easy way on GameShell!

> [@ArduBoy emulator](https://forum.clockworkpi.com/t/arduboy-emulator/4109):
>
> thanks to the @Lix’s topic [“Arduboy Games on the GameShell”](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094), i have created a fork and added some tweaks for GameSH\>, and also instruction on how to install emulator for easy use. so, just follow [“How to install” section in README](https://github.com/ITCactus/sim-arduboy/blob/master/README.md#how-to-install) on the repo, and have fun. NOTE: not every game will work on emulator.

---

<div class="post-metadata">

### Author: ![Lix](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/lix/32/3394_2.png) [@Lix](https://forum.clockworkpi.com/u/Lix)
#### Post date: [July 20, 2019, 4:45pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/9 "2019-07-20T16:45:26Z")

</div>

Ho Yeah! Thanks M8 🙂  
So I tried it, had to change the launcher a bit. Most games works but there are still many that do not works (freeze). I love the fact that the width of the screen is used entirely.

I have found an emulator for the GameBuino also. Is it possible?

> **[aoneill01/gamebuino-emulator](https://github.com/aoneill01/gamebuino-emulator)**
>
> Contribute to aoneill01/gamebuino-emulator development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![Tariq](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/tariq/32/2763_2.png) [@Tariq](https://forum.clockworkpi.com/u/Tariq)
#### Post date: [July 20, 2019, 10:35pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/10 "2019-07-20T22:35:51Z")

</div>

Hey, how do you transfer hex flies to the Arduboy emulator on the GameShell?

---

<div class="post-metadata">

### Author: ![Lix](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/lix/32/3394_2.png) [@Lix](https://forum.clockworkpi.com/u/Lix)
#### Post date: [July 20, 2019, 10:47pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/11 "2019-07-20T22:47:28Z")

</div>

The same way you do any games on your GameShell. Create a folder in /home/cpi/games called ArduBoy and put all your Hex in it. Then make sure your launcher point to it.

You do not flash them like a real Arduboy of course 🙂

---

<div class="post-metadata">

### Author: ![Tariq](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/tariq/32/2763_2.png) [@Tariq](https://forum.clockworkpi.com/u/Tariq)
#### Post date: [July 20, 2019, 11:15pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/12 "2019-07-20T23:15:47Z")

</div>

I’ve tried that but it wouldn’t show up on the GameShell. I’ll send pictures of it.

---

<div class="post-metadata">

### Author: ![Tariq](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/tariq/32/2763_2.png) [@Tariq](https://forum.clockworkpi.com/u/Tariq)
#### Post date: [July 20, 2019, 11:19pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/13 "2019-07-20T23:19:00Z")

</div>

![15636646475174435143250068789692](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/e/e16ae9130f791171842314394ddb61ef836c8fcc.jpeg)

---

<div class="post-metadata">

### Author: ![Tariq](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/tariq/32/2763_2.png) [@Tariq](https://forum.clockworkpi.com/u/Tariq)
#### Post date: [July 20, 2019, 11:20pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/14 "2019-07-20T23:20:04Z")

</div>

![15636647559532496106629525561431](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/7/794b856ec0e086bf3a4c10bd64a578ad26f4f3af.jpeg)

---

<div class="post-metadata">

### Author: ![ITCactus](https://avatars.discourse-cdn.com/v4/letter/i/b2d939/32.png) [@ITCactus](https://forum.clockworkpi.com/u/ITCactus)
#### Post date: [July 20, 2019, 11:27pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/15 "2019-07-20T23:27:07Z")

</div>

@Tariq, it must be “hex”-files (on pictrure you attached it is “.arduboy” file),  
and the folder must be named “ArduBoy” (case sensitive)  
just follow [“How to install” section in README](https://github.com/ITCactus/sim-arduboy/blob/master/README.md)

tip: after copying hex-files, restart Launcher (“Reload UI”)

---

<div class="post-metadata">

### Author: ![ITCactus](https://avatars.discourse-cdn.com/v4/letter/i/b2d939/32.png) [@ITCactus](https://forum.clockworkpi.com/u/ITCactus)
#### Post date: [July 20, 2019, 11:35pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/16 "2019-07-20T23:35:06Z")

</div>

it require “Node.js”  
never tried on GameShell,  
but here some reply on this

> [@Can I build games for GS using Microsoft's new Makecode(Arcade)](https://forum.clockworkpi.com/t/can-i-build-games-for-gs-using-microsofts-new-makecode-arcade/3588/3):
>
> hi there - Node.js requires some storage space to run comfortably - they specify 16GB or more, which is more than the stock SD card that comes with CPI. For compatibility I assume that most of the stuff that run on Raspberry / Debian can be compiled in CPI and might even run if you are careful with its dependencies - [check out this link](https://dev.to/bogdaaamn/run-your-nodejs-application-on-a-headless-raspberry-pi-4jnn) and [this other link](https://thisdavej.com/beginners-guide-to-installing-node-js-on-a-raspberry-pi/) let us know if you make it work

---

<div class="post-metadata">

### Author: ![Tariq](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/tariq/32/2763_2.png) [@Tariq](https://forum.clockworkpi.com/u/Tariq)
#### Post date: [July 20, 2019, 11:48pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/17 "2019-07-20T23:48:41Z")

</div>

Thanks. I got the hex files, but they’re not starting on the emulator is there anything i did wrong?

---

<div class="post-metadata">

### Author: ![ITCactus](https://avatars.discourse-cdn.com/v4/letter/i/b2d939/32.png) [@ITCactus](https://forum.clockworkpi.com/u/ITCactus)
#### Post date: [July 20, 2019, 11:58pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/18 "2019-07-20T23:58:35Z")

</div>

it’s hard to guess…  
if you follow _ **exactly** _ every step in the [“How to install”](https://github.com/ITCactus/sim-arduboy/blob/master/README.md#how-to-install) instruction, then it should work… i verified every step when wrote it…  
but, you could also try to [rebuild “ArduBoy” by yourself](https://github.com/ITCactus/sim-arduboy/blob/master/README.md#to-rebuild-arduboy-by-yourself). maybe it will help…  
also, it worth to mention, that NOT every game(hex-file) will work, i tried the “ardynia.hex”, but it never worked on that emulator.

---

<div class="post-metadata">

### Author: ![Lix](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/lix/32/3394_2.png) [@Lix](https://forum.clockworkpi.com/u/Lix)
#### Post date: [July 21, 2019, 12:41pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/19 "2019-07-21T12:41:44Z")

</div>

Tariq, try a game I know is working:  
[https://www.dropbox.com/s/gf6yykx03c3nrgv/FirePanic.hex?dl=1](https://www.dropbox.com/s/gf6yykx03c3nrgv/FirePanic.hex?dl=1)

---

<div class="post-metadata">

### Author: ![Tariq](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/tariq/32/2763_2.png) [@Tariq](https://forum.clockworkpi.com/u/Tariq)
#### Post date: [July 21, 2019, 12:45pm UTC](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/20 "2019-07-21T12:45:52Z")

</div>

The emulator takes me back to the home screen regardless of what game i try.

[Next page](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094.md?page=2)
