D2Engine
D2Engine is a port of Descent II for Windows 10 Mobile and PC with touch controls and keyboard and mouse support.
- Type: PC port
- Game: Descent 2
- Runs on Windows
- By AstrohackerML
- Latest release v0.3.4, 2026-10-30
- Source: https://github.com/AstrohackerML/Descent2-WinMobile
README
D2Engine: Descent II for Windows 10 Mobile
D2Engine is a source port of the original DOS/Windows game "Descent II" for Windows 10 Mobile phones (UWP, ARM), tested on the HP Elite x3. It is based on the Android port. You will need the game files from a licensed copy of Descent II in order to play.
What works: the full game with touch controls, the on-screen keyboard for pilot and save names, sound effects, movies with sound and MIDI music. The same app also runs on a Windows 10/11 PC (x64) with the keyboard and the mouse.
Not yet: Redbook (CD) music, the gyroscope, multiplayer.
Licence
GPLv3, with an exception for the original Parallax code, which may be used for non-commercial purposes only. Please see "COPYING" and "GPL-3".
D2Engine is an unofficial project, not affiliated with Interplay or Parallax Software. Descent is a trademark of Interplay Entertainment; the name is used here only to say which game the engine plays.
Installing
The easiest way is the Microsoft Store: D2Engine, for Windows 10 Mobile phones and Windows 10/11 PCs. On a phone the Store web page may not open the app; search for D2Engine in the Store app, or install it from My Library if you have got it on a PC with the same Microsoft account.
To install it by hand, download the latest release from the Releases page. It has two archives: D2Engine-<version>-ARM.zip for the phone and D2Engine-<version>-x64.zip for a PC. The Store version and this one are separate apps, each with its own copy of the game files and its own saves.
On the phone
Unpack D2Engine-<version>-ARM.zip. It contains:
Descent2_<version>_ARM.appx– the gameDescent2.cer– the certificate the package is signed withDependencies/–Microsoft.VCLibs.ARM.14.00.appx(the C++ runtime) andMidiVoices.appx(the General MIDI sound set for the music)
- Turn on developer mode: Settings → Update & security → For developers → Developer mode.
- Copy the unpacked folder to the phone (over USB, to the phone storage or the SD card).
- In File Explorer, open
Descent2.cerand install the certificate. - Open
Microsoft.VCLibs.ARM.14.00.appxandMidiVoices.appxfromDependenciesand install them. If the phone says one is already installed, skip it. - Open
Descent2_<version>_ARM.appxand install it.
With the phone connected over USB and developer mode on, WinAppDeployCmd from the Windows 10 SDK can also install it from a PC (install the certificate on the phone first, as above):
WinAppDeployCmd install -file Dependencies\MidiVoices.appx -ip 127.0.0.1
WinAppDeployCmd install -file Descent2_<version>_ARM.appx -ip 127.0.0.1 -dependency Dependencies\Microsoft.VCLibs.ARM.14.00.appx
On a PC
The x64 build runs on Windows 10 and 11 PCs. Unpack D2Engine-<version>-x64.zip. It contains:
Descent2_<version>_x64.appx– the gameDescent2_<version>_x64.cer– the certificate the package is signed withDependencies/–x64/Microsoft.VCLibs.x64.14.00.appx(the C++ runtime) andMidiVoices.appx(the General MIDI sound set for the music)Add-AppDevPackage.ps1– the Visual Studio script that installs all of it
- Right-click
Add-AppDevPackage.ps1and choose Run with PowerShell. The script installs the certificate (Windows asks for administrator rights once), then the dependencies and the game. - If PowerShell refuses to run the script, right-click it → Properties → Unblock, or turn on developer mode (Windows 11: Settings → System → For developers; Windows 10: Settings → Update & security → For developers) and run it again.
- Start D2Engine from the Start menu.
To remove it, uninstall D2Engine from the Start menu or Settings → Apps.
Required Game Data
The app does not contain any game data. Only the PC data files are supported. The following files are needed:
- alien1.pig
- alien2.pig
- descent2.ham
- descent2.hog
- descent2.s22 -or- descent2.s11
- fire.pig
- groupa.pig
- ice.pig
- water.pig
The movies (intro-h.mvl or intro-l.mvl, other-h.mvl or other-l.mvl, robots-h.mvl or robots-l.mvl) are optional.
Copy the files to a folder on the phone; on a PC the folder of the game itself will do (for example the Descent II folder of GOG or Steam). On first launch the game asks for that folder (subfolders are searched too) and copies the data files into its own storage, lowercasing the names. If files are missing, it lists them and lets you pick another folder; files already copied are kept, so the data can come from more than one folder.
Controls
On every launch the game asks how you will play: with the touch screen or with the keyboard and the mouse, whatever the device (a tablet, a phone with a Bluetooth keyboard and mouse, a PC). A new pilot always gets the mouse as the control type, so there is no control menu to go through.
With the touch screen the controls are those of the Android port. Taps outside the controls act as the mouse in menus and briefings. The hardware Back button acts as Escape.
With the keyboard and the mouse the game takes them as the original did, and the touch controls stay hidden. Keys go by their position (scan codes), so the keyboard layout does not matter. The default keys are W and S to fly forward and back, A and D to slide left and right, Q and E to bank, Left Shift for the afterburner; pilots made with the old defaults (A and Z) move to these, unless their keys were changed. While flying the mouse steers as in shooters (pushing it away lifts the nose; Pitch U/D invert in Options → Controls → Customize Mouse brings back the flight stick of the original), its buttons fire and its pointer is hidden; in menus it is the pointer again. Esc also skips movies. On a PC a narrow window does not turn the picture.
Building
The project is Descent2-WinMobile.sln with the UWP app in winmobile/. It needs:
- Visual Studio 2017 with the Universal Windows Platform workload and the VC++ 2017 version 15.7 v14.14 toolset: the last one with a 32-bit ARM compiler. The project pins it with
VCToolsVersion. - Windows 10 SDK 10.0.19041 with the Microsoft General MIDI DLS for Universal Windows Apps extension SDK.
Packages are signed with winmobile/Descent2_TemporaryKey.pfx, which is not part of the repository. Make your own self-signed one with the publisher CN=AstrohackerML (the one in Package.appxmanifest), or change the publisher to match yours.
MSBuild Descent2-WinMobile.sln -p:Configuration=Release -p:Platform=ARM -p:UapAppxPackageBuildMode=SideloadOnly -p:AppxBundle=Never
The package and its dependencies end up in AppPackages/Descent2/.
For a PC
The sideload build above with -p:Platform=x64 makes the PC package. It ends up in AppPackages/Descent2/ too, with Add-AppDevPackage.ps1, which installs it.
Store build
The Microsoft Store version is built from the same code and has its own manifest, winmobile/Package.Store.appxmanifest, with the Partner Center identity. StoreBuild=true switches to it and to the Store signing key winmobile/D2Engine_StoreKey.pfx (not in the repository; its subject must be the Partner Center publisher), and builds in separate folders:
MSBuild Descent2-WinMobile.sln -p:Configuration=Release -p:Platform=ARM -p:StoreBuild=true -p:UapAppxPackageBuildMode=StoreUpload -p:AppxBundle=Always "-p:AppxBundlePlatforms=ARM|x64" -p:AppxPackageDir=<repo>\AppPackages\Store\
This writes the .appxupload for Partner Center to AppPackages/Store/, with the phone (ARM) and PC (x64) packages. The store listing texts and submission notes are in store/listing.md.
How it is put together
- The game renders with the OpenGL ES 1.x subset of the Android port.
winmobile/gles_d3d11.cppemulates it on Direct3D 11 and turns the frame to the phone's portrait panel itself. - The Android sound code (
main/android/digi.c, movie audio inlibmve/mveplay.c) runs unchanged on an OpenSL ES subset written on XAudio2 (winmobile/opensl_xaudio2.cpp). - Music: the game's HMP songs are converted to MIDI and played on the Windows General MIDI synthesizer (
winmobile/music.cpp). winmobile/App.cppis the app shell: window, touch, keyboard, data setup.
Issues and Limitations
Please see the "Issues" section in GitHub.
Special Thanks
- Devin Tuchsen