From beb478112bae542e91a4e368f14d68700b773dc8 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Sat, 7 Apr 2018 10:58:42 -0400 Subject: [PATCH] Add godot3 with test scene and exports configured --- Makefile | 32 +++++- ....png-487276ed1e3a0c39cad0279d744ee560.stex | Bin 0 -> 3533 bytes game/default_env.tres | 101 ++++++++++++++++++ game/export_presets.cfg | 98 +++++++++++++++++ game/icon.png | Bin 0 -> 3498 bytes game/icon.png.import | 32 ++++++ game/project.godot | 24 +++++ game/tests/test-2d.gd | 19 ++++ game/tests/test-2d.tscn | 76 +++++++++++++ 9 files changed, 380 insertions(+), 2 deletions(-) create mode 100644 game/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex create mode 100644 game/default_env.tres create mode 100644 game/export_presets.cfg create mode 100644 game/icon.png create mode 100644 game/icon.png.import create mode 100644 game/project.godot create mode 100644 game/tests/test-2d.gd create mode 100644 game/tests/test-2d.tscn diff --git a/Makefile b/Makefile index 49bae2c..403aa8c 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,32 @@ -GODOT=godot2-server +GODOT=godot3-server +EXPORT_TEMPLATE_SOURCE=https://downloads.tuxfamily.org/godotengine/3.0.2/Godot_v3.0.2-stable_export_templates.tpz +BUILD_DIR?=build +GODOT_PROJECT_PATH?=game +PROJECT_NAME?=game + +TARGET_HTML5?=HTML5 +TARGET_WINDOWS?=Windows Desktop +TARGET_MACOSX?=Mac OSX +TARGET_LINUX?=Linux/X11 + +build-dir: + mkdir -p "$(BUILD_DIR)" clean: - rm -rf build/ + rm -rf "$(BUILD_DIR)"/ + +export-all: export-html5 export-windows export-osx export-linux + +export-html5: build-dir + mkdir -p "$(BUILD_DIR)/html" + $(GODOT) --path "$(GODOT_PROJECT_PATH)" --export "$(TARGET_HTML5)" "../$(BUILD_DIR)/html/$(PROJECT_NAME).html" + zip "$(BUILD_DIR)/$(PROJECT_NAME)-html5.zip" "$(BUILD_DIR)/html" + +export-windows: build-dir + $(GODOT) --path "$(GODOT_PROJECT_PATH)" --export "$(TARGET_WINDOWS)" "../$(BUILD_DIR)/$(PROJECT_NAME).exe" + +export-osx: build-dir + $(GODOT) --path "$(GODOT_PROJECT_PATH)" --export "$(TARGET_MACOSX)" "../$(BUILD_DIR)/$(PROJECT_NAME)-osx" + +export-linux: build-dir + $(GODOT) --path "$(GODOT_PROJECT_PATH)" --export "$(TARGET_LINUX)" "../$(BUILD_DIR)/$(PROJECT_NAME)-x11" diff --git a/game/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex b/game/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex new file mode 100644 index 0000000000000000000000000000000000000000..1f08a3cf11935069c4d0c31e8bd17ded23174700 GIT binary patch literal 3533 zcmV;;4KngaL{n5i0000$000040000001yWO000274FCX8PDdb#P)%dvKIhmcW1a>-Qt+bcfJ+kU#=? zK*j_V3807tL;(dH*9SNjJ0sw-vx}pu>)EK|(s6Zqfmn`BkN=^WA&TJ?DJ4@4e^T+oE9VJUm`M z0FqV#7#$Mg8Kb0|E)*plAxzxPD2huFqTU_yZI={fHE=BC695s94ejTvN zXwW?)Ky~Xh9yk<`-EQCSf#(bctq(x$@dh#I)mnpI`>7yK>(Fjf2(!7X>{2d(#Q`=KnCzP@%Fp8 z#?}l;Aj|+lhym-+l3-%$_+qj%?0weF9%5(e_+l&x1GoL?vQ;3=1NPbn+bqnUGM-6y z6;hBh1R(^9qOj?+eZ2J6#;|REy6`a`EuDxEf{>z6e(nOhkCd_H^8++F+6F|=xI3V5 zL>BYsOy$0@g$N;0R@cV6d#gBH-NLvW8&8)` z>@X{L4z;oHvFR-My9d~H_$2Rc-pR?cwQMWEKQ;qV2v9j~XU!*{j3 zuEouqF++Ivi5dLsOK){+`wvgdpu-zv(~%2!{4y1d9jrf4%ishZGmF!ien$agM&|JN z^DAg`y5pvETz5LtCXOa4(ahp^4)OM$s&2*uxcxF44%Kq+oueoz$|rk>o$MiYN{aHi z=gv`VI8=+rFL!Ix)ZydpJy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1l*ND7$L+V0Cyo-O$E>1T8tno)>L55>+2?pz12` z?5*zd&Unr9Pv1X;5t&J0%Rl=-0okVTv$x5^Qdzv_P><;Y60{t@*vuPWRAF^^X?Ap7 z5dHl7 zr33ua)Oq1CF-oM9*04-Eb#e5538YwxD#w`b6||?IV@)LwEyl3 z(%XNZH@eE4s6!=7)Le0N_8B++)m(9)k|oSHtPln5VXlJo#4dG(!f4RY62%5;#4VuW zLLI}0=Jl9vwYN9LRZo0#fWhhU|F|5BGstu6k9L01+XYF$%k#&Osuw)+&;NzT8-6H^cx$W! zkJrbGYc??~BZ=o8DCBlJM=eBqBzRaxA}_7k)T{B=6V))dW8X1y(o`P2Xvs4WhUKK#H=af7+*3Bl`InoDpXl)R9|sW-|V8X&5fnaO{>d?%NrmNRA{|+ zOfE^UMwSG6jZBhWOto^C55?^49g=o%S@^%{2HMrnyjr<*EMqd%z2JiRCD4?HSQ>S_;5sZMkpHG z9v=r!oaNw&vz_lWY84r&CNffuB*q(v(`!*l62_$VaJjYBP9PY>>GIHKchJz(Ohc0u zuP^dB{mr6MQ0xK`uP92t-5K!u{M6K2sHyM1Z*VJ6uFc{U6uX2%J+xmY`mWGvt3tix zbo;jh1iW|78KAz>VXM3FqW$`OjWg(ZKM?f)W8>MA|J_=Bv~%wK Y|LV|6es%hBO8@`>07*qoM6N<$f`}~Z-v9sr literal 0 HcmV?d00001 diff --git a/game/icon.png.import b/game/icon.png.import new file mode 100644 index 0000000..7e34d87 --- /dev/null +++ b/game/icon.png.import @@ -0,0 +1,32 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" + +[deps] + +source_file="res://icon.png" +source_md5="ae7e641067601e2184afcade49abd283" + +dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] +dest_md5="84511021bbc8c9d37c7f0f4d181de883" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/game/project.godot b/game/project.godot new file mode 100644 index 0000000..570b9ab --- /dev/null +++ b/game/project.godot @@ -0,0 +1,24 @@ +; 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=3 + +[application] + +config/name="Godot3 Project Template" +run/main_scene="res://tests/test-2d.tscn" +boot_splash/fullsize=false +config/icon="res://icon.png" + +[display] + +window/stretch/shrink="1" + +[rendering] + +environment/default_environment="res://default_env.tres" diff --git a/game/tests/test-2d.gd b/game/tests/test-2d.gd new file mode 100644 index 0000000..ba79e26 --- /dev/null +++ b/game/tests/test-2d.gd @@ -0,0 +1,19 @@ +extends Node + +# class member variables go here, for example: +# var a = 2 +# var b = "textvar" + +func _ready(): + # Called every time the node is added to the scene. + # Initialization here + pass + +#func _process(delta): +# # Called every frame. Delta is time since last frame. +# # Update game logic here. +# pass + + +func _on_exit_pressed(): + get_tree().quit() diff --git a/game/tests/test-2d.tscn b/game/tests/test-2d.tscn new file mode 100644 index 0000000..3a39273 --- /dev/null +++ b/game/tests/test-2d.tscn @@ -0,0 +1,76 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://tests/test-2d.gd" type="Script" id=1] +[ext_resource path="res://icon.png" type="Texture" id=2] + +[sub_resource type="Gradient" id=1] + +offsets = PoolRealArray( 0, 1 ) +colors = PoolColorArray( 0, 0, 0, 1, 1, 1, 1, 1 ) + +[sub_resource type="GradientTexture" id=2] + +flags = 4 +gradient = SubResource( 1 ) +width = 1024 +_sections_unfolded = [ "Resource" ] + +[node name="test-2d" type="Node" index="0"] + +script = ExtResource( 1 ) + +[node name="CenterContainer" type="CenterContainer" parent="." index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 485.0 +margin_top = 276.0 +margin_right = 591.0 +margin_bottom = 346.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +use_top_left = false +_sections_unfolded = [ "Anchor", "Theme" ] + +[node name="exit" type="Button" parent="CenterContainer" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_right = 106.0 +margin_bottom = 70.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +focus_mode = 2 +mouse_filter = 0 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +toggle_mode = false +enabled_focus_mode = 2 +shortcut = null +group = null +text = "Quit" +icon = ExtResource( 2 ) +flat = false +align = 1 + +[node name="background" type="Sprite" parent="." index="1"] + +z_index = -1 +texture = SubResource( 2 ) +centered = false +region_enabled = true +region_rect = Rect2( 0, 0, 1024, 600 ) +_sections_unfolded = [ "Region", "Z Index" ] + +[connection signal="pressed" from="CenterContainer/exit" to="." method="_on_exit_pressed"] + +