jkuziel / heligun

3D helicopter shooter with raytraced terrain for Emscripten

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:C 72.4%Language:GLSL 15.3%Language:C++ 9.7%Language:Makefile 1.7%Language:Shell 0.8%