Reimplementing Westwood’s Isometric Voxel and SHP Engine in C++17
Westwood Pacific’s Command & Conquer: Red Alert 2 (2000) and its expansion Yuri’s Revenge (2001) were built around a 32-bit Windows DirectDraw engine that blended 2D isometric terrain tiles and .shp infantry sprites with 3D .vxl (voxel) vehicles and .hva turret animations. Historically, playing Red Alert 2 on Android required running the legacy Windows executable inside x86 translation containers like Winlator or ExaGear, which struggled with DirectDraw surface locks and clumsy mouse emulation.
ra2-engine, created from scratch by developer omarelarab in modern C++17 and SDL2, eliminates x86 translation entirely by natively parsing Westwood’s proprietary archive and rules formats on 64-bit ARM Android and Windows. The engine reads original .mix archives, decompresses .tmp terrain sets, renders .shp structures and .vxl armored columns, and evaluates rules.ini / rulesmd.ini combat logic natively on mobile processors.
Importing Retail .mix Archives on Android
Because ra2-engine is a clean-room open-source engine implementation, the repository and APK releases contain zero copyrighted Electronic Arts or Westwood Studios assets:
- Install Command & Conquer: Red Alert 2 and Yuri’s Revenge on your PC via Steam (
The Ultimate Collection), the EA App, or original retail CD-ROMs. - Copy the game directory containing the core
.mixarchives (ra2.mix,ra2md.mix,language.mix,langmd.mix,local.mix,multimd.mix, and audio.mixfiles) to a folder on your Android device’s storage (for example,Download/RA2/). - Download and install the latest
ra2-engineAndroid APK from the official GitHub Releases page. - Launch the app, tap Import game files, and select your
RA2folder so the engine can index the.mixarchives for skirmish, campaign, and multiplayer modes.
High-DPI Widescreen Viewport Scaling and Low Thermal Overhead
Running natively via SDL2 hardware-accelerated rendering allows ra2-engine to scale the isometric battlefield cleanly to modern 16:9, 18:9, and tablet aspect ratios without the 16-bit color palette crashes common to legacy DirectDraw wrappers. Because all pathfinding, INI rule evaluation, and sprite blitting run as native arm64-v8a code, CPU utilization remains remarkably low. Entry-level and mid-range chipsets such as the Snapdragon 680, Snapdragon 778G, and MediaTek Dimensity series maintain smooth frame rates even when large Kirov Airship, Apocalypse Tank, and Prism Tank formations clash on 4-player and 8-player skirmish maps. Stock Qualcomm Adreno and ARM Mali GPU drivers work out of the box.
Touchscreen RTS Gestures and Bluetooth Mouse/Keyboard Support
Real-time strategy games live or die by unit selection and sidebar build speed. For standalone phone and tablet play, ra2-engine maps single-finger taps to unit selection and move/attack orders, drag gestures to box-selecting mixed tank and infantry squads, and two-finger pan/zoom gestures to battlefield camera navigation alongside the classic right-hand production sidebar. On Android tablets or external monitors, connecting a Bluetooth or USB-C mouse and keyboard restores traditional right-click scrolling and hotkey control groups.