Air to air combat sandbox, created in Python 3 using the HARFANG 3D 2 framework.
The game features :
- VR (on any SteamVR compatible headset)
- Ocean / terrain shader
- Skydome shader
- Clouds
- Autopilot (Take-off, landing, fight)
- Network mode
The source code and the graphics assets are made available for studying purpose. However, you are free to fork this repository, extend the game or release anything that is based on it.
- Download the most recent release (dogfight-sandbox-hg2-win64.7z)
- Unzip it
- run start.bat
- Select a scenario using the
right
andleft
keys- Press
space
if you want to control the aircraft using the keyboard - Press the
start
button of the gamepad or the joystick depending on the device you want to use - If you press the
start/fire
button on the gamepad, the Sandbox will automatically define this controler as the input device of the aircraft (see Aircraft keyboard Commands below for the details of the keyboard inputs)
- Press
(If you want to run the sandbox from the cloned repository, you will need to copy the Python and HARFANG binaries as well as the other modules in the bin folder). Follow the instructions detailled in the readme files found in each folder.
- VR works on Windows machines only, using the DirectX backend (set
"OpenGL": false
in the config.json file) - All the views are available in VR (exterior, interior). When using the cockpit view (
3
on the numpad), pressF11
to calibrate the position of the head - Requires SteamVR (1.22.x) at least
- Tested on the following headsets with success:
- LENOVO VR Explorer
- HTC Vive Pro
- Meta Quest 2 (in Oculus Link mode)
The "Network" mode allows you to control the planes from a third party machine.
-
On the server machine:
-
On the client machine:
Command | Key |
---|---|
Increase thrust level | Home |
Decrease thrust level | End |
Increase brake level | B |
Decrease brake level | N |
Increase flaps level | C |
Decrease flaps level | V |
Roll left | Left |
Roll right | Right |
Pitch up | Up |
Pitch down | Down |
Yaw left | Suppr |
Yaw right | PageDown |
Switch post combustion | Space |
Next target | T |
Switch gear | G |
Activate IA | I |
Activate Autopilot | A |
Switch easy steering mode | E |
Fire machine gun | Enter |
Fire missile | F1 |
Increase health level | P |
Decrease health level | M |
Rearm | F5 |
HUD on /off | H |
Command | Key |
---|---|
Roll cameras carousel (aircrafts, FPS) | 1 |
Increase FoV angle | PageUp |
Decrease FoV angle | Insert |
Command | Key |
---|---|
Back view | 2 |
Front view | 2 |
Left view | 4 |
Right view | 6 |
Satellite view | 5 |
Tactical view | 7 |
Pursuit view | 9 |
Cockpit view | 3 |
Command | Key |
---|---|
Head orientation | LMB + mouse move |
Move forward | Up, Z |
Move backward | Down, S |
Move left | left, Q |
Move right | right, D |
Fast speed 1 | Left Shift + move |
Fast speed 2 | Left Ctrl + move |
Fast speed 3 | Right Ctrl + move |
- Keyboard
- XBox gamepad or any compatible model
- Logitech "Attack 3" Joystick
- Code, design, music / sfx:
- Eric Kernin
- 3D graphics:
- Jean-Marie Lamarche
- Bruno Lequitte
- Technology & design advisory:
- Muhammet Aksoy
- Pr. Emre Koyuncu
- Michel Nault
- Muhammed Murat Özbek
- Thomas Simonnet