From fa4d63110a3e12d0242b6e6ddcded74d04480f28 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Thu, 28 May 2026 20:16:38 -0400 Subject: Initial commit --- 2026/examples/godot/project/.editorconfig | 4 ++ 2026/examples/godot/project/.gitignore | 1 + 2026/examples/godot/project/export_presets.cfg | 49 +++++++++++++++++++++++++ 2026/examples/godot/project/hello.tscn | 24 ++++++++++++ 2026/examples/godot/project/icon.svg | 1 + 2026/examples/godot/project/icon.svg.import | 43 ++++++++++++++++++++++ 2026/examples/godot/project/main.gd | 16 ++++++++ 2026/examples/godot/project/main.gd.uid | 1 + 2026/examples/godot/project/output.zip | Bin 0 -> 6241 bytes 2026/examples/godot/project/project.godot | 31 ++++++++++++++++ 10 files changed, 170 insertions(+) create mode 100644 2026/examples/godot/project/.editorconfig create mode 100644 2026/examples/godot/project/.gitignore create mode 100644 2026/examples/godot/project/export_presets.cfg create mode 100644 2026/examples/godot/project/hello.tscn create mode 100644 2026/examples/godot/project/icon.svg create mode 100644 2026/examples/godot/project/icon.svg.import create mode 100644 2026/examples/godot/project/main.gd create mode 100644 2026/examples/godot/project/main.gd.uid create mode 100644 2026/examples/godot/project/output.zip create mode 100644 2026/examples/godot/project/project.godot (limited to '2026/examples/godot/project') diff --git a/2026/examples/godot/project/.editorconfig b/2026/examples/godot/project/.editorconfig new file mode 100644 index 0000000..f28239b --- /dev/null +++ b/2026/examples/godot/project/.editorconfig @@ -0,0 +1,4 @@ +root = true + +[*] +charset = utf-8 diff --git a/2026/examples/godot/project/.gitignore b/2026/examples/godot/project/.gitignore new file mode 100644 index 0000000..7c58247 --- /dev/null +++ b/2026/examples/godot/project/.gitignore @@ -0,0 +1 @@ +.godot/* \ No newline at end of file diff --git a/2026/examples/godot/project/export_presets.cfg b/2026/examples/godot/project/export_presets.cfg new file mode 100644 index 0000000..9d45cd8 --- /dev/null +++ b/2026/examples/godot/project/export_presets.cfg @@ -0,0 +1,49 @@ +[preset.0] + +name="Web" +platform="Web" +runnable=true +dedicated_server=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="../output/game.html" +patches=PackedStringArray() +patch_delta_encoding=false +patch_delta_compression_level_zstd=19 +patch_delta_min_reduction=0.1 +patch_delta_include_filters="*" +patch_delta_exclude_filters="" +encryption_include_filters="" +encryption_exclude_filters="" +seed=0 +encrypt_pck=false +encrypt_directory=false +script_export_mode=2 + +[preset.0.options] + +custom_template/debug="" +custom_template/release="" +variant/extensions_support=false +variant/thread_support=false +vram_texture_compression/for_desktop=true +vram_texture_compression/for_mobile=false +html/export_icon=true +html/custom_html_shell="" +html/head_include="" +html/canvas_resize_policy=2 +html/focus_canvas_on_start=true +html/experimental_virtual_keyboard=false +progressive_web_app/enabled=false +progressive_web_app/ensure_cross_origin_isolation_headers=true +progressive_web_app/offline_page="" +progressive_web_app/display=1 +progressive_web_app/orientation=0 +progressive_web_app/icon_144x144="" +progressive_web_app/icon_180x180="" +progressive_web_app/icon_512x512="" +progressive_web_app/background_color=Color(0, 0, 0, 1) +threads/emscripten_pool_size=8 +threads/godot_pool_size=4 diff --git a/2026/examples/godot/project/hello.tscn b/2026/examples/godot/project/hello.tscn new file mode 100644 index 0000000..f71ad9b --- /dev/null +++ b/2026/examples/godot/project/hello.tscn @@ -0,0 +1,24 @@ +[gd_scene format=3 uid="uid://cv48btpqtacm5"] + +[ext_resource type="Script" uid="uid://daenwy22luvh3" path="res://main.gd" id="1_p3r8j"] + +[sub_resource type="LabelSettings" id="LabelSettings_i7k7o"] +font_size = 30 + +[node name="Control" type="Control" unique_id=427036785] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_p3r8j") + +[node name="Label" type="Label" parent="." unique_id=341561866] +layout_mode = 0 +offset_left = 1.0 +offset_top = 22.0 +offset_right = 806.0 +offset_bottom = 159.0 +text = "hello from godot" +label_settings = SubResource("LabelSettings_i7k7o") diff --git a/2026/examples/godot/project/icon.svg b/2026/examples/godot/project/icon.svg new file mode 100644 index 0000000..c6bbb7d --- /dev/null +++ b/2026/examples/godot/project/icon.svg @@ -0,0 +1 @@ + diff --git a/2026/examples/godot/project/icon.svg.import b/2026/examples/godot/project/icon.svg.import new file mode 100644 index 0000000..40c9021 --- /dev/null +++ b/2026/examples/godot/project/icon.svg.import @@ -0,0 +1,43 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cxf3v8xhk65r2" +path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.svg" +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/2026/examples/godot/project/main.gd b/2026/examples/godot/project/main.gd new file mode 100644 index 0000000..051ee04 --- /dev/null +++ b/2026/examples/godot/project/main.gd @@ -0,0 +1,16 @@ +extends Node + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + JavaScriptBridge.eval("window.parent.postMessage({op: \"ready\"});") + +var started = false +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + if !started && JavaScriptBridge.eval("window.lcolonqJamStart || -1.0") > 0.0: + started = true + JavaScriptBridge.eval("window.parent.postMessage({op: \"started\"});") + +func _input(event) -> void: + if event is InputEventMouseButton: + JavaScriptBridge.eval("window.parent.postMessage({op: \"done\", win: true});") diff --git a/2026/examples/godot/project/main.gd.uid b/2026/examples/godot/project/main.gd.uid new file mode 100644 index 0000000..e004c01 --- /dev/null +++ b/2026/examples/godot/project/main.gd.uid @@ -0,0 +1 @@ +uid://daenwy22luvh3 diff --git a/2026/examples/godot/project/output.zip b/2026/examples/godot/project/output.zip new file mode 100644 index 0000000..6bfe31a Binary files /dev/null and b/2026/examples/godot/project/output.zip differ diff --git a/2026/examples/godot/project/project.godot b/2026/examples/godot/project/project.godot new file mode 100644 index 0000000..3cc0e4d --- /dev/null +++ b/2026/examples/godot/project/project.godot @@ -0,0 +1,31 @@ +; 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=5 + +[application] + +config/name="jam-example" +run/main_scene="uid://cv48btpqtacm5" +config/features=PackedStringArray("4.6", "GL Compatibility") +config/icon="res://icon.svg" + +[display] + +window/size/viewport_width=240 +window/size/viewport_height=160 + +[physics] + +3d/physics_engine="Jolt Physics" + +[rendering] + +rendering_device/driver.windows="d3d12" +renderer/rendering_method="gl_compatibility" +renderer/rendering_method.mobile="gl_compatibility" -- cgit v1.2.3