# Playing a game on cell phone

**URL:** <https://forum.code.org/t/playing-a-game-on-cell-phone/13793>\
**Category:** Unit and Lesson Discussion\
**Tags:** csd-unit-3, csd-unit-3-lesson-22\
**Created:** [January 19, 2018, 6:58pm UTC](https://forum.code.org/t/playing-a-game-on-cell-phone/13793 "2018-01-19T18:58:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjreagin](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@sjreagin](https://forum.code.org/u/sjreagin)\
**Post date:** [January 19, 2018, 6:58pm UTC](https://forum.code.org/t/playing-a-game-on-cell-phone/13793/1 "2018-01-19T18:58:42Z")

</div>

So I am encouraging my students to share their games on their phones so they can see something they created on their phones. But, all of these games pretty much require arrow controls. How would they do this on their phones?

---

<div class="post-metadata">

**Author:** ![bradleywellsashley](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bradleywellsashley/32/522_2.png) [@bradleywellsashley](https://forum.code.org/u/bradleywellsashley)\
**Post date:** [January 21, 2018, 9:35pm UTC](https://forum.code.org/t/playing-a-game-on-cell-phone/13793/2 "2018-01-21T21:35:40Z")

</div>

Suereagin,

What an awesome opportunity to engage students in the User Experience! I love it when these things pop up naturally. If possible I’d have them brainstorm games that they like and how they conquer that issue. You could suggest (and an easy fix as well) that they place buttons on the screen that act like arrow keys, but what does that do to screen space? Could they figure out something else? What are they willing to give up for arrow keys, or could they reconfigure their game?

Interested to see how the conversation goes!  
Brad

---

<div class="post-metadata">

**Author:** ![josh](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/josh/32/868_2.png) [@josh](https://forum.code.org/u/josh)\
**Post date:** [January 22, 2018, 3:09am UTC](https://forum.code.org/t/playing-a-game-on-cell-phone/13793/3 "2018-01-22T03:09:30Z")

</div>

There’s a lot we would like to do to make Game Lab projects work better on phones, but for now the best thing you can do is to constrain your inputs to the arrow keys, which allows your game to be controlled with the little orange joystick - like so  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex016/uploads/codeorgforum/original/2X/b/b640995036f2dd854819709219f6f331f56aeaf9.gif)

---

<div class="post-metadata">

**Author:** ![david.vance](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@david.vance](https://forum.code.org/u/david.vance)\
**Post date:** [January 26, 2018, 2:15pm UTC](https://forum.code.org/t/playing-a-game-on-cell-phone/13793/4 "2018-01-26T14:15:28Z")

</div>

I had no idea that was a joystick! I thought it was a stop button that wasn’t working properly. This is very helpful.

---

<div class="post-metadata">

**Author:** ![vchiaramonte](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/vchiaramonte/32/2163_2.png) [@vchiaramonte](https://forum.code.org/u/vchiaramonte)\
**Post date:** [January 26, 2018, 7:08pm UTC](https://forum.code.org/t/playing-a-game-on-cell-phone/13793/5 "2018-01-26T19:08:41Z")

</div>

Same, good to know. Thanks!

---

<div class="post-metadata">

**Author:** ![green](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@green](https://forum.code.org/u/green)\
**Post date:** [January 27, 2018, 8:48pm UTC](https://forum.code.org/t/playing-a-game-on-cell-phone/13793/6 "2018-01-27T20:48:18Z")

</div>

Is it possible to change the picture of the joystick control because I thought it was a stop button as well.

---

<div class="post-metadata">

**Author:** ![farneyl](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@farneyl](https://forum.code.org/u/farneyl)\
**Post date:** [January 28, 2018, 5:46pm UTC](https://forum.code.org/t/playing-a-game-on-cell-phone/13793/7 "2018-01-28T17:46:50Z")

</div>

And all this time I thought that was a “stop” button that didn’t work!!!

---

<div class="post-metadata">

**Author:** ![nread](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@nread](https://forum.code.org/u/nread)\
**Post date:** [February 2, 2018, 7:06pm UTC](https://forum.code.org/t/playing-a-game-on-cell-phone/13793/8 "2018-02-02T19:06:24Z")

</div>

Can you share the code for this?
