# Hope this ext can bring some light(s)

**URL:** https://forum.makecode.com/t/hope-this-ext-can-bring-some-light-s/3229
**Category:** Show & Tell
**Tags:** graphics-and-math, extension
**Created:** [August 25, 2020, 5:36am UTC](https://forum.makecode.com/t/hope-this-ext-can-bring-some-light-s/3229 "2020-08-25T05:36:41Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![felixtsu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/felixtsu/32/12024_2.png) [@felixtsu](https://forum.makecode.com/u/felixtsu)
#### Post date: [August 25, 2020, 5:36am UTC](https://forum.makecode.com/t/hope-this-ext-can-bring-some-light-s/3229/1 "2020-08-25T05:36:41Z")

</div>

![Screen-Recording-2020-08-25-at-1](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/502b1b308d50fe2e550d62d8acad572a9c49dbed.gif)

![Screen-Recording-2020-08-25-at-1 (1)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/770e01ae26fc4e3994c49e9a1b1ce2a3dc43895b.gif)

With a little bit of modification to @richard’s [pxt-lantern](https://github.com/riknoll/pxt-lantern), this extension brings multiple light source.

> **[felixtsu/pxt-lantern](https://github.com/felixtsu/pxt-lantern)**
>
> A lantern effect for MakeCode Arcade. Contribute to felixtsu/pxt-lantern development by creating an account on GitHub.

A demo project is here

> **[MultiLightSource.Demo](https://arcade.makecode.com/25139-51900-79237-05503)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

The breathing effect in the original ext is not supported yet.

---

<div class="post-metadata">

### Author: ![LcAtonal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lcatonal/32/16800_2.png) [@LcAtonal](https://forum.makecode.com/u/LcAtonal)
#### Post date: [August 25, 2020, 6:15am UTC](https://forum.makecode.com/t/hope-this-ext-can-bring-some-light-s/3229/2 "2020-08-25T06:15:35Z")

</div>

This is cool

---

<div class="post-metadata">

### Author: ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)
#### Post date: [August 25, 2020, 11:00am UTC](https://forum.makecode.com/t/hope-this-ext-can-bring-some-light-s/3229/3 "2020-08-25T11:00:33Z")

</div>

really nice use of the lantern

---

<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: [August 25, 2020, 4:15pm UTC](https://forum.makecode.com/t/hope-this-ext-can-bring-some-light-s/3229/4 "2020-08-25T16:15:40Z")

</div>

awesome!!!

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [September 3, 2020, 8:54pm UTC](https://forum.makecode.com/t/hope-this-ext-can-bring-some-light-s/3229/5 "2020-09-03T20:54:42Z")

</div>

I’m loving this extension!

The only problem is that when the lights are off, the FPS jumps from 60 to 1 on hardware ☹

Any reason why?

EDIT: When I turn the lights off in my game (which I can do at press of button) the FPS jumps to 1, and when I turn it back on, it goes back to 60

---

<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: [September 3, 2020, 8:55pm UTC](https://forum.makecode.com/t/hope-this-ext-can-bring-some-light-s/3229/6 "2020-09-03T20:55:38Z")

</div>

It requires a very fast CPU! Your computer can handle it but it’s a little tougher on hardware.

---

<div class="post-metadata">

### Author: ![Diamondgaming82](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@Diamondgaming82](https://forum.makecode.com/u/Diamondgaming82)
#### Post date: [September 26, 2024, 4:28pm UTC](https://forum.makecode.com/t/hope-this-ext-can-bring-some-light-s/3229/8 "2024-09-26T16:28:41Z")

</div>

larger lights seem to be taking up higher amounts of CPU, with just 2 at a band width of 40 a drop to 7 fps
