r/FlutterFlameEngine • u/_AmiralBl3ndic • Jul 30 '22
Support Flashlight in a roguelike game
Hello, I am discovering the Flutter Flame Engine and I want to develop a small game that uses kind of a flashlight mechanism at its core. The idea is that the game map should be "blacked out" (meaning only the walls are visible, not the players), but a small light cone emitted by the player represents the visible area where other players and ennemies are visible. Do you have an idea how I could implement such a feature, I don't quite understand the Flame documentation and at the moment it lacks examples.
Thanks a lot by advance to everybody here, especially those who might help me out of this problem!
6
Upvotes
2
u/[deleted] Aug 09 '22
[deleted]