I tried to create mechanics similar to the first Doom, and this is as far as I have gotten. Please leave advice below.
Hit "1" to make the player and wall icon invisible but there is a glitch where you can go through the wall. Hit "2" to make visible again.