Skip to content

Hohnik/noc-examples-pygame

Repository files navigation

The Nature of Code Examples pygame

This is the repository for example pygame code from The Nature of Code book. If you are looking for the book's raw content (text, illustrations, images, CSS, etc.), have a look at The Nature of Code repo.

The original Processing examples can be found here, along with a list of other ports.

Installation Instruction

To run the examples you have to have python and pygame-ce installed. For some examples specific packages are needed. This is noted in the examples where you need them.

To install python and handle packages you can use the uv package manager. Though uv you can install all dependencies of the examples.

uv sync
activate .venv/bin/activate

Note

There are multiple ways to find the p5.js code for the examples for comparisson:

About

"Nature of Code" examples pygame port

Topics

Resources

Stars

Watchers

Forks

Languages