/dogfight-sandbox-hg2

Air to air combat sandbox, created in Python 3 using the HARFANG 3D 2 framework.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Dogfight 2 (Air to air combat Sandbox)

Air to air combat sandbox, created in Python 3 using the HARFANG 3D 2 framework.

The game features :

  • 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.

How to run Dogfight

  1. Download the most recent release (dogfight-sandbox-hg2-win64.7z)
  2. Unzip it
  3. run start_game.bat

(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.

Network mode overview

The "Network" mode allows you to control the planes from a third party machine.

Startup:

  1. On the server machine:

    • Start the DogFight SandBox (start.bat file)
    • Choose the Network mode mission
      ServerID
    • Note the IP and port number of the server, in the upper left corner of the screen ServerID
  2. On the client machine:

    • Make sure you have a version of python 3 installed

    • Copy the content of the directory network_client_example.

    • Open the file client_sample.py with a text editor.

    • Enter the server ids in the "df.connect ()" function.
      ServerID

    • Start the file client_sample.py

Contributors

  • Code & design:
    • Eric Kernin
  • 3D graphics:
    • Jean-Marie Lamarche
    • Bruno Lequitte
  • Technology & design advisory:
    • Muhammet Aksoy
    • Pr. Emre Koyuncu
    • Michel Nault
    • Muhammed Murat Özbek
    • Thomas Simonnet

Screenshots

screenshot

screenshot

screenshot

screenshot

screenshot

screenshot