# A camera extension?

**URL:** https://forum.makecode.com/t/a-camera-extension/5950
**Category:** Game Design
**Created:** [February 4, 2021, 4:17pm UTC](https://forum.makecode.com/t/a-camera-extension/5950 "2021-02-04T16:17:32Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [February 4, 2021, 6:31pm UTC](https://forum.makecode.com/t/a-camera-extension/5950/6 "2021-02-04T18:31:16Z")

</div>

For anyone else that comes across this looking for ways to extend arcade with their own special features / controls / simulators, a lot can be done in the same way as this one using the simmessages – this is where the makecode project says to listen for the messages / how to handle them:

> <https://github.com/eanders-MS/arcade-webcam/blob/e9fb61f120fb1d251ed445f7e55cdeb10299a9c8/main.ts#L30>

and this is where the outer website sends the messages to the frame:

> <https://github.com/eanders-MS/arcade-webcam/blob/e9fb61f120fb1d251ed445f7e55cdeb10299a9c8/assets/js/custom.js#L105>

and here’s where all the stuff related to this is defined in common packages:

> <https://github.com/microsoft/pxt-common-packages/blob/master/libs/base/sim/controlmessage.ts#L3>

Again, worth noting this is simulator only, and only works when hosted from your own website – but it’s fairly easy to make your own site if you want to play around with this thanks to the github integration creating a github pages page like Eric’s automatically 🙂 ~

---

_[View the full topic](https://forum.makecode.com/t/a-camera-extension/5950)._
