This is a 3 part video tutorial showing how to start out making a really basic shooting game, where you have a ship you can move side to side and incoming asteroids coming from the top of the screen. The ship can shoot the asteroids and is destroyed if an asteroid hits it. Good if you’re just starting with GD and aren’t sure how to start a game.
I’ve uploaded the tutorial images with this post too.
To achieve the effect of telling which objects block you from being seen, set up a system like in that example. You then want to give any objects you want to block the AI view a variable ID = n and then give each ‘ray’ a variable ID = n. Then check on collision that AI.Variable(ID) = obstacle.Variable(ID) and if yes, delete the ray. If no, then the object will not block AI line of sight.