HTML5 Game Development
   
  • HOME
  • News
  • Tutorials
  • Engines
  • Demos
  • Tools
  • Partners
  • Mobile HTML Game
  • Guess The Celebrity
  • About us

Flashlight or Spotlight Effects using Phaser 3

Flashlight and spotlight effects are created using two images, one on top of the other. With the help of alpha masks in Phaser 3, you can hide the top image to reveal the bottom image when a mouse passes over it.

Flashlight effects are used to reveal hidden or darkened objects in side-scrolling games. We often see flashlight effects as a wedge-shaped ray of light, used by a character of the game.

On the other hand, spotlight effects are often used on top-down games, sometimes on a board style playing field. These effects are depicted as a circular light object that creates a stark contrast with its surroundings.

Check out this article to learn more about alpha masks in Phaser 3.

Share List

You might also find this interesting:


  1. Liquid Distortion Effects with PixiJS and GSAP Liquid Distortion Effects are WebGL effects that use PixiJS, a popular WebGL renderer, and GSAP, a Javascript animation tool. They produce beautiful underwater/liquid-like effects when applied on any image. The effect...

  2. HTML5 Game Development Facebook, Twitter and G+ The official HTML5GameDevelopment.org Facebook page up at: http://www.facebook.com/Html5GameDevelopment The official HTML5GameDevelopment.org Twitter account is at: https://twitter.com/#!/gamedevhtml5 The Google Plus page is up at: https://plus.google.com/b/106608051085232600929/ All are updated automatically via the...

  3. Create a Bloody Dripping Effect with Phaser Using physics and easing functions, you can create a bloody dripping effect for your horror-themed games. A Phaser online tutorial gave tips on how to create this effect using the...

  4. NeutrinoParticles: A real-time particle effects editor NeutrinoParticles is a real time editor of particle effects, which means that it renders changes as you make them. It is made for abstract development process but it can be...

  5. Alice.js: A JavaScript library for hardware accelerated effects. Alice.js is a small Javascript library to that makes it easy to generate hardware-accelerated 3D effects on HTML DOM elements in Javascript such as bouncing, flipping. As these effects are...

hidden objects, lighting effect, Phaser
HTML5 Game Dev Tutorials, Misc

License HTML5 Games

Are you a company looking to license HTML5 games? We recommend MarketJS.com, a B2B platform for licensing games.

MarketJS has over 300 HTML5 games for licensing. They also provide additional services such as game reskin, custom development, and white label portals.

Html5 Game Development


Follow @GameDevHTML5



WHAT’S NEW

  • GPT3 Voting Board

  • Game Localization For Food Delivery App

  • HTML5 Games in Guest Room Tablets

  • What’s New in Phaser 3.50

  • Particle and Sprite Editors in Babylon.js 4.2



NEW DEMOS

  • Vertical Platformer Games Using GDevelop

  • HTML5 Games for HR Technology

  • Building Vertical Platformer Games using Kaboom

  • Vertical Endless Runner Prototype

  • Particle and Sprite Editors in Babylon.js 4.2


ENGINES

  • Modd.io – User-Friendly HTML5 Game Engine

    Here is another user-friendly HTML5 game engine for your next gaming project. Modd.io game editor uses a sandbox approach in building HTML5 games. No coding is required. Choose from several …Read more

  • Vertical Platformer Games Using GDevelop

    Last time, we introduced GDevelop as a viable option for no-code game engines. Now, let’s try building vertical platformer games using GDevelop. GDevelop comes with two behaviors to build platformer …Read more

  • Best Practices in Building HTML5 Games

    As the saying goes, “Quality is always the result of intelligent effort.” This timeless quote by John Ruskin summarizes most of the best practices in building HTML5 games by today’s …Read more

SEARCH OUR ARCHIVES

CONNECT

rss twitter

HTML5 Game Development is proudly run by 3P Solutions Inc

GOT NEWS?

Send new engines, demos, information and tips to hello@html5gamedevelopment.com

MONTHLY MEETUP

In boston? Join us for the Monthly HTML5 Game Development meetup.

BOOKS

We're in the process of writing a few books about game development. Coming soon!

Copyright HTML5gamedevelopment.com