MakeCode Games!

A fan-made community library of MakeCode Arcade games. Visit MakeCode Arcade to make a game!

← Back to extensions

Lantern

Create dark levels with dynamic lighting effects like circular lanterns, glowing torches, and directional flashlights.

stop lantern effect

Problem it solves

Your player stepped out of a dark cave into the sunny outdoors and you need to remove the darkness effect completely.

What this block does

Turns off the single-lantern lighting effect and restores normal full-screen visibility.

The block

true block

Example

lantern.stopLanternEffect()

Add the extension

Add github:felixtsu/pxt-lantern to your project, or open: Import pxt-lantern.