Demo of integrating a Godot HTML5 exported game with its host page.
Go to file
Dorian Pula 4bf15fdd97
continuous-integration/drone/push Build is passing Details
Implement a basic clicker game.
2020-12-17 10:55:29 -05:00
.drone.yml Attempt to resolve issue with mc cp in drone ci. 2020-12-16 22:41:10 -05:00
.gitignore Fix issue with drone ci build. 2020-12-16 22:31:51 -05:00
Game.gd Implement a basic clicker game. 2020-12-17 10:55:29 -05:00
Game.tscn Implement a basic clicker game. 2020-12-17 10:55:29 -05:00
LICENSE Initial commit 2020-12-14 08:43:08 -05:00
README.md Implement a basic clicker game. 2020-12-17 10:55:29 -05:00
default_env.tres Add initial godot setup. 2020-12-15 23:18:27 -05:00
export_presets.cfg Setup a basic custom HTML5 shell. 2020-12-16 23:17:25 -05:00
fixed-size.html Update the shell to handle names and scores via local storage. 2020-12-17 10:22:22 -05:00
icon.png Add initial godot setup. 2020-12-15 23:18:27 -05:00
icon.png.import Add initial godot setup. 2020-12-15 23:18:27 -05:00
kenpixel_future.ttf Implement a basic clicker game. 2020-12-17 10:55:29 -05:00
project.godot Simplify project setup. 2020-12-16 22:17:26 -05:00

README.md

godot-html-js-int-demo

Demo of integrating a Godot HTML5 exported game with its host page.

Uses a simple clicker game and a custom web shell to interact with the hosted page.

Working demo page

Setup

  • Requires Godot 3.2.x
    • Use OpenGL ES 2.0 to allow for the HTML5 export.

The custom JS and styling (outside of the fixed size template provided by the Godot devs) can be found between the <!-- Start of Custom Game block --> and <!-- End of Custom Game block --> comment codes in fixed-size.html.

Extra Notes

Credits