Skip to main content

Cross-platform generator (mkpanda command) for new Panda3D projects.

Project description

panda3d-boilerplate

Cross-platform generator for new Panda3D projects. Installs as a global mkpanda command.

Install

Requires Python 3.8+ and pipx (recommended) or pip.

pipx install git+https://github.com/Bebopskull/panda3d-boilerplate.git
# once published to PyPI: pipx install mkpanda

Or with pip + venv:

python3 -m pip install --user git+https://github.com/Bebopskull/panda3d-boilerplate.git

Use

mkpanda /path/to/my-game

Optional second argument sets the display name (defaults to the directory name):

mkpanda /path/to/my-game "My Awesome Game"

Update

pipx upgrade mkpanda

Or to force-reinstall the latest from GitHub:

pipx install --force git+https://github.com/Bebopskull/panda3d-boilerplate.git

Uninstall

pipx uninstall mkpanda

What it creates

my-game/
├── src/
│   ├── main.py              # ShowBase entry point
│   ├── scenes/              # Scene/state system (base + menu example)
│   ├── input/               # Centralized input manager
│   └── utils/logger.py      # Stdout logging
├── assets/
│   ├── models/
│   ├── textures/
│   ├── sounds/
│   ├── fonts/
│   └── shaders/
├── config/config.prc        # Window, audio, model paths
├── tests/
├── requirements.txt         # panda3d
├── .gitignore
├── README.md
└── run.sh                   # Linux/macOS launcher

Next steps in the generated project

cd /path/to/my-game
python3 -m venv .venv
source .venv/bin/activate         # Windows: .venv\Scripts\activate
pip install -r requirements.txt
python src/main.py

Contributing

Open to PRs. The repo layout:

  • panda3d_boilerplate/cli.py — the mkpanda entry point
  • panda3d_boilerplate/templates/ — files copied into new projects (with {{PROJECT_NAME}} substitution)
  • pyproject.toml — packaging metadata; bump version for releases

To test changes locally:

git clone https://github.com/Bebopskull/panda3d-boilerplate.git
cd panda3d-boilerplate
pipx install --force .
mkpanda /tmp/test-project "Test"

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkpanda-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkpanda-0.1.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file mkpanda-0.1.0.tar.gz.

File metadata

  • Download URL: mkpanda-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mkpanda-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e807a299314c02e372ed990629071f01f94cb8c2182c90c792258212bc41e9f9
MD5 149d57cebc2728743d3c70fcf157e02a
BLAKE2b-256 25f97e721becd5acab5a5110490854d5fc8c9b43178322fb84eece19626edc48

See more details on using hashes here.

File details

Details for the file mkpanda-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mkpanda-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mkpanda-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af462413f9cdb6b5a1d1f43fce8c9e4cdaa720153d3fe2e8478919aacd8dcd19
MD5 31a247ec9e69505d6806f6f36ed18c1d
BLAKE2b-256 3fa548a6b390ebdb3900e7a2a4b4bea001063f907b7f674cf774037eede7692c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page