# Run a game at Startup

**URL:** <https://forum.makecode.com/t/run-a-game-at-startup/677>\
**Category:** Arcade\
**Created:** [October 25, 2019, 8:28pm UTC](https://forum.makecode.com/t/run-a-game-at-startup/677 "2019-10-25T20:28:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![senorlloyd](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@senorlloyd](https://forum.makecode.com/u/senorlloyd)\
**Post date:** [October 25, 2019, 8:28pm UTC](https://forum.makecode.com/t/run-a-game-at-startup/677/1 "2019-10-25T20:28:33Z")

</div>

Is there an easy way to tweak somewhere on Arcade Pi to have it run a game at startup? I’m working on using the editor to make an intro video / attract mode and want it to auto run. Would be even cooler if there were a timeout on the menu screen where if it sat idle for longer than a few minutes, it would auto load that file to play the attract mode.

I’m having kids build some bartop sized arcade cabinets for a few places in the school and trying to get them hyped up more about coding their own games.

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [October 25, 2019, 8:34pm UTC](https://forum.makecode.com/t/run-a-game-at-startup/677/2 "2019-10-25T20:34:58Z")

</div>

Yep! The menu on the pi is actually a game itself (the source code is here: [https://github.com/microsoft/pxt-arcade-cabinet-menu](https://github.com/microsoft/pxt-arcade-cabinet-menu)). If you name the game `.menu`, it should overwrite the menu game.

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [October 25, 2019, 9:32pm UTC](https://forum.makecode.com/t/run-a-game-at-startup/677/3 "2019-10-25T21:32:50Z")

</div>

We should add some logic to the menu to start a game randomly after going idle + game should know it is is “demo” mode too

---

<div class="post-metadata">

**Author:** ![senorlloyd](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@senorlloyd](https://forum.makecode.com/u/senorlloyd)\
**Post date:** [October 28, 2019, 5:08pm UTC](https://forum.makecode.com/t/run-a-game-at-startup/677/4 "2019-10-28T17:08:37Z")

</div>

Thanks. I do want to use the menu still. I’m going to run this like a kiosk where kids can add a game but also play other games that people have added. For the time being, I think I’ll just manually add a “game” that is the little intro video and we can click to run it. I like Peli’s idea of the demo mode.
