Use mouse to direct flashlight, and wsad to move. press x to show everything.
This is a test i am doing for a mystery game i plan on making. the main part was getting the flashlight to show objects, and also i figured out how to get all the objects in one sprite.the game will randomly generate the objects and use only one sprite. the way i did this is i cloned it with random cords, so it would never be the same. i used the darker part of the tree(at the bottom of the tree) and the shading of the rock for the collision.