3D City

3D City

Pseudo-3D renderer of a procedurally-generated city

December 2018
Python

Project Overview

In this project, I created a 3D-like city animation using the Pygame graphics library. The project features:

  • A pseudo-3D rendering of buildings and roads
  • Procedural generation of the city in all directions
  • A driveable player character
  • A work-in-progress steering system for enemies

Technical Implementation

  1. Used Pygame to draw buildings and roads to the screen
  2. Created custom graphics functions for perspective-correct buildings and roads
  3. Implemented a tile-based system for random city generation
  4. Replaced a 2D array world data structure with individualized building and road objects, allowing for unlimited exploration in all directions
Darkcity Gif
Darkcity Gif

Future Improvements

  • Enhance the enemy AI and steering system
  • Implement more varied building types and city structures
  • Add day/night cycle and weather effects

GitHub Repository