Elliot Smith 78a100c99e Merge platform+quality into a single quality value
Added another quality setting (VERY HIGH) and mapped all
combinations of platform + the old quality value to the new
4 value quality option, as follows:

desktop + mid/high quality => 3
mobile + high quality => 2
mobile + mid quality, desktop + low quality => 1
mobile + low quality => 0

All choice points in the code which enabled/disabled
graphics features, based on platform + quality,
were mapped onto a table. This showed which features were
disabled or enabled depending on the platform/quality
combination.

It turned out that mid and high quality resulted in the same
settings on desktop, so they could be captured in a single
value (3).

The only change made to the decision points was that desktop +
low quality previously turned off the booster lighting effect,
whereas that effect is now on for desktop + low quality. This was
done so that mobile + mid quality was equivalent to
desktop + low quality.

By doing this, the "mobile" property can be removed. I also
removed the "half" property, and set it based on quality in the
HexGL class (basically, it's enabled for mobile + low quality,
which is new quality value 0).
2014-05-30 12:27:24 +01:00
2012-10-05 15:10:45 +02:00

HexGL

Source code of HexGL, the futuristic HTML5 racing game by Thibaut Despoulain

Branches

  • Master - Public release (stable), same version as on the website.
  • Dev - Latest revisions (highly unstable).

License

Unless specified in the file, HexGL's code and resources are licensed under the Creative Commons Attribution-NonCommercial 3.0 Unported License.

To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/3.0/.

If you feel like you deserve another license for a special case, drop me a note, and we'll talk about it.

Installation

cd ~/
git clone git://github.com/BKcore/HexGL.git
cd HexGL
python -m SimpleHTTPServer
chromium index.html

To use full size textures, swap the two textures/ and textures.full/ directories.

Regarding the code

As of now the code is pretty much raw and undocumented. I'll be commenting it someday, but that won't be until I've finished the next content update and code refactoring sorry! There will also be some refactoring, when I get some time :P

Note

After much thinking, I've decided to release HexGL's source code under CC 3.0 BY-NC until further notice. This is not a definite choice, and the game may end up under the MIT license someday.

Feel free to post issues, patch or anything to make the game better.

S
Description
Source code of HexGL, a futuristic HTML5 racing game
Readme MIT 39 MiB
Languages
JavaScript 79%
HTML 12.2%
CoffeeScript 5.6%
CSS 3.2%