Code Monkey home page Code Monkey logo

flight-club's Introduction

Flight Club

Introduction

A glider over the flatlands

Welcome to Flight Club, an online gliding simulator. The gliders look a bit like hang gliders. However, imagine them to be paragliders or sailplanes if you prefer; the same rules apply.

Thermals

Circling under a cloud

Cumulus clouds are fed by bubbles of warm rising air, called thermals. By using thermals, glider pilots are able to fly long distances. When you fly into a thermal you should circle to stay in the lift and climb upto cloud base.

Your vario will start beeping when you are in a thermal.

Ridge Lift

Gliders ridge soaring

Hills produce lift as the wind flows over them. A glider may ridge soar by flying back and forth in the rising air in front of the hill.

Glider pilots also like hills because they function as reliable thermal triggers.

Your mission

A cloud street

Race against the other gliders; the finish line is 100km away to the north.

A note on navigation: To find the finish line, simply follow the road that runs north. You have a compass at the bottom right of the applet.

Points of View

Press <3> for the plan view

Drag the mouse to rotate the camera position. You may switch between points of view using the number keys...

<1> focus on your glider
<2> watch the gaggle
<3> the view from 5,000 meters above
<4> the view from 8km away to the south east

Try pressing <p> to pause the action and then switch between the different points of view.

Dragging the mouse whilst the action is paused gives a cool 'bullet time' effect.

Build Instructions

This project is now using the gradle build system. To build the project run the following command from the command line:

$ ./gradlew build

Use ./gradlew run to run the game afterwards.

Coding Style

For a general coding style guide, where better to look than the horses mouth ? Look for some classes that interest you and study them carefully. The author of this document finds Date.java, written by James Gosling, a good read.

Code that is not well commented is probably not well thought out.

Here are some conventions used in Flight Club:

float[] p; // a point whose x, y and z co-ords are (p[0], p[1], p[2])
float[] _p; // the previous value of p
float[] p_; // the co-ords of p after applying a transformation, T
float[] dp; // a small change in p, say p(tN) - p(tN-1) where tN is
the time of the Nth frame and p(t) is the path of a particle
float[][] ps; // a list of points {{x0, y0, z0}, {x1, y1, z1}, ...}
float[] ps; // a flattened list of points {x0, y0, z0, x1, y1, z1, ...}

Author

Created by Dan Burton [email protected], 22 Aug 2002

flight-club's People

Contributors

turbo87 avatar hngdog avatar scottec avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.