Hey everyone. I have a game concept I'd like to try to make but I'm not sure exactly where to start. I'm just looking for general pointers and can figure it out myself from there (not asking for anyone to write my code for me), I'm just a bit lost on what the approach should actually be.
Basically, I want to draw an image of a room to the screen. And then cover that image with a black box so it's hidden in the dark. And then allow a player to move a small "flashlight" circle through the dark room, represented by a circle of light. I'd like to have the base image show through the "hole" the flashlight creates in the black box. But I'm not sure where to start with "subtracting" from an image I want to draw like that black box. Am I going about it wrong? Is there a better approach to doing this?
For bonus points, I'd like to be able to resize the circle on the fly. And it would be cool to get a dithering effect around the edges of the circle so that it isn't such a hard split from dark to light (maybe this can be done using a preset sprite image for the circle that has the dithered edges already baked into the sprite)? But I can't even work out where to start with drawing a subtraction from that black box so that stuff is getting a little ahead of myself.
Many thanks to anyone who can generally point me in the right direction. If it helps, I've been using Lua on a Windows machine for my development so far.