how to make a 2d sniper game.

how to make a 2d sniper game like clear vision. you can only see the scope and the scene will only be viewed in the scope and the rest is black where the scope can be move by a mouse.

several ways you can do this.
With the new 2D features, I would simply use a sprite that has a transparent center and get that to cover the whole screen.

I suggest you learn the basics by reading up or watch tutorials on Youtube. Doing what you want should be fairly easy after that.