This is a ray casting project using Python / pygame
The character moves using W A S D keys and the field of view changes using rightArrow and leftArrow.
You can change the map the way you want using MAP list in the code .
The code reads the MAP list and where there is a 1 it makes a square and where there is a 0 it leave it be .
Hear is demo :
Here is the 3D version .