diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..7f3201a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,21 @@ +--- +kind: pipeline +type: docker +name: godot-html-js-int-demo + +steps: + - name: build-game + image: barichello/godot-ci:3.2 + commands: + - mkdir -v -p web-export + - godot -v --export "HTML5" ./web-export/ + + - name: upload-site + image: minio/mc + environment: + MC_HOST_linode: + from_secret: linode-obj-host + commands: + - mc cp web-export/* linode/games-birch-tree-net/godot-html-js-integration-demo + depends: + - build-game diff --git a/.gitignore b/.gitignore index 822b784..e838db3 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ # Godot-specific ignores .import/ export.cfg -export_presets.cfg # Imported translations (automatically generated from CSV files) *.translation @@ -11,3 +10,6 @@ export_presets.cfg .mono/ data_*/ +.idea/ + + diff --git a/default_env.tres b/default_env.tres new file mode 100644 index 0000000..20207a4 --- /dev/null +++ b/default_env.tres @@ -0,0 +1,7 @@ +[gd_resource type="Environment" load_steps=2 format=2] + +[sub_resource type="ProceduralSky" id=1] + +[resource] +background_mode = 2 +background_sky = SubResource( 1 ) diff --git a/export_presets.cfg b/export_presets.cfg new file mode 100644 index 0000000..9a40a76 --- /dev/null +++ b/export_presets.cfg @@ -0,0 +1,22 @@ +[preset.0] + +name="HTML5" +platform="HTML5" +runnable=true +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="" +patch_list=PoolStringArray( ) +script_export_mode=1 +script_encryption_key="" + +[preset.0.options] + +vram_texture_compression/for_desktop=true +vram_texture_compression/for_mobile=false +html/custom_html_shell="" +html/head_include="" +custom_template/release="" +custom_template/debug="" diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..2e42096 Binary files /dev/null and b/icon.png differ diff --git a/icon.png.import b/icon.png.import new file mode 100644 index 0000000..96cbf46 --- /dev/null +++ b/icon.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.png" +dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..a0a4c27 --- /dev/null +++ b/project.godot @@ -0,0 +1,29 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} + +[application] + +config/name="html-js-demo" +config/description="Demo of integrating HTML + JS + Godot together" +config/icon="res://icon.png" + +[rendering] + +quality/driver/driver_name="GLES2" +quality/2d/gles2_use_nvidia_rect_flicker_workaround=true +quality/2d/use_pixel_snap=true +vram_compression/import_etc=true +vram_compression/import_etc2=false +environment/default_environment="res://default_env.tres" diff --git a/scenes/main/Main.tscn b/scenes/main/Main.tscn new file mode 100644 index 0000000..70a653e --- /dev/null +++ b/scenes/main/Main.tscn @@ -0,0 +1,3 @@ +[gd_scene format=2] + +[node name="Main" type="Node2D"]