Mock-up of the lighting used in RogueLight by Daniel Linssen ( Made with Gamemaker 1.4 and 2).

Hope you can learn something from this demo- cheers (: 

Rogue light exampleGamemaker lighting using surfaces and blendmodes

Other assets you may find useful:


Rated 5.0 out of 5 stars
(1 total ratings)
Made withGameMaker
Tagsfog, GameMaker, gamemaker2, lighting, Pixel Art, roguelight, Roguelike, sourcecode


Download NowName your own price

Click download now to get access to the following files:

ASSET_LIGHTING_Roguelight_GMS2 25 kB


Log in with to leave a comment.

how would i get this working with tilesets rather than directly interacting with objects? otherwise a nice little asset thanks!

Thanks Serrano, Im pretty sure you can manipulate the tilesets by setting tilemaps in a create event. And then draw those tilemaps on a separate surface & manipulating it like that! 

(1 edit) (+2)

If you are importing this in to GMS2, two things to remember are that draw_set_blendmode is now gpu_set_blendmode (which your import should take care of) and to drag and re-order the oLighting object so that it is at the bottom of your instances list (so that it is the last thing to be drawn).