Cloned Games

Plants vs Zombies Decompilation

DecompilationSporadic

Source code reconstructed from the original game's compiled binary, so the game can be understood, rebuilt and ported.

Plants vs. Zombies (original game, not this project)Original game image
Image of the original game, Plants vs. Zombies. This project has no screenshots of its own yet.
Links, repository & details

About

A fork of a Plants vs. It uses an SDL and OpenGL renderer with SDL Mixer X audio. Windows and Linux are listed as working, Nintendo Switch works on real hardware and Citron, Haiku partially works without music, the 3DS port is in development, and a Wii U port is planned but not started. Game data from PvZ GOTY is required.

How it differs from the original

Replaces the original renderer with SDL and OpenGL and Windows-only code with cross-platform code, and supports main.pak. This fork adds Unicode wide characters, webp images, opus audio and zstd compression of pak contents.

Getting started

Copy main.pak and the properties folder from your PvZ GOTY copy to the path next to the built executable, or to the platform's data path on console ports such as sdmc:/switch/PlantsvsZombies on Switch. Extracted data from a pak extractor can be used instead of main.pak.

Known issues & limitations

  • Kenji-NX crashes on boot.

What you need to run it

Original game files required. The project ships code only; you provide your own copy of the game.

Features

  • The Nintendo Switch port works on real hardware and Citron.

How to install

  1. Copy main.pak and the properties folder to the executable's folder, or to the listed data path for a console port.
  2. Alternatively, use extracted game data instead of main.pak.

Summarised from the project's README.

Additional notes

Linux
On Linux there is a small issue on first start-up where the game is stretched fullscreen, making buttons hard to click.

FAQ

What is Plants vs Zombies Decompilation?
Plants vs Zombies Decompilation is an open-source decompilation of Plants vs. Zombies. Source code reconstructed from the original game's compiled binary, so the game can be understood, rebuilt and ported.
Do I need the original game files to run Plants vs Zombies Decompilation?
Yes. The project does not include the original game's assets, so you need your own copy.
Share:

More like Plants vs Zombies Decompilation

Halted
PythonPlantsVsZombies screenshot
PythonPlantsVsZombies is a Python and Pygame recreation of Plants vs. Zombies with a subset of its plants and zombies.
Platforms:None
Stars3,764
Updated2 years ago
LicenseUnknown
Release2019
Active
Original game (original game, not this project)Original game image
A decompilation of Plants vs.
Stars231
Updated4 months ago
LicenseCC0-1.0
Release2023
Active
Original game (original game, not this project)Original game image
A work-in-progress decompilation of the 0.9.9 beta build of Plants vs.
Stars18
Updated3 months ago
LicenseUnknown
Release2025