Source code of HexGL, the futuristic HTML5 racing game by Thibaut Despoulain
- Master - Public release (stable).
Unless specified in the file, HexGL's code and resources are now licensed under the MIT License.
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.
The development of HexGL is in a hiatus for now until I find some time and interest to work on it again. That said, feel free to post issues, patches, or anything to make the game better and I'll gladly review and merge them.
=========
Unless specified in the file, modified by LGE code and resources are now licensed under the MIT License.
You can play the game using LG TV MRCU(Magic Remote Control Unit)
There are two ways:
Handhold mode, which uses the MRCU in the direction of the screen,
and Steering Wheel mode, which uses the MRCU parallel to the screen and rotates it like a steering wheel.
- webOS24 latest version and higher
- MRCU pairing
Clone the repository and cd into the cloned directory.
git clone https://github.com/webOS-TV-app-samples/HexGL.git
cd com.game.app.hexgl
The 'service' and 'controller' folders under 'bkcore > hexgl' contain sample codes.
Like following example, marked as 'Modified by LGE', is revision code for sample code by the LGE.
/******************** Modified by LGE ***********************/
// Create MrcuService instance
this.mrcuService = new bkcore.hexgl.MrcuService();
/************************************************************/
Package this project and install it on TV.
https://webostv.developer.lge.com/develop/tools/cli-dev-guide#ares-package
https://webostv.developer.lge.com/develop/tools/cli-dev-guide#ares-setup-device
https://webostv.developer.lge.com/develop/tools/cli-dev-guide#ares-install
When creating a package file (.ipk), use the '--no-minify' option of the ares-package command to omit the minifying task.
https://webostv.developer.lge.com/develop/tools/cli-dev-guide#package-the-web-app-without-minifying
If you want to see details about the MRCU Service API, please refer to this url.
Magic-Remote : https://webostv.developer.lge.com/develop/references/magic-remote
Ble-Gatt : https://webostv.developer.lge.com/develop/references/ble-gatt