百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

PunyInform

> 数据库
开源

这是一个快速而紧凑的库,用于为在 8 位计算机上运行的 Z-machine 以及其他平台编写文本冒险游戏。

198 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

这是一个快速而紧凑的库,用于为在 8 位计算机上运行的 Z-machine 以及其他平台编写文本冒险游戏。

PunyInform

PunyInform is a library written in Inform 6 which allows authors to create text adventure games / interactive fiction using the Z-machine virtual machine, to be played on 8-bit computers as well as newer platforms. It provides a parser, implementations of common verbs, as well as a framework for writing text adventures.

PunyInform is based on the Inform 6 library, developed by Graham Nelson. We are trying to make it easy for authors used to writing in Inform 6 to start using PunyInform. There is a manual describing the differences.

Games using PunyInform can be compiled to z3, z4, z5, z6, z7 and z8 format. Compared to the Inform 6 library, this means we lack support for Glulx, but we have support for z3 and z4 (which the Inform 6 library lacks). There is also an extension available for basic z6 screen model and graphics support..

To compile games using PunyInform, we recommend the official Inform 6 compiler maintained by David Kinder, at https://github.com/DavidKinder/Inform6. Binaries can be found at the IF-Archive. PunyInform uses Grammar Version 3 which is only supported by recent versions of the Inform 6 compiler. PunyInform requires at least Inform v6.44, and we recommended using the latest available version.

You can use borogove.io to make your PunyInform game playable online. Create an account, upload your game file, and choose whether the game should be visible and playable for all visitors to the site, or only to those who have the link to your game. Another option is to upload your game file (e.g. mygame.z3) to the Parchment HTML Converter and download a single-file HTML file, which can be uploaded to sites such as Itch.io.

Motivation

The main goal of PunyInform is to allow for games which are fast and have a small memory footprint. This should make the games run well on older architectures, such as the 8-bit computers of the 1980s. Our main target is to make it suitable for games on the Commodore 64 using Ozmoo.

Status

PunyInform is fully working and has been used to write many games. We carefully add and change features and fix bugs as they are found. Please check releasenotes.txt for more details.

If you are interested in our progress, please star or follow the project here on Github. Announcements are made on https://twitter.com/FRamsberg and on https://intfiction.org/c/authoring/inform-6/66

You can read the manual on our wiki. It is also included as a PDF when you download PunyInform.

There is also a Game Author's Guide (under Documentation) with various tips for authors writing a game using PunyInform. It's not intended to teach the entire library, but more to give some tips you may find useful when you have a working knowledge of the library and you've started developing a game which you think you will release. All but the chapter on optimization is really required reading for all authors planning to release a game.

You can see what tasks we're currently working on, tasks we've done and tasks coming up on our Trello board: https://trello.com/b/mfGVsB4H/punyinform

Learning PunyInform

There are two manuals you need to know about: DM4 and the PunyInform manual. Read on to learn how to use them and where to find them. Alternatively, you can start learning PunyInform by following the tutorials under Articles.

  • Inform Designer's manual, 4th Edition, AKA DM4: Online version or PDF version

  • PunyInform manual: Online version or PDF version

Writing a game with PunyInform is very similar to writing a game with the Inform 6 standard library - almost everything works the same. If you want to learn PunyInform by reading manuals, you first need to read the official documentation for the Inform 6 standard library, called The Inform Designer's Manual, 4th Edition, or DM4 for short (see links above). You can assume that everything in it also goes for PunyInform (but read the short list stating the biggest differences just below the next paragraph!).

Additionally, there are two more important documents in the PunyInform distribution:

  • PunyInform Game Author's Guide: PDF version

  • PunyInform QuickRef document: PDF version

The Game Author's Guide lists some concepts that are often overlooked by new authors, leading to games with errors and problems. There's also a chapter on optimization, which is very useful for authors trying to squeeze the most out of the z3 format, and authors who want to do everything to deliver the best possible player experience on 8-bit computers.

The QuickRef document is an index of all constants, variables, routines etc that you need to know about as an author. It's not meant to be a learning resource for new authors, but to provide a very brief documentation for authors who are reasonably aquainted with the library.

As you start trying out examples, or start writing your own game, and there's something which you don't get to work, you should check the PunyInform manual, which describes everything that is different from the standard library (see links above).

The biggest differences between the standard library and PunyInform are:

  • The files you need to include, and what goes where in your source code. Start your project by copying minimal.inf in the root directory and you're good to go.

  • Parts of the PunyInform library are optional. I.e. if you want to use the directions northwest, southwest, northeast and southeast, you need to define the constant OPTIONAL_FULL_DIRECTIONS. If you want just about all the verbs and actions available in the standard library to work in PunyInform, you need to define OPTIONAL_EXTENDED_VERBSET. See Customizing the library in the PunyInform manual.

  • Directions are handled quite differently. See Direction handling in the PunyInform manual.

  • Changing library messages (like the message "Taken." that is printed when the player takes something) is done differently. See Library messages and customization in the PunyInform manual.

  • PunyInform doesn't support identical objects. You can have very similar objects like a small green book and a small red book, but the player must be able to say which one (s)he means. It is possible to hack/tweak the library into handling identical objects, see the file howto/indistinguishable.inf for an example of how to do this.

  • PunyInform doesn't have the versatile routine WriteListFrom, for printing what's in a location or in/on an object. Instead, it has a simpler routine called PrintContents. See Printing the contents of an object in the PunyInform manual.

Tools

  • To work with source code you may want a text editor which has a syntax colouring mode for Inform 6. Some popular choices include Visual Studio Code and Atom, both available for Windows, Mac and Linux. Notepad++ is another option, for Windows.

  • To quickly build a game for play on Commodore 64, 128, Plus/4, MEGA65, Commander X16 or Acorn/BBC, you can use Ozmoo Online.

  • To build a game for 20+ different platforms at once, you can use the Puny BuildTools. This tool set can be installed on Linux. Windows users can create a virtual machine running Linux.

  • The Parchment HTML Converter can convert your game file into an HTML file, making your game playable in a web browser.

Games Using PunyInform

100+ PunyInform games have been released. You can find just about all of them in this list of PunyInform games.

If you want to see the source code of PunyInform games, you should look at the list of PunyInform games which provide source code.

Most of these games can be downloaded from the links above. Some of the best games are also available at Ozmoo Online where you can create disk images for Commodore C64, C128, Plus/4, MEGA65, Commander X16 and Acorn/BBC computers.

Articles

Fredrik Ramsberg has written a few articles describing PunyInform for beginners:

  • PunyInform, a new library for writing text adventures for old computers gives a general overview and introduction.

  • PunyInform: Installing the tools and compiling a game goes more into detail on how to setup an environment with PunyInform and the inform compiler on Windows, and getting started on a simple game.

  • PunyInform Coding 1: The Basics covers the fundamentals of developing a game using PunyInform.

  • PunyInform Coding 2: Objects and Actions covers more of verbs, actions and adding code to objects in PunyInform.

  • PunyInform Coding 3: Daemons and Describing Objects covers daemons, some techniques for affecting how objects are described, fake actions and performing actions in code.

  • A tutorial index saying in which coding tutorial different concepts are first explained, and which concepts we intend to cover but haven't yet.

Fredrik has also written a comparison of PunyInform and the standard Inform 6 library.

Community

If you want to ask questions about PunyInform, these are good places to go:

  • intfiction.org forum, Inform 6 section. Please tag your posts with "punyinform".

  • PunyInform Discord server. Please note that you need to click checkmark in the Rules channel and wait a few minutes before you can post.

There are also categories/channels in the above forums where you can discuss plot, story, puzzles etc, and posts requests for beta-testers for your game.

Translations

  • PunyInformES is a translation of the PunyInform library to Spanish, by Pablo Martínez.

  • PunyInformFr is a translation of the PunyInform library to French, by auraes.

  • PunyInformFr is a alternate translation of the PunyInform library to French, by Hugo Labrande.

  • PunyInform - DE is a translation of the PunyInform library to German, by Lea Santner and A. Pulvermacher.

  • PunyInformDE is based on PunyInform - DE above, but updated to

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Cdevelopment-environmentinfocominform6punyinform

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库