Cars-n / blink

P5.js horror game that utilizes eye blinking recognition to create an immersive and suspenseful environment
https://cars-n.github.io/blink/
5 stars 0 forks source link

Flashlight stops when out of inventory #92

Closed CorneliusPavlic closed 5 months ago

CorneliusPavlic commented 6 months ago

Beam should shut off and darkness should follow player if the flashlight is not in the player inventory

Cars-n commented 6 months ago

Done. The player now has very low visibility when they do not have a flashlight. Fixed issue with flashlight producing light in the center of the screen when not in player's inventory. Also made a few minor changes regarding layer order and flashlight and cleaned up the code for a directional flashlight. Changes are in the DropFlashlight branch, merge request is linked in this card.

CorneliusPavlic commented 5 months ago

Done Reviewed and Approved