From 77c116450428616e42c19c9142f9f78099f5ffec Mon Sep 17 00:00:00 2001 From: Anthony Wilcox <35226681+tomiscw@users.noreply.github.com> Date: Thu, 10 Jan 2019 15:19:39 -0500 Subject: [PATCH] New 3.1 variant --- {project => 3.0}/default_env.tres | 0 {project => 3.0}/icon.png | Bin {project => 3.0}/icon.png.import | 0 {project => 3.0}/lang/local.csv | 0 {project => 3.0}/lang/local.csv.import | 0 {project => 3.0}/lang/local.en.translation | Bin {project => 3.0}/lang/local.sv.translation | Bin {project => 3.0}/project.godot | 0 {project => 3.0}/scn/GameScn.tscn | 0 {project => 3.0}/scn/TitleScn.tscn | 2 +- {project => 3.0}/scn/WinDialogs.tscn | 7 +- {project => 3.0}/src/GameKit.gd | 0 {project => 3.0}/src/GameScn.gd | 0 {project => 3.0}/src/TitleScn.gd | 0 {project => 3.0}/src/WinDialogs.gd | 0 3.1/default_env.tres | 101 +++++++++++++ 3.1/icon.png | Bin 0 -> 3498 bytes 3.1/icon.png.import | 29 ++++ 3.1/lang/local.csv | 14 ++ 3.1/lang/local.csv.import | 16 +++ 3.1/lang/local.en.translation | Bin 0 -> 852 bytes 3.1/lang/local.sv.translation | Bin 0 -> 868 bytes 3.1/project.godot | 41 ++++++ 3.1/scn/GameScn.tscn | 10 ++ 3.1/scn/TitleScn.tscn | 37 +++++ 3.1/scn/WinDialogs.tscn | 156 +++++++++++++++++++++ 3.1/src/GameKit.gd | 15 ++ 3.1/src/GameScn.gd | 6 + 3.1/src/TitleScn.gd | 10 ++ 3.1/src/WinDialogs.gd | 21 +++ 30 files changed, 463 insertions(+), 2 deletions(-) rename {project => 3.0}/default_env.tres (100%) rename {project => 3.0}/icon.png (100%) rename {project => 3.0}/icon.png.import (100%) rename {project => 3.0}/lang/local.csv (100%) rename {project => 3.0}/lang/local.csv.import (100%) rename {project => 3.0}/lang/local.en.translation (100%) rename {project => 3.0}/lang/local.sv.translation (100%) rename {project => 3.0}/project.godot (100%) rename {project => 3.0}/scn/GameScn.tscn (100%) rename {project => 3.0}/scn/TitleScn.tscn (98%) rename {project => 3.0}/scn/WinDialogs.tscn (98%) rename {project => 3.0}/src/GameKit.gd (100%) rename {project => 3.0}/src/GameScn.gd (100%) rename {project => 3.0}/src/TitleScn.gd (100%) rename {project => 3.0}/src/WinDialogs.gd (100%) create mode 100644 3.1/default_env.tres create mode 100644 3.1/icon.png create mode 100644 3.1/icon.png.import create mode 100644 3.1/lang/local.csv create mode 100644 3.1/lang/local.csv.import create mode 100644 3.1/lang/local.en.translation create mode 100644 3.1/lang/local.sv.translation create mode 100644 3.1/project.godot create mode 100644 3.1/scn/GameScn.tscn create mode 100644 3.1/scn/TitleScn.tscn create mode 100644 3.1/scn/WinDialogs.tscn create mode 100644 3.1/src/GameKit.gd create mode 100644 3.1/src/GameScn.gd create mode 100644 3.1/src/TitleScn.gd create mode 100644 3.1/src/WinDialogs.gd diff --git a/project/default_env.tres b/3.0/default_env.tres similarity index 100% rename from project/default_env.tres rename to 3.0/default_env.tres diff --git a/project/icon.png b/3.0/icon.png similarity index 100% rename from project/icon.png rename to 3.0/icon.png diff --git a/project/icon.png.import b/3.0/icon.png.import similarity index 100% rename from project/icon.png.import rename to 3.0/icon.png.import diff --git a/project/lang/local.csv b/3.0/lang/local.csv similarity index 100% rename from project/lang/local.csv rename to 3.0/lang/local.csv diff --git a/project/lang/local.csv.import b/3.0/lang/local.csv.import similarity index 100% rename from project/lang/local.csv.import rename to 3.0/lang/local.csv.import diff --git a/project/lang/local.en.translation b/3.0/lang/local.en.translation similarity index 100% rename from project/lang/local.en.translation rename to 3.0/lang/local.en.translation diff --git a/project/lang/local.sv.translation b/3.0/lang/local.sv.translation similarity index 100% rename from project/lang/local.sv.translation rename to 3.0/lang/local.sv.translation diff --git a/project/project.godot b/3.0/project.godot similarity index 100% rename from project/project.godot rename to 3.0/project.godot diff --git a/project/scn/GameScn.tscn b/3.0/scn/GameScn.tscn similarity index 100% rename from project/scn/GameScn.tscn rename to 3.0/scn/GameScn.tscn diff --git a/project/scn/TitleScn.tscn b/3.0/scn/TitleScn.tscn similarity index 98% rename from project/scn/TitleScn.tscn rename to 3.0/scn/TitleScn.tscn index 387293e..e5710a0 100644 --- a/project/scn/TitleScn.tscn +++ b/3.0/scn/TitleScn.tscn @@ -3,7 +3,7 @@ [ext_resource path="res://src/TitleScn.gd" type="Script" id=1] [ext_resource path="res://scn/WinDialogs.tscn" type="PackedScene" id=2] -[node name="TitleScn" type="Node" index="0"] +[node name="TitleScn" type="Node"] script = ExtResource( 1 ) diff --git a/project/scn/WinDialogs.tscn b/3.0/scn/WinDialogs.tscn similarity index 98% rename from project/scn/WinDialogs.tscn rename to 3.0/scn/WinDialogs.tscn index 8bb47f5..d0f67b9 100644 --- a/project/scn/WinDialogs.tscn +++ b/3.0/scn/WinDialogs.tscn @@ -2,7 +2,7 @@ [ext_resource path="res://src/WinDialogs.gd" type="Script" id=1] -[node name="WinDialogs" type="Control"] +[node name="WinDialogs" type="Control" index="0"] anchor_left = 0.0 anchor_top = 0.0 @@ -19,6 +19,8 @@ script = ExtResource( 1 ) [node name="PauseWin" type="PopupDialog" parent="." index="0"] pause_mode = 2 +editor/display_folded = true +visible = false anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 @@ -149,6 +151,7 @@ align = 1 [node name="CreditsWin" type="AcceptDialog" parent="." index="1"] +editor/display_folded = true visible = false anchor_left = 0.0 anchor_top = 0.0 @@ -207,6 +210,7 @@ _sections_unfolded = [ "BBCode" ] [node name="SettingsWin" type="AcceptDialog" parent="." index="2"] pause_mode = 2 +editor/display_folded = true visible = false anchor_left = 0.0 anchor_top = 0.0 @@ -248,6 +252,7 @@ columns = 3 [node name="LicenseWin" type="AcceptDialog" parent="." index="3"] +editor/display_folded = true visible = false anchor_left = 0.0 anchor_top = 0.0 diff --git a/project/src/GameKit.gd b/3.0/src/GameKit.gd similarity index 100% rename from project/src/GameKit.gd rename to 3.0/src/GameKit.gd diff --git a/project/src/GameScn.gd b/3.0/src/GameScn.gd similarity index 100% rename from project/src/GameScn.gd rename to 3.0/src/GameScn.gd diff --git a/project/src/TitleScn.gd b/3.0/src/TitleScn.gd similarity index 100% rename from project/src/TitleScn.gd rename to 3.0/src/TitleScn.gd diff --git a/project/src/WinDialogs.gd b/3.0/src/WinDialogs.gd similarity index 100% rename from project/src/WinDialogs.gd rename to 3.0/src/WinDialogs.gd diff --git a/3.1/default_env.tres b/3.1/default_env.tres new file mode 100644 index 0000000..ad86b72 --- /dev/null +++ b/3.1/default_env.tres @@ -0,0 +1,101 @@ +[gd_resource type="Environment" load_steps=2 format=2] + +[sub_resource type="ProceduralSky" id=1] + +radiance_size = 4 +sky_top_color = Color( 0.0470588, 0.454902, 0.976471, 1 ) +sky_horizon_color = Color( 0.556863, 0.823529, 0.909804, 1 ) +sky_curve = 0.25 +sky_energy = 1.0 +ground_bottom_color = Color( 0.101961, 0.145098, 0.188235, 1 ) +ground_horizon_color = Color( 0.482353, 0.788235, 0.952941, 1 ) +ground_curve = 0.01 +ground_energy = 1.0 +sun_color = Color( 1, 1, 1, 1 ) +sun_latitude = 35.0 +sun_longitude = 0.0 +sun_angle_min = 1.0 +sun_angle_max = 100.0 +sun_curve = 0.05 +sun_energy = 16.0 +texture_size = 2 + +[resource] + +background_mode = 2 +background_sky = SubResource( 1 ) +background_sky_custom_fov = 0.0 +background_color = Color( 0, 0, 0, 1 ) +background_energy = 1.0 +background_canvas_max_layer = 0 +ambient_light_color = Color( 0, 0, 0, 1 ) +ambient_light_energy = 1.0 +ambient_light_sky_contribution = 1.0 +fog_enabled = false +fog_color = Color( 0.5, 0.6, 0.7, 1 ) +fog_sun_color = Color( 1, 0.9, 0.7, 1 ) +fog_sun_amount = 0.0 +fog_depth_enabled = true +fog_depth_begin = 10.0 +fog_depth_curve = 1.0 +fog_transmit_enabled = false +fog_transmit_curve = 1.0 +fog_height_enabled = false +fog_height_min = 0.0 +fog_height_max = 100.0 +fog_height_curve = 1.0 +tonemap_mode = 0 +tonemap_exposure = 1.0 +tonemap_white = 1.0 +auto_exposure_enabled = false +auto_exposure_scale = 0.4 +auto_exposure_min_luma = 0.05 +auto_exposure_max_luma = 8.0 +auto_exposure_speed = 0.5 +ss_reflections_enabled = false +ss_reflections_max_steps = 64 +ss_reflections_fade_in = 0.15 +ss_reflections_fade_out = 2.0 +ss_reflections_depth_tolerance = 0.2 +ss_reflections_roughness = true +ssao_enabled = false +ssao_radius = 1.0 +ssao_intensity = 1.0 +ssao_radius2 = 0.0 +ssao_intensity2 = 1.0 +ssao_bias = 0.01 +ssao_light_affect = 0.0 +ssao_color = Color( 0, 0, 0, 1 ) +ssao_quality = 0 +ssao_blur = 3 +ssao_edge_sharpness = 4.0 +dof_blur_far_enabled = false +dof_blur_far_distance = 10.0 +dof_blur_far_transition = 5.0 +dof_blur_far_amount = 0.1 +dof_blur_far_quality = 1 +dof_blur_near_enabled = false +dof_blur_near_distance = 2.0 +dof_blur_near_transition = 1.0 +dof_blur_near_amount = 0.1 +dof_blur_near_quality = 1 +glow_enabled = false +glow_levels/1 = false +glow_levels/2 = false +glow_levels/3 = true +glow_levels/4 = false +glow_levels/5 = true +glow_levels/6 = false +glow_levels/7 = false +glow_intensity = 0.8 +glow_strength = 1.0 +glow_bloom = 0.0 +glow_blend_mode = 2 +glow_hdr_threshold = 1.0 +glow_hdr_scale = 2.0 +glow_bicubic_upscale = false +adjustment_enabled = false +adjustment_brightness = 1.0 +adjustment_contrast = 1.0 +adjustment_saturation = 1.0 + diff --git a/3.1/icon.png b/3.1/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..a0b64eee944cb4cfb2aa8dc0d8d78faf6ca44dc1 GIT binary patch literal 3498 zcmV;b4OQ}qP)% zdvH`$n!tbO-hQU@>JCZgK>`UR0Wu_jNB~7FAPOkpus*=C*qH%bc6M=ecWTDjftr2P zz(}c6<;KLdCS>sd8X;~ZVy~@fNA7?nzXd6 z&m0p2dUBUn)};@_l#%zU zRxQsJl7v3Nh+3;hl4OJsy@)fvd1Abg>Ruq(g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u 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/3.1/icon.png.import b/3.1/icon.png.import new file mode 100644 index 0000000..0041ef8 --- /dev/null +++ b/3.1/icon.png.import @@ -0,0 +1,29 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" + +[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/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/3.1/lang/local.csv b/3.1/lang/local.csv new file mode 100644 index 0000000..c544972 --- /dev/null +++ b/3.1/lang/local.csv @@ -0,0 +1,14 @@ +,en,sv +KENG,English,Engelsk +KSWD,Swedish,Svenska +KRUS,Resume,Återuppta +KPUS,Paused,Pausad +KPLY,Play,Spela +KCRE,Credits,Eftertexter +KABO,About,Handla om +KLIC,License,Licens +KSOO,Coming Soon,Kommer snart +KEXT,Exit,Utgång +KHELP,Help,Hjälp +KSET,Settings,Inställningar +KLANG,Languages,Språk \ No newline at end of file diff --git a/3.1/lang/local.csv.import b/3.1/lang/local.csv.import new file mode 100644 index 0000000..beece0d --- /dev/null +++ b/3.1/lang/local.csv.import @@ -0,0 +1,16 @@ +[remap] + +importer="csv_translation" +type="Translation" + +[deps] + +files=[ "res://lang/local.en.translation", "res://lang/local.sv.translation" ] + +source_file="res://lang/local.csv" +dest_files=[ "res://lang/local.en.translation", "res://lang/local.sv.translation" ] + +[params] + +compress=true +delimiter=0 diff --git a/3.1/lang/local.en.translation b/3.1/lang/local.en.translation new file mode 100644 index 0000000000000000000000000000000000000000..83193381c2b8ecadf601c123a7cd54b654f7f317 GIT binary patch literal 852 zcmbVLze^lJ6n-%|^UDYkK_LOX6kaOLp%9P*qn9%x2a!8LNwd!FJ?<9QUD=sMV{2tC zSmh7MACM*l(pgxhNM~gsY9m+)fz|J=vv9~&dGPVg_sz_kH*aTa^;(&1JnZ0?7%wd- z-CmAVpnYY$Fv!;ZH$TD7VIX21#*xd8AG*qSOz3Er1E&7Yxj=0&J%zKuTB{aodJK{7 zV0w;W8`U{RHGHNQkd4?~XJZXHNt?(ET6f#D8+n@sCeZ`n8IWe0o|q_7pIC^lcg|s= z2Y4eZ5Yi;^ggKx`piy85kmv>afEybF7{Bh&lIE?|lp7aDeuoyQtur}sJ_L`beFHbQaOS!n(Ay!`q*mtpKby5T%~CM literal 0 HcmV?d00001 diff --git a/3.1/lang/local.sv.translation b/3.1/lang/local.sv.translation new file mode 100644 index 0000000000000000000000000000000000000000..f64ee2a3cb2d68d34f75d802eacdb444cfca1b73 GIT binary patch literal 868 zcmbVLze^lJ6n^G%F=sTQg<3?^fL;oJAXv$PhUCl{1?5gbY>sgq*7e5SWoJ%;y@hok zSXe6L4@hAMgus#_Wr}pEQiNzDScL>uzo$Fl2v$D$_~w1{-kW)EXUmoHGfFMfz#UjG zmW19|iiEF~Fkax>xLfmmWcC1&)ImLRWK{)@P*oFDwIh8=4;%MqiYfmwA%}T%9#&fMcAOPk)yfjUv&G=A-RPMTFtfO7BUG{wo#}i5F`~gio?gnKgS6r Uv!5~-P4VG=Ze}4ND&zmU1l{PcdH?_b literal 0 HcmV?d00001 diff --git a/3.1/project.godot b/3.1/project.godot new file mode 100644 index 0000000..7fee377 --- /dev/null +++ b/3.1/project.godot @@ -0,0 +1,41 @@ +; 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="Anthony's Godot Template" +run/main_scene="res://scn/TitleScn.tscn" + +[autoload] + +GameKit="*res://src/GameKit.gd" +WinDialogs="*res://scn/WinDialogs.tscn" + +[display] + +window/size/resizable=false + +[input] + +ui_pause={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777217,"unicode":0,"echo":false,"script":null) +, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":11,"pressure":0.0,"pressed":false,"script":null) + ] +} + +[locale] + +translations=PoolStringArray( "res://lang/local.en.translation", "res://lang/local.sv.translation" ) diff --git a/3.1/scn/GameScn.tscn b/3.1/scn/GameScn.tscn new file mode 100644 index 0000000..87061b5 --- /dev/null +++ b/3.1/scn/GameScn.tscn @@ -0,0 +1,10 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://src/GameScn.gd" type="Script" id=1] +[ext_resource path="res://scn/WinDialogs.tscn" type="PackedScene" id=2] + +[node name="GameScn" type="Node"] +script = ExtResource( 1 ) + +[node name="WinDialogs" parent="." instance=ExtResource( 2 )] + diff --git a/3.1/scn/TitleScn.tscn b/3.1/scn/TitleScn.tscn new file mode 100644 index 0000000..7200e54 --- /dev/null +++ b/3.1/scn/TitleScn.tscn @@ -0,0 +1,37 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://src/TitleScn.gd" type="Script" id=1] +[ext_resource path="res://scn/WinDialogs.tscn" type="PackedScene" id=2] + +[node name="TitleScn" type="Node"] +script = ExtResource( 1 ) + +[node name="TitleVBox" type="VBoxContainer" parent="."] +editor/display_folded = true +margin_left = 428.0 +margin_top = 244.0 +margin_right = 575.0 +margin_bottom = 380.0 + +[node name="PlayBtn" type="Button" parent="TitleVBox"] +margin_right = 147.0 +margin_bottom = 20.0 +text = "KPLY" + +[node name="CreditsBtn" type="Button" parent="TitleVBox"] +margin_top = 24.0 +margin_right = 147.0 +margin_bottom = 44.0 +text = "KCRE" + +[node name="LicenseBtn" type="Button" parent="TitleVBox"] +margin_top = 48.0 +margin_right = 147.0 +margin_bottom = 68.0 +text = "KLIC" + +[node name="WinDialogs" parent="." instance=ExtResource( 2 )] + +[connection signal="pressed" from="TitleVBox/PlayBtn" to="." method="_on_PlayBtn_pressed"] +[connection signal="pressed" from="TitleVBox/CreditsBtn" to="." method="_on_CreditsBtn_pressed"] +[connection signal="pressed" from="TitleVBox/LicenseBtn" to="." method="_on_LicenseBtn_pressed"] diff --git a/3.1/scn/WinDialogs.tscn b/3.1/scn/WinDialogs.tscn new file mode 100644 index 0000000..864df1b --- /dev/null +++ b/3.1/scn/WinDialogs.tscn @@ -0,0 +1,156 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://src/WinDialogs.gd" type="Script" id=1] + +[node name="WinDialogs" type="Control"] +script = ExtResource( 1 ) + +[node name="PauseWin" type="PopupDialog" parent="."] +pause_mode = 2 +editor/display_folded = true +margin_left = 430.0 +margin_top = 200.0 +margin_right = 606.0 +margin_bottom = 314.0 + +[node name="PauseVbox" type="VBoxContainer" parent="PauseWin"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 10.0 +margin_top = 10.0 +margin_right = -10.0 +margin_bottom = -10.0 + +[node name="PauseLbl" type="Label" parent="PauseWin/PauseVbox"] +margin_right = 156.0 +margin_bottom = 14.0 +text = "KPUS" +align = 1 + +[node name="SettingsBtn" type="Button" parent="PauseWin/PauseVbox"] +margin_top = 18.0 +margin_right = 156.0 +margin_bottom = 38.0 +text = "KSET" + +[node name="ResumeBtn" type="Button" parent="PauseWin/PauseVbox"] +margin_top = 42.0 +margin_right = 156.0 +margin_bottom = 62.0 +text = "KRUS" + +[node name="ExitBtn" type="Button" parent="PauseWin/PauseVbox"] +margin_top = 66.0 +margin_right = 156.0 +margin_bottom = 86.0 +text = "KEXT" + +[node name="CreditsWin" type="AcceptDialog" parent="."] +editor/display_folded = true +margin_left = 404.0 +margin_top = 158.0 +margin_right = 752.0 +margin_bottom = 425.0 +window_title = "KCRE" + +[node name="CreditsTxt" type="RichTextLabel" parent="CreditsWin"] +margin_left = 8.0 +margin_top = 8.0 +margin_right = 340.0 +margin_bottom = 231.0 +focus_mode = 2 +bbcode_enabled = true +bbcode_text = "[center]Created by +Anthony Wilcox +[/center]" +text = "Created by +Anthony Wilcox +" +selection_enabled = true + +[node name="SettingsWin" type="AcceptDialog" parent="."] +pause_mode = 2 +editor/display_folded = true +margin_left = 504.0 +margin_top = 264.0 +margin_right = 656.0 +margin_bottom = 332.0 +window_title = "KSET" + +[node name="Grid" type="GridContainer" parent="SettingsWin"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -68.0 +margin_top = -26.0 +margin_right = 68.0 +margin_bottom = -2.0 +columns = 3 + +[node name="LicenseWin" type="AcceptDialog" parent="."] +editor/display_folded = true +margin_left = 278.0 +margin_top = 159.0 +margin_right = 745.0 +margin_bottom = 431.0 +window_title = "KLIC" + +[node name="LicenseTxt" type="RichTextLabel" parent="LicenseWin"] +margin_left = 8.0 +margin_top = 8.0 +margin_right = 459.0 +margin_bottom = 236.0 +bbcode_enabled = true +bbcode_text = "This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to " +text = "This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to " + +[connection signal="pressed" from="PauseWin/PauseVbox/SettingsBtn" to="." method="_on_SettingsBtn_pressed"] +[connection signal="pressed" from="PauseWin/PauseVbox/ResumeBtn" to="." method="_on_ResumeBtn_pressed"] +[connection signal="pressed" from="PauseWin/PauseVbox/ExitBtn" to="." method="_on_ExitBtn_pressed"] diff --git a/3.1/src/GameKit.gd b/3.1/src/GameKit.gd new file mode 100644 index 0000000..27a1e1c --- /dev/null +++ b/3.1/src/GameKit.gd @@ -0,0 +1,15 @@ +extends Node + +const NOT_IMPLEMENTED = "This feature is not implemented" + +func is_game_paused(is_paused): + if is_paused == true: + get_tree().paused = true + else: + get_tree().paused = false + +func switch_scenes(is_mode): + if is_mode == "title": + get_tree().change_scene("res://scn/TitleScn.tscn") + elif is_mode == "game": + get_tree().change_scene("res://scn/GameScn.tscn") \ No newline at end of file diff --git a/3.1/src/GameScn.gd b/3.1/src/GameScn.gd new file mode 100644 index 0000000..d5b5dc2 --- /dev/null +++ b/3.1/src/GameScn.gd @@ -0,0 +1,6 @@ +extends "res://src/GameKit.gd" + +func _process(delta): + if Input.is_action_pressed("ui_pause"): + is_game_paused(true) + $WinDialogs/PauseWin.show() \ No newline at end of file diff --git a/3.1/src/TitleScn.gd b/3.1/src/TitleScn.gd new file mode 100644 index 0000000..549c0c5 --- /dev/null +++ b/3.1/src/TitleScn.gd @@ -0,0 +1,10 @@ +extends "res://src/GameKit.gd" + +func _on_PlayBtn_pressed(): + switch_scenes("game") + +func _on_LicenseBtn_pressed(): + $WinDialogs/LicenseWin.show() + +func _on_CreditsBtn_pressed(): + $WinDialogs/CreditsWin.show() diff --git a/3.1/src/WinDialogs.gd b/3.1/src/WinDialogs.gd new file mode 100644 index 0000000..506d5f0 --- /dev/null +++ b/3.1/src/WinDialogs.gd @@ -0,0 +1,21 @@ +extends "res://src/GameKit.gd" + +func _on_ExitBtn_pressed(): + is_game_paused(false) + switch_scenes("title") + +func _on_SettingsBtn_pressed(): + $SettingsWin.show() + +func _on_CreditsBtn_pressed(): + $CreditsWin.show() + +func _on_LicenseBtn_pressed(): + $LicenseWin.show() + +func _on_CloseAbtBtn_pressed(): + $AboutWin.hide() + +func _on_ResumeBtn_pressed(): + $PauseWin.hide() + is_game_paused(false) \ No newline at end of file