# How Move Player? Snake Game

**URL:** <https://forum.makecode.com/t/how-move-player-snake-game/2319>\
**Category:** Arcade\
**Created:** [June 5, 2020, 11:40am UTC](https://forum.makecode.com/t/how-move-player-snake-game/2319 "2020-06-05T11:40:58Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)\
**Post date:** [October 3, 2020, 11:58am UTC](https://forum.makecode.com/t/how-move-player-snake-game/2319/6 "2020-10-03T11:58:24Z")

</div>

@richard

Which why I want to be able to define an enum in block code. Otherwise you start defining too many variables. You also want to group variables together, such as my reply in

> [@Need Some Ideas Plz](https://forum.makecode.com/t/need-some-ideas-plz/3533/39):
>
> @UnderwaterAstronaut I like how you change the animation of your sprite depending on the direction it is facing in: [https://arcade.makecode.com/96109-55229-74632-47006](https://arcade.makecode.com/96109-55229-74632-47006)@richard I know you can define and code enums in TypeScript, but is there any block code to define an enum? For instance, in block code define an variable having the name ‘DirectionFacing’ with the values Left, Right, Up, Down This produces the script enum DirectionFacing { Left, Right, Up, Down } Assume the variable d…

I now we can make extensions, but an enum would be really useful in the core code.

I am new to Arcade, but I would really love to see some improvements, and even work on implementing new block code. I had some good experience in TouchDevelop, and would like to see more of the functions made their in Arcade.

---

_[View the full topic](https://forum.makecode.com/t/how-move-player-snake-game/2319)._
