端游源码
点击放大

The Powder Toy - June 2026
==========================
Get the latest from the Powder Toy website. We're also on Steam.
To use online features such as saving, you need to register an account.
You can also visit the official TPT forum.
Have you e to blow something up? Or maybe you always dreamt of operating an atomic power plant? Do you have a will to develop your own CPU? The Powder Toy lets you to do all of these, and even more!
The Powder Toy is a free physics sandbox 游戏, which simulates air pressure and , heat, gravity and a countless number of interactions between different substances! The 游戏 provides you with building materials, liquids, gases and electronic components which can be used to construct complex machines, guns, bombs, realistic terrains and almost anything else. You can then mine them and watch cool explosions, add intricate wirings, play with little stickmen or operate your machine. You can browse and play thousands of different saves made by the community or upload your own – we welcome your creations!
There is a Lua API – you can automate your work or even make plugins for the 游戏. The Powder Toy is free and the 源码 代码 is distributed under the GNU General Public License, so you can modify the 游戏 yourself or help with de.
Build instructions
===========================================================================
See the _Powder Toy De Help_ section on the main page of the wiki.
Special Thanks
===========================================================================
* Stanislaw K Skowronek - Designed the original Powder Toy
* Simon Robertshaw - Wrote the website, current ser
* Skresano
* Pilihp64
* Catelite
* Hoyle
* Nathan Cousins
* jacksonmj
* Felix Wallin
* Lieuwe Mosch
* Anthony Boot
* Me4502
* MaksProg
* jacob1
* mniip
* LBPHacker
Libraries and other assets used
===========================================================================
* bzip2
* FFTW
* JsonCpp
* libcurl
* libpng
* Lua
* LuaJIT
* Mallangche
* mbedtls
* SDL
Instructions
===========================================================================
Click on the elements with the mouse and draw in the field, like in MS Paint. The rest of the 游戏 is learning what happens next.
Controls
===========================================================================
| Key | Action |
| ----------------------- | --------------------------------------------------------------- |
| TAB | Switch between circle/square/triangle brush |
| Space | Pause |
| Q / Esc | Quit |
| Z | Zoom |
| S | Sa (use with Ctrl when STK2 is out) |
| L | Load last sa |
| K | Stamp library |
| 0-9 | Set view mode |
| P / F2 | Sa as .png |
| E | Bring up element search |
| F | Pause and step to next frame |
| G | Increase grid size |
| Shift + G | Decrease grid size |
| H | Show/Hide HUD |
| Ctrl + H / F1 | Show intro text |
| D / F3 | Debug mode (use with Ctrl when STK2 is out) |
| I | Invert Pressure and map |
| W | Cycle gravity modes (use with Ctrl when STK2 is out) |
| Y | Cycle air modes |
| Ctrl + E | Cycle edge modes |
| B | Enter decoration editor menu |
| Ctrl + B | Toggle decorations on/off |
| N | Toggle Newtonian Gravity on/off |
| U | Toggle ambient heat on/off |
| Ctrl + I | Install powder toy, for loading sa by double clicking |
| Backtick | Toggle console |
| = | Reset pressure and map |
| Ctrl + = | Reset Electricity |
| \[ | Decrease brush size |
| \] | Increase brush size |
| Alt + \[ | Decrease brush size by 1 |
| Alt + \] | Increase brush size by 1 |
| Ctrl + C/V/X | Copy/Paste/Cut |
| Ctrl + Z | Undo |
| Ctrl + Y | Redo |
| Ctrl + Cursor drag | Rectangle |
| Shift + Cursor drag | Line |
| Middle click | Sample element |
| Alt + Left click | Sample element |
| Mouse scroll | Change brush size |
| Ctrl + Mouse scroll | Change brush size |
| Shift + Mouse scroll | Change horizontal brush size |
| Shift + R | Horizontal mirror for selected area when pasting stamps |
| Ctrl + Shift + R | mirror for selected area when pasting stamps |
| R | Rotate selected area counterclockwise when pasting stamps |
| F11 | Toggle fullscreen |
Command Line
---------------------------------------------------------------------------
| Command | Description | Example |
| --------------------- | ------------------------------------------------ | --------------------------------------------|
| scale:SIZE | Change window scale factor | scale:2 |
| kiosk | Fullscreen mode | |
| proxy:SERVER[:PORT] | Proxy 服务端 to use | proxy:wwwcache.lancs.ac.uk:8080 |
| open FILE | Opens the file as a stamp or 游戏 save | |
| ddir DIRECTORY | Directory used for saving stamps and preferences | |
| ptsa | Open online save, used by ptsave: URLs | ptsave:2198 |
| disable-network | Disables internet connections | |
| disable-bluescreen | Disable bluescreen handler | |
| redirect | Redirects output to stdout.txt / stderr.txt | |
| console | Redirects output to a new console on Windows | |
| cafile:CAFILE | Set certificate bundle path | cafile:/etc/ssl/certs/ca-certificates.crt |
| capath:CAPATH | Set certificate directory path | capath:/etc/ssl/certs |
开发语言:C++
项目类型:粉末玩具物理沙盒游戏
Star 数:5346
这是一套粉末玩具物理沙盒游戏,代码结构清晰,适合开发者学习游戏的客户端渲染、服务端逻辑、场景管理与资源加载。项目涵盖了游戏的核心玩法、界面交互、地图与角色系统等模块,对理解游戏开发的完整流程具有较高的参考价值。
从技术实现角度看,游戏项目的难点在于:游戏循环与状态管理、资源加载与渲染优化、客户端与服务端的协议同步、以及多平台适配。本项目在这些方面提供了可运行的实现,开发者可以在此基础上进行二次开发或学习研究。
1. 下载源码压缩包,解压到本地开发环境。
2. 根据项目类型准备对应的运行环境(Node.js / Go / C# / Unity / Godot 等)。
3. 按照 README 中的步骤配置依赖、数据库和配置文件。
4. 先启动服务端,再运行客户端,即可进入游戏进行测试。
注意:本项目仅供学习研究使用,请勿用于商业或非法用途。
对于想进入游戏开发领域的开发者来说,这套源码是一个很好的入门参考。通过阅读代码,可以学习到游戏的核心玩法实现、场景与资源管理、网络协议设计、以及渲染优化等关键技术点。
同时,项目中的代码组织方式和模块划分,也展示了游戏项目在工程化方面的实践经验,值得开发者深入研究和借鉴。理解一个完整游戏项目的架构,对后续开发其他类型游戏也很有帮助。
本资源来源于开源社区,仅供学习研究和技术交流使用,请勿用于任何商业或违法违规用途。使用本项目产生的一切后果由使用者自行承担。若涉及第三方权益,请联系删除。
| 资源标题 | The-粉末玩具 - 粉末玩具物理沙盒游戏 |
| 所属分类 | 端游源码 |
| 发布作者 | admin |
| 发布时间 | 2026-10-05 21:10:37 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 135 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |