diff --git a/README.md b/README.md index 02448e0..b3c88a0 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Source code of [HexGL](http://hexgl.bkcore.com), the futuristic HTML5 racing gam ## License -Unless specified in the file, HexGL's code and resources are licensed under the *Creative Commons Attribution-NonCommercial 3.0 Unported 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/. @@ -19,6 +19,8 @@ If you feel like you deserve another license for a special case, [drop me a note 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! @@ -28,4 +30,4 @@ There will also be some refactoring, when I get some time :P 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. \ No newline at end of file +Feel free to post issues, patch or anything to make the game better. diff --git a/game.html b/game.html deleted file mode 100644 index 418247d..0000000 --- a/game.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - HexGL dev page - - - - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/index-mobile.html b/index-mobile.html new file mode 100644 index 0000000..42522c3 --- /dev/null +++ b/index-mobile.html @@ -0,0 +1,304 @@ + + + + HexGL + + + + + + + + + + +
+ + + + + +
QUALITY: SD
CONTROLS: TOUCH
START
+
+
+
+
+
Loading...
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/index.html b/index.html index 42522c3..1f0ac20 100644 --- a/index.html +++ b/index.html @@ -1,304 +1,116 @@ - - - HexGL - - - - - - - - + + + HexGL dev page + + + + + - -
- - - - - -
QUALITY: SD
CONTROLS: TOUCH
START
-
-
-
-
-
Loading...
-
-
+ +
+
- - - - - - - - - - + + + + + + + + + + - - + + - - - + + + - - - - + + + + - - - - - - + + + + + + - + - + - - function restart() { - /*titles.style.display = "block"; - gameover.style.display = "none";*/ - location.reload(false); - } - - function start() { - - controls1.style.display = "none"; - controls2.style.display = "none"; - container.style.display = "block"; - loading.style.display = "block"; - - quality = q < 2 ? 0 : 1; - half = q < 1; - - hexGL = new bkcore.hexgl.HexGL({ - document: document, - width: SCREEN_WIDTH, - height: SCREEN_HEIGHT, - container: container, - overlay: overlay, - gameover: gameover, - quality: quality, - track: 'Cityscape', - hud: false, - half: half, - mobile: true, - controlType: c, - godmode: true - }); - - hexGL.load({ - onLoad: function(){ - console.log("ALL LOADED."); - hexGL.init(); - loading.style.display = "none"; - hexGL.start(); - }, - onError: function(s){ - console.log("ERROR ON "+s+"."); - }, - onProgress: function(p, t, n) - { - console.log("LOADED "+t+" : "+n+" ( "+p.loaded+" / "+p.total+" )."); - } - }); - } - - //init(); - - - - + diff --git a/manifest.webapp b/manifest.webapp index 19cd2f9..59ec357 100644 --- a/manifest.webapp +++ b/manifest.webapp @@ -1,7 +1,7 @@ { "name": "HexGL", "description": "HexGL v1.0.1-ffos", - "launch_path": "/index.html", + "launch_path": "/index-mobile.html", "icons": { "32": "/icon_32.png", "64": "/icon_64.png", @@ -15,4 +15,4 @@ "installs_allowed_from": ["*"], "default_locale": "en", "orientation": ["landscape"] -} \ No newline at end of file +}