What does sleep do in the pause menu?


What does it do? Doesn’t do anything noticeable on hardware either.

Huh, it should put the hardware to sleep (screen turns off) but you’re right, I don’t see it working on my hardware either. Looks like you found a bug!

1 Like

I’ve filed an issue for it here: https://github.com/microsoft/pxt-arcade/issues/2413

1 Like

How did you guys code this coding engine or something like that?

Good question – the repo richard linked (https://github.com/microsoft/pxt-arcade) is the portion that pulls things together for arcade.makecode.com; it has stuff that is specific to that site, like the tutorials, theming, links to the simulator, etc.

pxt-arcade has dependencies on other packages (basically the same as extensions - code that lives somewhere else that you use), including things like

Which end up working together to create the editor! Most of the stuff is written in TypeScript (similar to the javascript you’d find / write within the editor itself), though there is a variety of things within the repo - documentation, html (a language that helps describe the structure of a website), css / less (languages that describe how a website looks), etc. And it’s important to note that not everything came at once; just like if you’re building a game in arcade, you build larger things piece by piece over time.