Infinite Cubes 2 - OpenGL with PyOpenGL Python and PyGame - 9

In this OpenGL programming tutorial with Python and PyOpenGL we cover how to create infinite cubes in the player’s 3D field no matter where they are using a dictionary. To do this, we delete any cubes that have passed and only show new cubes when necessary. We also show cubes far enough in either direction so that the player can constantly fly to the left or right and still have cubes in their way. PyOpenGL playlist: PyGame with Python 3
Back to Top