[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-113408":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":9,"totalLinesOfCode":9,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":9,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":9,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},113408,"PvZ-Portable","wszqkzqk\u002FPvZ-Portable","wszqkzqk","A cross-platform reimplementation of Plants vs. Zombies by the community. Aiming to bring 100% authentic experience of GOTY edition.",null,"https:\u002F\u002Fgithub.com\u002Fwszqkzqk\u002FPvZ-Portable","C++",945,216,18,1,0,4,24,38,16,71.81,false,"main","2026-11-23 16:06:22","2026-11-23 17:23:24","# PvZ-Portable\n\n\u003Cdiv align=\"center\">\n  \u003Cimg src=\"icon-readme.png\" alt=\"PvZ-Portable\" width=\"450\">\n  \u003Cbr>\n  \u003Ca href=\"https:\u002F\u002Fdeepwiki.com\u002Fwszqkzqk\u002FPvZ-Portable\">\u003Cimg src=\"https:\u002F\u002Fdeepwiki.com\u002Fbadge.svg\" alt=\"Ask DeepWiki\">\u003C\u002Fa>\n\u003C\u002Fdiv>\n\n**PvZ-Portable** is a cross-platform, community-driven C++20 reimplementation of *Plants vs. Zombies: Game of the Year Edition*, built to bring an authentic recreation of the classic game to modern desktop, mobile, console, and web platforms.\n\n📦 **Native Builds:** Prebuilt packages for Windows, Linux, macOS, Android, iOS, and Nintendo Switch are available on the [Releases](https:\u002F\u002Fgithub.com\u002Fwszqkzqk\u002FPvZ-Portable\u002Freleases) page.\n\n🌐 **Don't want to install?** [Try the WebAssembly build directly in your browser](https:\u002F\u002Fwszqkzqk.github.io\u002FPvZ-Portable\u002Fpvz-portable.html) (you still need your own game data files).\n\n> **Important Notice**\n> - **Game Assets Required:** This repository does not contain any copyrighted assets (graphics, audio, or fonts) owned by PopCap Games or Electronic Arts. To play, you must supply `main.pak` and the `properties\u002F` folder from a legally purchased copy of *Plants vs. Zombies: GOTY Edition* ([Steam](https:\u002F\u002Fstore.steampowered.com\u002Fapp\u002F3590\u002FPlants_vs_Zombies_GOTY_Edition\u002F) \u002F [EA](https:\u002F\u002Fwww.ea.com\u002Fgames\u002Fplants-vs-zombies\u002Fplants-vs-zombies)).\n> - **Clean-Room Implementation:** The codebase is a manual reimplementation based on publicly documented community research ([植物大战僵尸吧](https:\u002F\u002Ftieba.baidu.com\u002Ff?ie=utf-8&kw=%E6%A4%8D%E7%89%A9%E5%A4%A7%E6%88%98%E5%83%B5%E5%B0%B8), [PvZ Wiki](https:\u002F\u002Fwiki.pvz1.com\u002Fdoku.php?id=home), and [PvZ Tools](https:\u002F\u002Fpvz.tools\u002Fmemory\u002F)). The author (`wszqkzqk`) has never reverse-engineered the original binary, and code produced directly from reverse engineering is not accepted.\n> - **Non-Commercial & Educational:** This project is developed for educational purposes focusing on cross-platform porting, engine modernization, and multi-architecture compatibility. It is not affiliated with, authorized, or endorsed by PopCap Games or Electronic Arts.\n\n---\n\n## Highlights & Features\n\n### Graphics, Audio & Gameplay\n- **SDL3 + OpenGL ES 2.0 Backend:** Uses OpenGL ES 2.0 with automatic fallback to desktop OpenGL 2.1+. Because GLES 2.0 is the common subset supported natively by desktop GPU drivers, mobile chips, WebGL, and consoles, the renderer runs out of the box everywhere without extra wrapper dependencies (though [ANGLE](https:\u002F\u002Fchromium.googlesource.com\u002Fangle\u002Fangle) can still be used to translate calls to DirectX, Metal, or Vulkan if desired).\n- **Resizable Window:** Supports free window resizing and fullscreen scaling, lifting the fixed-resolution limitation of the original release.\n- **Authentic MO3 Music & Audio:** Powered by `SDL3_mixer` and `libopenmpt` for accurate playback of the original `.mo3` tracker module soundtrack and sound effects.\n- **Unlockable Limbo Page:** Restores access to the hidden mini-games page from the original game. To unlock it, open the Mini-Games, Puzzle, or Survival selection screen and click or tap any blank area 5 times in quick succession.\n- **Deterministic Replay System:** Record gameplay sessions into compact `.dmo` files and play them back deterministically for debugging or regression testing.\n\n### Portability & Architecture Support\n- **32-bit & 64-bit Multi-Architecture:** Runs natively on `i686`, `x86_64`, `aarch64`, `riscv64`, `loongarch64`, and more.\n- **Endian-Independent Design:** Supports both little-endian and big-endian systems, including cross-endian save compatibility (big-endian support is implemented by design, though untested on physical hardware).\n- **Modern C++20 Foundation:** Built with `std::thread`, `std::filesystem`, unified internal UTF-8 string handling, and full Unicode file path support across all operating systems.\n- **Low-Memory Mode:** Optional `LOW_MEMORY` build mode disables resource pre-caching for RAM-constrained console targets.\n\n### Save & Asset Compatibility\n- **Original Profile Compatibility:** Directly reads and writes original PC GOTY global profile files (`users.dat`, `user*.dat` covering adventure progress, coins, Zen Garden, achievements, etc.), while fixing the Year 2038 timestamp overflow bug in a backward-compatible manner.\n- **Cross-Platform Mid-Level Saves (`.v4`):** Replaces the original game's fragile raw-memory `.dat` dumps with a structured TLV save format that can be freely transferred across operating systems, compilers, and 32\u002F64-bit CPU architectures, complete with a YAML export\u002Fimport tool.\n- **Multilingual Asset Support:** Works with official GOTY asset packages in English, Chinese, German, Spanish, French, and Italian.\n\n---\n\n## Supported Platforms\n\n| Platform | Resource & Data Location | Status |\n| :--- | :--- | :--- |\n| **Linux** | Executable dir (resources); per-user app-data (saves\u002Fcaches) | Fully supported |\n| **Windows** | Executable dir (resources); per-user app-data (saves\u002Fcaches) | Fully supported |\n| **macOS** | Executable dir (resources); per-user app-data (saves\u002Fcaches) | Fully supported |\n| **BSD Family** | Executable dir (resources); per-user app-data (saves\u002Fcaches) | Supported (verified on FreeBSD) |\n| **Haiku** | Executable dir (resources); per-user app-data (saves\u002Fcaches) | Partially works (no music) |\n| **Android** | `Android\u002Fdata\u002Fio.github.wszqkzqk.pvzportable\u002Ffiles\u002F` | Fully supported |\n| **iOS \u002F iPadOS** | App Documents directory (via iOS Files app \u002F Finder) | Supported (sideload via unsigned IPA) |\n| **Web (WASM)** | Browser IndexedDB (saves); resources loaded locally at runtime | Fully supported (requires HTTP server) |\n| **Nintendo Switch** | `sdmc:\u002Fswitch\u002FPvZPortable` | Works on real hardware (Kenji-NX crashes on boot) |\n\n---\n\n## Getting Started\n\n### Game Assets & Version Compatibility\n\nYou need `main.pak` and the `properties\u002F` folder from a legal copy of *Plants vs. Zombies: GOTY Edition* (unpacked resource files can also be used instead of `main.pak`).\n\nPvZ-Portable is designed and tested primarily against **GOTY Edition 1.2.0.1073 (English, standalone PopCap release)**, which is recommended for the best out-of-the-box experience.\n\nOther official releases, including **Steam GOTY 1.2.0.1096** and **non-English GOTY editions** (`1.2.0.1093` DE\u002FES\u002FFR\u002FIT, or `1.1.0.1056` ZH based on 1.2.0.1073), are also fully playable with identical gameplay mechanics. Because those versions renamed a few XML string keys, you may notice minor UI text differences unless you generate a compatibility override file:\n\n```bash\npython3 scripts\u002Fmake-compat-overrides.py \"\u002Fpath\u002Fto\u002Fmain.pak\"\n```\n\nThis script generates `pvz-portable.xml` inside the `properties\u002F` directory next to `main.pak` (use `-o` to specify a custom output path, or `--force` to overwrite an existing file).\n\n\u003Cdetails>\n\u003Csummary>Known cosmetic text differences on non-1.2.0.1073 EN assets without overrides (click to expand)\u003C\u002Fsummary>\n\n| Issue (Non-1.2.0.1073 EN only) | Cause |\n| :--- | :--- |\n| **Almanac blue description text missing** | In 1.2.0.1096, the introductory paragraph was split from `[XXX_DESCRIPTION]` into `[XXX_DESCRIPTION_HEADER]`, which the 1.2.0.1073 engine does not read. |\n| **\"Restart\" button label missing** | `[RESTART_LEVEL]` was renamed to `[RESTART_LEVEL_BUTTON]` in 1.2.0.1096. |\n| **Unencountered zombie shows `???`** instead of `(not encountered yet)` | `[NOT_ENCOUNTERED_YET]` was changed to `???` in 1.2.0.1096, moving the old text to `[NOT_ENCOUNTERED_YET_DESCRIPTION]`. |\n| **Crazy Dave's plant sell price shows 1\u002F10 of actual value** | In 1.2.0.1073, `[CRAZY_DAVE_1700]` appends a literal `0` after `{SELL_PRICE}` (`${SELL_PRICE}0`) because the engine passes `price \u002F 10`. In 1.2.0.1096 that trailing `0` was removed. |\n\u003C\u002Fdetails>\n\n### Desktop (Linux, Windows, macOS, BSD, etc.)\n\nPlace `main.pak` and the `properties\u002F` folder in the same directory as the `pvz-portable` executable. By default, the game resolves read-only resources relative to the executable directory, so you can launch it from any working directory.\n\nPer-user writable files are stored separately in your operating system's standard application data directory under `io.github.wszqkzqk\u002FPvZPortable`:\n- **Linux:** `~\u002F.local\u002Fshare\u002Fio.github.wszqkzqk\u002FPvZPortable\u002F`\n- **Windows:** `%APPDATA%\\io.github.wszqkzqk\\PvZPortable\\`\n- **macOS:** `~\u002FLibrary\u002FApplication Support\u002Fio.github.wszqkzqk\u002FPvZPortable\u002F`\n\nInside this directory, the game maintains:\n- `userdata\u002F`: Player profiles and mid-level save files.\n- `cache64\u002F` (64-bit builds) or `cache32\u002F` (32-bit builds): Local startup caches for compiled reanimation and definition data. These use native memory layout and are not meant to be shared across machines; if a cache or schema check fails, the game automatically recompiles them from source assets.\n- `registry.regemu`: Persisted game settings.\n\n### Android\n\nDownload the prebuilt `arm64-v8a` APK from [Releases](https:\u002F\u002Fgithub.com\u002Fwszqkzqk\u002FPvZ-Portable\u002Freleases) (or build from source for other ABIs). Requires Android 7.0+.\n\n1. **First Launch:** Install and open the APK. When no assets are detected, the resource import screen opens automatically.\n2. **Import Assets:** Select either:\n   - A ZIP archive containing `main.pak` and `properties\u002F` (at the archive root or inside a single top-level folder such as `PvZ\u002Fmain.pak`), or\n   - A directory containing `main.pak` and `properties\u002F`.\n3. Tap **Start Game** once import completes.\n4. **Managing Data Later:** Long-press the app icon in your launcher and select **Manage Data** to re-import resources or import\u002Fexport save files.\n\n*Notes:*\n- All files are stored under `Android\u002Fdata\u002Fio.github.wszqkzqk.pvzportable\u002Ffiles\u002F`. Imports and exports use the Android Storage Access Framework (SAF), so no broad storage permissions are required.\n- The Android build preserves the desktop game's 4:3 aspect ratio and mouse-driven interaction model via SDL3 touch-to-mouse mapping, without mobile-specific UI redesigns.\n\n### iOS \u002F iPadOS\n\nDownload the unsigned IPA from [Releases](https:\u002F\u002Fgithub.com\u002Fwszqkzqk\u002FPvZ-Portable\u002Freleases) or build it via `ios\u002Fbuild-ios.sh`. Requires iOS 16.4+ (`arm64`).\n\n1. **Sideload the IPA:** Install using [AltStore](https:\u002F\u002Faltstore.io\u002F), [TrollStore](https:\u002F\u002Fgithub.com\u002Fopa334\u002FTrollStore), or Xcode with a free Apple ID (note that free Apple ID signatures expire after 7 days, whereas TrollStore installations are permanent).\n2. **Copy Game Assets:** Open the iOS **Files** app (or Finder \u002F iTunes file sharing on desktop) and copy `main.pak` and the `properties\u002F` folder into the **PvZ Portable** Documents directory.\n\n### Web (Browser \u002F WebAssembly)\n\n1. Open the [Online WebAssembly Player](https:\u002F\u002Fwszqkzqk.github.io\u002FPvZ-Portable\u002Fpvz-portable.html).\n2. Load your game assets from either a ZIP archive or a folder containing `main.pak` and `properties\u002F`, then click **Start Game**.\n   - All assets are processed locally in your browser and are never uploaded to any server.\n   - Saves are stored in browser IndexedDB and can be exported or imported as a ZIP archive using the on-screen controls.\n\nTo self-host the WebAssembly build, download the WASM archive from [Releases](https:\u002F\u002Fgithub.com\u002Fwszqkzqk\u002FPvZ-Portable\u002Freleases) and serve it over HTTP (for example, `python3 -m http.server`). Opening the `.html` file directly via `file:\u002F\u002F` will not work due to browser security restrictions.\n\n---\n\n## Save Data & Conversion Tools\n\nPvZ-Portable uses two types of save files inside `userdata\u002F`:\n\n1. **Global User Data (`users.dat`, `user1.dat`, etc.)**\n   - Stores player profiles, adventure progress, coins, Zen Garden plants, and shop purchases.\n   - Uses explicit field serialization and is directly compatible with the original PC GOTY Edition across all platforms.\n\n2. **Mid-Level Save States (`game1_0.v4`, etc.)**\n   - Created when you choose \"Save and Exit\" during a level.\n   - **`.v4` (Default, Portable):** Serializes game objects field-by-field using Type-Length-Value (TLV) tags. You can freely copy `.v4` files between Windows, Linux, macOS, Android, iOS, Web, and Switch across 32\u002F64-bit and different CPU architectures.\n   - **`.dat` (Legacy):** The original game's mid-level save format dumped raw C++ structs directly to disk, which breaks across different architectures, pointer sizes, or compilers. PvZ-Portable still loads legacy `.dat` saves as a fallback and automatically migrates them to `.v4`.\n\n### Inspecting & Editing `.v4` Saves\n\nThe repository includes `scripts\u002Fpvzp-v4-converter.py` for inspecting mid-level saves or converting them to and from human-readable YAML:\n\n```bash\n# View basic level statistics (wave, sun, plant\u002Fzombie counts, etc.)\npython3 scripts\u002Fpvzp-v4-converter.py info ~\u002F.local\u002Fshare\u002Fio.github.wszqkzqk\u002FPvZPortable\u002Fuserdata\u002Fgame1_13.v4\n\n# Export a binary .v4 save to YAML for inspection or editing\npython3 scripts\u002Fpvzp-v4-converter.py export ~\u002F.local\u002Fshare\u002Fio.github.wszqkzqk\u002FPvZPortable\u002Fuserdata\u002Fgame1_13.v4 level.yaml\n\n# Re-import modified YAML back into a .v4 save (back up your original file first!)\ncp ~\u002F.local\u002Fshare\u002Fio.github.wszqkzqk\u002FPvZPortable\u002Fuserdata\u002Fgame1_13.v4 ~\u002F.local\u002Fshare\u002Fio.github.wszqkzqk\u002FPvZPortable\u002Fuserdata\u002Fgame1_13.v4.bak\npython3 scripts\u002Fpvzp-v4-converter.py import level.yaml ~\u002F.local\u002Fshare\u002Fio.github.wszqkzqk\u002FPvZPortable\u002Fuserdata\u002Fgame1_13.v4\n```\n\n---\n\n## Command-Line Arguments\n\nBoth `-flag \u003Cvalue>` and `-flag=\u003Cvalue>` syntaxes are supported:\n\n### Path Overrides\n- `-resdir \u003Cpath>`: Set the directory where read-only game assets (`main.pak` and `properties\u002F`) are located.\n- `-savedir \u003Cpath>`: Override the directory used for writable data (saves, caches, settings, and screenshots).\n\n### Recording and Playing Back Gameplay\nDemo files (`.dmo`) record deterministic input and RNG state for debugging and regression testing. Automatically named recordings are written to the current working directory:\n- `-record [\u003Cpath>]`: Record the session to `pvzp-YYYYMMDD-HHMMSS[-N].dmo`, or to `\u003Cpath>` if specified.\n- `-recnum \u003CN>`: Record a new session and retain only the `N` most recent auto-named `pvzp-*.dmo` files (custom-named files are untouched).\n- `-play [\u003Cpath>]`: Replay the most recent `pvzp-*.dmo` file, or `\u003Cpath>` if specified.\n- `-playnum \u003CN>`: Replay the `N`-th most recent auto-named `pvzp-*.dmo` recording (`1` is the latest).\n\n---\n\n## Building from Source\n\n### Dependencies\n\n- **Build System:** `CMake` (>= 3.12), `Ninja`\n- **Compiler:** C++20-capable compiler and standard library (`GCC`, `Clang`, or `MSVC`)\n- **Libraries:** `SDL3` (>= 3.2.12), `SDL3_mixer`, `libopenmpt`, `libpng`, `libjpeg-turbo`, `zlib`\n- **Graphics API:** `OpenGL ES 2.0` or `OpenGL 2.1+` headers\u002Fdrivers\n\nInstall dependencies for your platform:\n\n- **Arch Linux:**\n  ```bash\n  sudo pacman -S --needed base-devel cmake libjpeg-turbo libopenmpt libpng ninja sdl3 sdl3_mixer\n  ```\n- **Debian \u002F Ubuntu:**\n  ```bash\n  sudo apt install cmake ninja-build libjpeg-dev libopenmpt-dev libpng-dev libsdl3-dev libsdl3-mixer-dev\n  ```\n- **Windows (MSYS2 UCRT64):**\n  ```bash\n  pacman -S --needed base-devel mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-libjpeg-turbo mingw-w64-ucrt-x86_64-libopenmpt mingw-w64-ucrt-x86_64-libpng mingw-w64-ucrt-x86_64-ninja mingw-w64-ucrt-x86_64-sdl3 mingw-w64-ucrt-x86_64-sdl3-mixer\n  ```\n- **macOS (Homebrew):**\n  ```bash\n  brew install cmake dylibbundler jpeg-turbo libopenmpt libpng ninja sdl3 sdl3_mixer\n  ```\n\n### Compiling\n\nConfigure and build from the repository root:\n\n```bash\ncmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Release\ncmake --build build\n```\n\nFor local native builds, you can also enable CPU-specific instruction sets via compiler flags:\n\n```bash\ncmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=\"-march=native\" -DCMAKE_CXX_FLAGS=\"-march=native\"\n```\n\n### CMake Configuration Options\n\nPass `-D\u003COPTION>=ON\u002FOFF` during the `cmake -B build` step to customize the build:\n\n| Option | Default | Description |\n| :--- | :--- | :--- |\n| `PVZ_DEBUG` | `OFF` (`ON` in `Debug` builds) | Enable in-game cheat keys, debug overlays, and diagnostic features. |\n| `DO_FIX_BUGS` | `OFF` | Apply optional community fixes for original 1.2.0.1073 gameplay quirks and bugs.[^1] Disabled by default because many players consider original behaviors part of classic gameplay. |\n| `LOW_MEMORY` | `OFF` | Reduce memory footprint by disabling resource pre-caching (intended for consoles with limited RAM). |\n| `CONSOLE` | `OFF` (`ON` in `Debug` builds) | Attach a stdout\u002Fstderr console window on Windows. |\n| `BUILD_STATIC` | `OFF` | Statically link dependencies on Windows (MinGW) and glibc-based Linux. For MSVC, use a vcpkg `-static` triplet instead. |\n\n[^1]: `DO_FIX_BUGS` currently includes the following adjustments:\n    - Fix Bungee Zombie duplicate sun\u002Fitem drop in *I, Zombie* mode.\n    - Make mind-controlled Gargantuars smash enemy zombies instead of plants, smash vases in *Scary Potter* mode, and throw mind-controlled Imps (with corrected scale, health, and direction).\n    - Make mind-controlled Pea\u002FGatling Head zombies shoot forward toward enemy zombies instead of backward.\n    - Make mind-controlled Jalapeno and Squash zombies target and damage enemy zombies instead of plants (including coordinate fixes for Squash tracking).\n    - Allow mind-controlled Jalapeno zombies to clear Dr. Zomboss's ice\u002Ffireballs and ladder placements properly.\n    - Synchronize Backup Dancer animations with the Dancing Zombie (fixes the \"Maid\" displacement glitch).\n    - Fix visual glitch when a Ladder Zombie recovers its arm.\n\nFor example, to build an optimized Release binary with cheat keys enabled:\n\n```bash\ncmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Release -DPVZ_DEBUG=ON\n```\n\n---\n\n## Contributing\n\nContributions are welcome! If you encounter build or gameplay issues, please open an issue with your platform and reproduction details.\n\n### Developer Notes\n\n- **Format v4 Save Compatibility:**\n  - Always assign new TLV IDs when introducing new serialized fields; never reuse existing IDs.\n  - Provide sensible default values when loading older `.v4` saves that lack newly added fields.\n  - Never dump raw C++ structs for layout-dependent types; serialize fields explicitly using fixed-width primitives.\n\n\u003Cdetails>\n\u003Csummary>SexyAppFramework Coding Conventions (click to expand)\u003C\u002Fsummary>\n\nFrom the original SexyAppFramework documentation:\n\n> The framework differs from many other APIs in that some class properties are not wrapped in accessor methods, but rather are made to be accessed directly through public member data. The window caption of your application, for example, is set by assigning a value to the `std::string mTitle` in the application object before the application's window is created. We felt that in many cases this reduced the code required to implement a class. Also of note is the prefix notation used on variables: `m` denotes a class member, `the` denotes a parameter passed to a method or function, and `a` denotes a local variable.\n\u003C\u002Fdetails>\n\n---\n\n## License & Acknowledgments\n\n**Copyright (C) 2026 Zhou Qiankang `\u003Cwszqkzqk@qq.com>`**\n\nThis project's code is licensed under the [**GNU Lesser General Public License v3.0 or later**](https:\u002F\u002Fwww.gnu.org\u002Flicenses\u002Flgpl-3.0.html) (`LGPL-3.0-or-later`). Full license texts are provided in `LICENSE` (LGPL-3.0) and `COPYING` (GPL-3.0) at the repository root. The code is provided \"as is\", without warranty of any kind.\n\n- **Intellectual Property:** *Plants vs. Zombies* and all original game assets are the property of PopCap Games and Electronic Arts. The LGPL-3.0-or-later license applies solely to the source code in this repository. Project icons and platform logos were created by `wszqkzqk` with the assistance of AI image generation tools and are not official PopCap\u002FEA assets.\n- **PopCap Games Framework:** Portions of `src\u002FSexyAppFramework` are derived from the [PopCap Games Framework](src\u002FSexyAppFramework\u002FLICENSE) and have been refactored and modernized by the community under the LGPL-3.0-or-later license:\n  > *\"This product includes portions of the PopCap Games Framework, © 2005-2009 PopCap Games, Inc. All rights reserved. (http:\u002F\u002Fpopcapframework.sourceforge.net\u002F).\"*\n\n### Acknowledgments\n- **PopCap Games** for creating *Plants vs. Zombies* and releasing the SexyAppFramework under a permissive license.\n- **The SDL Team** for SDL3 and SDL3_mixer, which power the cross-platform windowing, input, rendering, and audio backends.\n- **The OpenMPT Team** for `libopenmpt`, enabling accurate MO3 tracker music playback.\n- All community contributors and researchers, especially [@Headshotnoby](https:\u002F\u002Fgithub.com\u002Fheadshot2017) and [@Patoke](https:\u002F\u002Fgithub.com\u002FPatoke) for their foundational work.\n","PvZ-Portable 是一款基于 C++20 的跨平台开源重实现项目，完整复刻《植物大战僵尸：年度版》（GOTY）的游戏逻辑与体验。核心采用 SDL3 与 OpenGL ES 2.0 图形后端，支持自动降级至桌面 OpenGL 2.1+，实现在 Windows、Linux、macOS、Android、iOS、Nintendo Switch 及 WebAssembly 等多平台原生运行；具备窗口自由缩放、MO3 音轨高保真音频播放、隐藏关卡（Limbo 页面）还原等特性。项目遵循清洁室实现原则，不包含任何原始版权资产，需用户自行提供合法游戏数据文件（main.pak 及 properties\u002F 文件夹），适用于怀旧玩家、跨平台游戏开发学习与经典游戏引擎现代化研究场景。",2,"2026-11-24 04:45:47","trending"]