Skip to content

webOS-TV-app-samples/HexGL

Repository files navigation

HexGL

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

Branches

  • Master - Public release (stable).

License

Unless specified in the file, HexGL's code and resources are now licensed under the MIT License.

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.

Note

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.

=========

HexGL by LG Electronics

License

Unless specified in the file, modified by LGE code and resources are now licensed under the MIT License.

Description

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.

Handhold Mode

help-mrcu0

Steering Wheel Mode

help-mrcu1

Requirements

  • webOS24 latest version and higher
  • MRCU pairing

How to Use the Samples

Clone the Repository

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

Sample Code modified by LGE

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();
/************************************************************/

App Package & Install

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

Luna Servcie API - MRCU Service

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published