Skip to content

3D helicopter shooter with raytraced terrain for Emscripten

License

Notifications You must be signed in to change notification settings

jkuziel/heligun

Repository files navigation

heligun

3D helicopter shooter with raytraced terrain for Emscripten

Copyright (c) 2016 Joseph Kuziel

Description

Heligun is a game based on the Comanche series by NovaLogic. The player takes control of an attack helicopter to complete missions and battle with other attack helicopters.

The terrain is generated using a similar technique found in Comanche where a ray is cast from the viewpoint to a heightmap as an alternative to vectorized graphics which were computationally expensive in 1992 (http://simulationcorner.net/index.php?page=comanche). Heligun uses raymarching to draw the terrain which is run on the GPU in parallel for each pixel.

Controls

Key Command
w Pitch forward
s Pitch back
a Roll left
d Roll right
i Increase throttle
k Decrease throttle
j Yaw left
l Yaw right

License

MIT

See LICENSE for more information

Languages

  • C
  • GLSL

Dependencies

Supported platforms

  • Web (Javascript / WebGL)
  • Native
    • Windows
    • Mac
    • Linux

Building

  • Emscripten
    • Add Emscripten SDK to your PATH (Bash: source ./<emscripten sdk>/emsdk_env.sh)
    • Run ./build_emscripten.sh
    • index.html, index.html.mem, index.data, index.js should be generated
    • Run python -m SimpleHTTPServer 8080 from heligun directory
    • Open http://localhost:8080 in your web browser

About

3D helicopter shooter with raytraced terrain for Emscripten

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published