Add initial godot setup.

This commit is contained in:
Dorian 2020-12-15 23:18:27 -05:00
parent e5c57c7af5
commit 7250703e3c
8 changed files with 119 additions and 1 deletions

21
.drone.yml Normal file
View File

@ -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

4
.gitignore vendored
View File

@ -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/

7
default_env.tres Normal file
View File

@ -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 )

22
export_presets.cfg Normal file
View File

@ -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=""

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

34
icon.png.import Normal file
View File

@ -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

29
project.godot Normal file
View File

@ -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"

3
scenes/main/Main.tscn Normal file
View File

@ -0,0 +1,3 @@
[gd_scene format=2]
[node name="Main" type="Node2D"]