diff --git a/.gitignore b/.gitignore index 0af181c..f4e9b95 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ # Godot 4+ specific ignores .godot/ /android/ +builds/ \ No newline at end of file diff --git a/build_templates_conifg/Default b/build_templates_conifg/Default new file mode 100644 index 0000000..72f5ca3 --- /dev/null +++ b/build_templates_conifg/Default @@ -0,0 +1,7 @@ +{ + "disabled_build_options": { + + }, + "disabled_classes": [], + "type": "build_profile" +} \ No newline at end of file diff --git a/build_templates_conifg/Size.build b/build_templates_conifg/Size.build new file mode 100644 index 0000000..f8f1733 --- /dev/null +++ b/build_templates_conifg/Size.build @@ -0,0 +1,101 @@ +{ + "disabled_build_options": { + "disable_3d": true, + "disable_3d_physics": true, + "disable_navigation": true, + "module_text_server_adv_enabled": false, + "openxr": false + }, + "disabled_classes": [ + "AnimatableBody2D", + "ArrayMesh", + "AudioStreamGenerator", + "BaseMaterial3D", + "BoxMesh", + "CapsuleMesh", + "ColorPickerButton", + "Control", + "Curve3D", + "CylinderMesh", + "GLTFAccessor", + "GLTFAnimation", + "GLTFBufferView", + "GLTFCamera", + "GLTFDocument", + "GLTFDocumentExtension", + "GLTFLight", + "GLTFMesh", + "GLTFNode", + "GLTFPhysicsBody", + "GLTFPhysicsShape", + "GLTFSkeleton", + "GLTFSkin", + "GLTFSpecGloss", + "GLTFState", + "GLTFTexture", + "GLTFTextureSampler", + "HTTPRequest", + "ImmediateMesh", + "ImporterMesh", + "Joint2D", + "Light2D", + "LightOccluder2D", + "Line2D", + "LinkButton", + "Marker2D", + "MeshLibrary", + "MissingNode", + "MissingResource", + "MultiMesh", + "MultiplayerSpawner", + "MultiplayerSynchronizer", + "NavigationAgent2D", + "NavigationAgent3D", + "NavigationLink2D", + "NavigationMesh", + "NavigationMeshSourceGeometryData2D", + "NavigationMeshSourceGeometryData3D", + "NavigationObstacle2D", + "NavigationPolygon", + "NavigationRegion2D", + "Node3D", + "Noise", + "Occluder3D", + "OpenXRAction", + "OpenXRActionMap", + "OpenXRActionSet", + "OpenXRIPBinding", + "OpenXRInteractionProfile", + "Path2D", + "PathFollow2D", + "PhysicalBone2D", + "PlaceholderMesh", + "PointMesh", + "PrismMesh", + "RemoteTransform2D", + "RibbonTrailMesh", + "Shape3D", + "Shortcut", + "Skeleton2D", + "SkeletonModification2D", + "SkeletonModificationStack2D", + "SkeletonProfile", + "Skin", + "Sky", + "SphereMesh", + "StatusIndicator", + "SyntaxHighlighter", + "TextMesh", + "Texture3D", + "TorusMesh", + "TouchScreenButton", + "TubeTrailMesh", + "VideoStream", + "VideoStreamPlayback", + "Window", + "World3D", + "WorldEnvironment", + "X509Certificate" + ], + "type": "build_profile" +} \ No newline at end of file diff --git a/export_presets.cfg b/export_presets.cfg new file mode 100644 index 0000000..d8c81b8 --- /dev/null +++ b/export_presets.cfg @@ -0,0 +1,65 @@ +[preset.0] + +name="Windows Desktop" +platform="Windows Desktop" +runnable=true +advanced_options=true +dedicated_server=false +custom_features="" +export_filter="scenes" +export_files=PackedStringArray("res://scenes/test.tscn", "res://objects/brick_player.tscn", "res://objects/coin.tscn", "res://objects/collapsing_bridge.tscn", "res://objects/game_manager.tscn") +include_filter="" +exclude_filter="" +export_path="builds/optimized_for_size/Mr. Brick Adventures.exe" +encryption_include_filters="" +encryption_exclude_filters="" +encrypt_pck=false +encrypt_directory=false +script_export_mode=2 + +[preset.0.options] + +custom_template/debug="" +custom_template/release="D:/Dev/godot/bin/godot.windows.template_release.x86_64.exe" +debug/export_console_wrapper=1 +binary_format/embed_pck=true +texture_format/s3tc_bptc=true +texture_format/etc2_astc=false +binary_format/architecture="x86_64" +codesign/enable=false +codesign/timestamp=true +codesign/timestamp_server_url="" +codesign/digest_algorithm=1 +codesign/description="" +codesign/custom_options=PackedStringArray() +application/modify_resources=false +application/icon="res://icon.svg" +application/console_wrapper_icon="" +application/icon_interpolation=4 +application/file_version="" +application/product_version="" +application/company_name="Gabriel Kaszewski" +application/product_name="Mr. Brick Adventures" +application/file_description="" +application/copyright="2024" +application/trademarks="" +application/export_angle=0 +application/export_d3d12=2 +application/d3d12_agility_sdk_multiarch=false +ssh_remote_deploy/enabled=false +ssh_remote_deploy/host="user@host_ip" +ssh_remote_deploy/port="22" +ssh_remote_deploy/extra_args_ssh="" +ssh_remote_deploy/extra_args_scp="" +ssh_remote_deploy/run_script="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}' +$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}' +$trigger = New-ScheduledTaskTrigger -Once -At 00:00 +$settings = New-ScheduledTaskSettingsSet +$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings +Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true +Start-ScheduledTask -TaskName godot_remote_debug +while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 } +Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue" +ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue +Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue +Remove-Item -Recurse -Force '{temp_dir}'" diff --git a/objects/coin.tscn b/objects/coin.tscn index d57ffa6..a5dc239 100644 --- a/objects/coin.tscn +++ b/objects/coin.tscn @@ -2,7 +2,7 @@ [ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_epuj5"] [ext_resource type="Script" path="res://scripts/components/collectable.gd" id="2_y0k47"] -[ext_resource type="Resource" uid="uid://bc0esas5r2uy8" path="res://resources/collectables/coin.tres" id="3_fm2fq"] +[ext_resource type="Resource" uid="uid://vql535ckoeqm" path="res://resources/collectables/coin.tres" id="3_fm2fq"] [sub_resource type="CircleShape2D" id="CircleShape2D_3ask2"] radius = 9.0 diff --git a/project.godot b/project.godot index 29f161a..f0c82e3 100644 --- a/project.godot +++ b/project.godot @@ -16,6 +16,7 @@ config/name_localized={ "pl": "Przygody Pana Cegły" } config/version="in-dev" +run/main_scene="res://scenes/test.tscn" config/features=PackedStringArray("4.3", "GL Compatibility") boot_splash/show_image=false boot_splash/fullsize=false diff --git a/resources/collectables/coin.tres b/resources/collectables/coin.tres index 0893a28..8aa223f 100644 --- a/resources/collectables/coin.tres +++ b/resources/collectables/coin.tres @@ -1,7 +1,7 @@ -[gd_resource type="Resource" load_steps=2 format=3 uid="uid://bc0esas5r2uy8"] +[gd_resource type="Resource" load_steps=2 format=3 uid="uid://vql535ckoeqm"] -[ext_resource type="Script" path="res://scripts/resources/collectable_resource.gd" id="1_nmrta"] +[ext_resource type="Script" path="res://scripts/resources/collectable_resource.gd" id="1_veemo"] [resource] -script = ExtResource("1_nmrta") +script = ExtResource("1_veemo") amount = 1