From 7250703e3c20b0e9f7a68f252ece56d44a602e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Pu=C5=82a?= Date: Tue, 15 Dec 2020 23:18:27 -0500 Subject: [PATCH] Add initial godot setup. --- .drone.yml | 21 +++++++++++++++++++++ .gitignore | 4 +++- default_env.tres | 7 +++++++ export_presets.cfg | 22 ++++++++++++++++++++++ icon.png | Bin 0 -> 3446 bytes icon.png.import | 34 ++++++++++++++++++++++++++++++++++ project.godot | 29 +++++++++++++++++++++++++++++ scenes/main/Main.tscn | 3 +++ 8 files changed, 119 insertions(+), 1 deletion(-) create mode 100644 .drone.yml create mode 100644 default_env.tres create mode 100644 export_presets.cfg create mode 100644 icon.png create mode 100644 icon.png.import create mode 100644 project.godot create mode 100644 scenes/main/Main.tscn 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 0000000000000000000000000000000000000000..2e42096c9664f3c8f496ec964d9989c551bda910 GIT binary patch literal 3446 zcmV-+4TPx?FiAu~RCt`_n|*LpRhGbi@4fy^r_<@qSBE5oKu7{X5`iTmW)J~kqQqHu6_6>% z)j^lpMQ7Nl9cC7)tlb(|rWj|-vDDQCbOliXm%-6RanT_Hf_zJWKtd8oNIHRZKDs;o z{q~R0F(KWZZqh-}UsYFk^}X-hd(OM>+;h*pPoNKR=CP!Wn^-K1!jo~LdLFVo0?=`L zV@D7!JN&L)f?wWXIdk&3qxpPqp%D0yI{pV5tuf_AomTx6AbuM?y$Sg3-LCcB*4AfR zPVaTXH3K9~oS{xh$=EFllp+WyRT>m34T7XV5QOj|Z*gQ?RV>)vxf)6M+!`!uR0r2k4{g2oZ<}hSlLE>UGST zR!mN2+MsoFGR@4IR!pLP_`;7qy2cONZBI=~r2M`TN+%amkdxWl==Rj) z51-<{|Fnn7^Yt<5r`_5DKukw~L9gQvE0%zyWZPE_e0cIQEuGHZ@vK#E zF#FoGyXckuSRL*Gi{6dWZ<4jcF0Y*~6Yv!@la{gZt$>vK#E;OKS%pjAm&9l`7DJl4p=lQa3_zx;i_|JxmIb{=aC zDO;Fw^dg^Z}oAFoFU9nSb>594|gHdhi zqV9^Fe_i%t?wXj-+V$J$cDl(*PvPf}KSb%|LI8GrdVtlhy%(|Eh~t1K{(3e)Tl4^% z57gms`&c|J8>I;E{%-{(6Z07}GM%>%)bq}vdb~dQ#x)ItLK0b6GLpyc%BJ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SnY0- z;?;C?d$4pmvAevq*<9FNKJ0EUSGrt$aV~hOt1!dBh(s+LkDiWHt;jb=HEI=qdTA9F zho9wJj^U3q<#Lk{1%Ve9-AQVkz>ogn-*CD;Ve3b zsYOBH7jyF|NKath#`gzRzAsTtgS+=1V`O>?&n);Mk|^-P$7hFaD?CyZlE6RBEnw!j zG+uq@BR<`KJi6dC5FPE}vz?ulb~cXJCoMU3i zy<>Rdp3!u)x3lWSO? zKU(B(f;gK9Gy%xI=pD)JN*`S>i*~1H7l79j+e65=G67xfF5AbV2pa&u*VT>xdoT+8 zJ}+KZH-KLf#r2ZQ?QK@+ld_ZwX_C+5MpCK}f+Rk^3;2CroVE^R*^j;3wZ7&2sn;d1 z?J62W(kI$@!wh6O+v|3M-;W@OAc(j9+oOS3XFW~_u5KI1e*6d(wyTYc+AkdUeeYkM z?oGAWTkE|ZkM{$0Qu0oZ;P)s+g$d9Ax6kpg;Mfs_dWY-H_4e9hz0U6c Y0Sb~ou*ArFkN^Mx07*qoM6N<$f_ntYg8%>k literal 0 HcmV?d00001 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"]