
Pragtical 编辑器插件支持在标签页内运行 Freedoom 游戏
来源标题:Play Freedoom in a Pragtical Code Editor Tab
一款名为 Freedoom for Pragtical 的独立插件发布,可在 Pragtical 编辑器的标签页中通过 Woof 或 Odamex 引擎运行 Freedoom 和 FreeDM。该插件需配合启用 LuaJIT 的 Pragtical 使用,发布包已包含 Linux、macOS 和 Windows 平台的引擎及两个 Freedoom 战役。用户可通过插件管理器搜索安装,或手动将对应平台文件放入插件目录。
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
Play Freedoom and FreeDM in a Pragtical tab using the Woof or Odamex engine.
This independent plugin is not affiliated with or endorsed by the Freedoom project.
Requires Pragtical with LuaJIT. The release packages include both engines for Linux and macOS (x86_64 and aarch64) and Windows (x86_64).
In Plugin Manager, search for Freedoom for Pragtical and install it. The installation includes the Lua plugin, the native libraries and resources for your platform, and the two Freedoom campaigns plus FreeDM.
For a manual install, copy the matching release checkout into USERDIR/plugins/freedoom/ with init.lua at its root. Extract your platform archive and the shared freedoom-iwads-0.13.0.zip into that directory. Restart Pragtical after installing or replacing the native libraries.
Run Freedoom: Open from the command palette to start the configured campaign in Woof. Press Esc and choose New Game.
Use Freedoom: Select Game to open FreeDM or another supported IWAD in Woof. Put legally obtained IWADs directly in the plugin's iwads/ directory. See that guide for supported games and filenames. For a collection outside the plugin that survives upgrades, set Additional IWAD Directory in the plugin settings. The bundled games stay available.
These are the default Woof controls; Odamex has its own in-game bindings.
F12 pauses single-player but does not pause multiplayer. Switching tabs or losing focus also releases input. When mouse capture is unavailable, left-click fires and right-drag turns. Quitting from the game closes the tab.
Use Freedoom: Restart to restart the current game, or Freedoom: Toggle Filter to switch between smooth and crisp scaling.
Woof
Run Freedoom: Multiplayer. Choose an installed game, player name, and UDP port (2342 by default).
Woof supports co-op and deathmatch for up to four players. Compatible Chocolate Doom and Crispy Doom servers also work; Deathmatch 3.0 requires Woof. Players need matching game data, and games cannot be joined after launch. Woof will try a matching installed IWAD when the host identifies one, but does not download missing files. Press T in-game to chat; the waiting room has no chat. Closing the host's game tab ends the session.
Run Freedoom: Odamex Multiplayer to Browse Servers, join by address, or Start Offline. Use Odamex's in-game controls for chat and spectating. Server passwords are not saved. Freedoom: Open still uses Woof.
Install the server's IWAD locally before joining. Odamex WAD Downloads is off by default; enable it to let Odamex fetch eligible add-on WADs and reconnect. It does not download commercial IWADs. Use trusted servers and mods: the engines parse WADs inside the editor process, so a native crash can also crash Pragtical.
Open Settings > Plugins > Freedoom to choose a default campaign or player name, change display and mouse settings, or set a save directory. Changes to the campaign, sound, and save directory require Freedoom: Restart.
New installs store saves and engine settings by engine and game under USERDIR/storage/freedoom/. An existing local state/ directory is still used unless you set Save Directory.
The engines render to fit the tab. Lower Resolution Scale to reduce rendering cost. In Woof, Options > General > Video > True Color toggles RGB lighting and is on by default. For a smaller Odamex HUD, open Options > Display Options > Heads-up display and disable Scale status bar or Scale HUD elements. Use Pragtical's fullscreen controls for either engine.
Sound effects and MUS/MIDI music play through Pragtical. Digital music tracks are not supported in the Odamex integration.
See the development guide for building, testing, and packaging the plugin.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。
