Skip to content

About

A smoother native port of Dungeon Rampage for Windows, Linux, and macOS, with modding support.

Topics

Resources

Stars

17 stars

Watchers

4 watching

Forks

Repository files navigation

Dungeon Rampage Haxe

Dungeon Rampage Haxe

A smoother native port of Dungeon Rampage for Windows, Linux, and macOS, with modding support.

Install and play

The recommended way to play DRH is DRH Launcher, which handles DRH installation, updates, and launch for you.

DRH Launcher also provides additional features such as mods, launch option presets, custom launch arguments, session history with logs and playtime, release history, and more.

See the DRH Launcher README for downloads and installation instructions.

You need to own the official Dungeon Rampage on Steam and keep Steam open while playing. Otherwise, DRH cannot connect to the official servers.

Why use DRH?

The official game can run poorly and suffer from input delay issues. DRH is a native build: it usually provides much better performance, especially in Quality mode, and avoids the input delay issue.

Like the official game, restarting before each new party is recommended because performance can degrade over time.

Mods

DRH runs mods. Install them from the Mods page of DRH Launcher: it lists the mods of the DRH Mods Index, each reviewed before it is listed, installs what they need, and keeps them updated.

To make one, start with Making a mod; share ideas and ask questions on the Discord server. The design is in docs/modding.md.

Community

Join the Discord server to discuss DRH and DRH Launcher, get update notifications, and see occasional previews.

Technical overview

DRH is a port of Dungeon Rampage from AS3/AIR (see Dungeon Rampage Decompiled) to Haxe. It uses OpenFL, a graphical library that reimplements Flash/AIR APIs with native targets and modern tooling.

This project required months of work, most of it in the following open-source projects:

Build from source

The project depends on forked versions of OpenFL, Lime, SWF, libhxcpp, SteamWrap, and hxScript, which are included as Git submodules.

Requirements

Install the regular haxelib dependencies:

haxelib install format
haxelib install hxp

Clone the repository

git clone --recurse-submodules https://github.com/Tutez64/Dungeon-Rampage-Haxe
cd Dungeon-Rampage-Haxe

If you cloned without --recurse-submodules, initialize the submodules afterwards:

git submodule update --init --recursive

Register the submodules with haxelib

The build resolves these libraries through haxelib. haxelib dev is required, and it is global: two checkouts share one link. Run the commands from the repository root:

haxelib dev lime submodules/lime
haxelib dev openfl submodules/openfl
haxelib dev swf submodules/swf
haxelib dev steamwrap submodules/SteamWrap
haxelib dev libhxcpp submodules/libhxcpp
haxelib dev hxcpp submodules/libhxcpp
haxelib dev hxscript submodules/hxscript

libhxcpp is registered under its own name and as hxcpp, as its setup does.

Lime depends on libraries of its own. Install the versions its haxelib.json names:

haxelib install submodules/lime/haxelib.json

Rebuild helper tools

haxelib run lime rebuild hxcpp
haxelib run lime rebuild cpp -debug
haxelib run lime rebuild tools
haxelib run lime rebuild swf

SteamWrap:

cd submodules/SteamWrap
./setup.sh # .bat on Windows
./build # .bat on Windows
cd ../..

Build the game

Lime reads generated_swf_libraries.xml when it parses project.xml, so regenerate it before a cpp build (it lists Resources/**/*.swf plus the preload/generate rules in edits/swf_libraries/).

The first native (cpp) build exports SWF fonts with JPEXS FFDec (Java 8+). Set FFDEC_HOME, put ffdec on PATH, or keep jpexs-decompiler next to this repo. Later builds reuse bin/obj/ffdec_fonts/.

From the repository root:

haxe edits/swf_libraries/generate.hxml
haxelib run openfl build project.xml cpp

For a debug build, append -debug.

Replace build with test if you want the game to launch automatically after compiling.

Since V16, as in the official game, the frame rate is set in the game's options (Display, FPS). Its default is the main screen's refresh rate, or 120 FPS when that is unknown. Earlier native builds accept --fps auto or --fps <value> instead, which DRH Launcher sets for them.

License and disclaimer

Dungeon Rampage Haxe is an unofficial, fan-made project and is not affiliated with, endorsed by, sponsored by, or authorized by the developers, publishers, or other rights holders of Dungeon Rampage.

Dungeon Rampage and all original game code, assets, artwork, audio, characters, trademarks, and other intellectual property belong to their respective rights holders.

The GNU General Public License v3.0 or later included in this repository applies only to original code and modifications created by Dungeon Rampage Haxe contributors, to the extent that they hold the necessary rights. It does not grant any rights to material originating from Dungeon Rampage or from other third parties. Third-party components remain governed by their respective licenses.

About

A smoother native port of Dungeon Rampage for Windows, Linux, and macOS, with modding support.

Topics

Resources

Stars

17 stars

Watchers

4 watching

Forks

Releases

Contributors

Languages