From 8c60d32aea0f8beb6bd49337e45117c4b23d188a Mon Sep 17 00:00:00 2001 From: Hana - Piralein <48352564+Piralein@users.noreply.github.com> Date: Thu, 27 Apr 2023 15:22:32 +0200 Subject: [PATCH] update instancing example --- src/instancing_starter/Ball.tscn | 21 ++- src/instancing_starter/Main.gd | 6 +- src/instancing_starter/Main.tscn | 144 +++++++----------- .../assets/Bouncy Platform Long.png.import | 32 ++-- .../assets/Bouncy Platform Medium.png.import | 32 ++-- .../assets/ballBlue_10.png.import | 32 ++-- src/instancing_starter/default_env.tres | 14 -- src/instancing_starter/icon.png | Bin 3498 -> 0 bytes src/instancing_starter/icon.png.import | 34 ----- src/instancing_starter/icon.svg | 1 + src/instancing_starter/icon.svg.import | 37 +++++ src/instancing_starter/project.godot | 18 +-- 12 files changed, 159 insertions(+), 212 deletions(-) delete mode 100644 src/instancing_starter/default_env.tres delete mode 100644 src/instancing_starter/icon.png delete mode 100644 src/instancing_starter/icon.png.import create mode 100644 src/instancing_starter/icon.svg create mode 100644 src/instancing_starter/icon.svg.import diff --git a/src/instancing_starter/Ball.tscn b/src/instancing_starter/Ball.tscn index 42e3cf3..43ab056 100644 --- a/src/instancing_starter/Ball.tscn +++ b/src/instancing_starter/Ball.tscn @@ -1,22 +1,19 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=4 format=3 uid="uid://dm5jrnxmxnuof"] -[ext_resource path="res://assets/ballBlue_10.png" type="Texture" id=1] +[ext_resource type="Texture2D" uid="uid://dv6rx85s1gy3i" path="res://assets/ballBlue_10.png" id="1"] -[sub_resource type="PhysicsMaterial" id=1] +[sub_resource type="PhysicsMaterial" id="1"] -[sub_resource type="CircleShape2D" id=2] +[sub_resource type="CircleShape2D" id="2"] radius = 37.1452 [node name="Ball" type="RigidBody2D"] -physics_material_override = SubResource( 1 ) +physics_material_override = SubResource("1") gravity_scale = 4.0 -__meta__ = { -"_edit_group_": true -} -[node name="Sprite" type="Sprite" parent="."] -scale = Vector2( 0.5, 0.5 ) -texture = ExtResource( 1 ) +[node name="Sprite2D" type="Sprite2D" parent="."] +scale = Vector2(0.5, 0.5) +texture = ExtResource("1") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] -shape = SubResource( 2 ) +shape = SubResource("2") diff --git a/src/instancing_starter/Main.gd b/src/instancing_starter/Main.gd index d6a2db5..b9d468c 100644 --- a/src/instancing_starter/Main.gd +++ b/src/instancing_starter/Main.gd @@ -1,9 +1,9 @@ extends Node -export (PackedScene) var Ball +@export var Ball: PackedScene func _input(event): if event.is_action_pressed("click"): - var new_ball = Ball.instance() + var new_ball = Ball.instantiate() new_ball.position = get_viewport().get_mouse_position() - add_child(new_ball) \ No newline at end of file + add_child(new_ball) diff --git a/src/instancing_starter/Main.tscn b/src/instancing_starter/Main.tscn index 9ac2c1c..dd9c705 100644 --- a/src/instancing_starter/Main.tscn +++ b/src/instancing_starter/Main.tscn @@ -1,165 +1,133 @@ -[gd_scene load_steps=13 format=2] +[gd_scene load_steps=13 format=3 uid="uid://bc04jgq832nvc"] -[ext_resource path="res://Main.gd" type="Script" id=1] -[ext_resource path="res://Ball.tscn" type="PackedScene" id=2] -[ext_resource path="res://assets/Bouncy Platform Long.png" type="Texture" id=3] +[ext_resource type="Script" path="res://Main.gd" id="1"] +[ext_resource type="PackedScene" uid="uid://dm5jrnxmxnuof" path="res://Ball.tscn" id="2"] +[ext_resource type="Texture2D" uid="uid://dkq1swbmmxmbq" path="res://assets/Bouncy Platform Long.png" id="3"] -[sub_resource type="PhysicsMaterial" id=1] +[sub_resource type="PhysicsMaterial" id="1"] bounce = 0.5 -[sub_resource type="CapsuleShape2D" id=2] +[sub_resource type="CapsuleShape2D" id="2"] radius = 28.7617 -height = 253.621 +height = 309.37 -[sub_resource type="PhysicsMaterial" id=3] +[sub_resource type="PhysicsMaterial" id="3"] bounce = 0.5 -[sub_resource type="PhysicsMaterial" id=4] +[sub_resource type="PhysicsMaterial" id="4"] bounce = 0.5 -[sub_resource type="PhysicsMaterial" id=5] +[sub_resource type="PhysicsMaterial" id="5"] bounce = 0.5 -[sub_resource type="PhysicsMaterial" id=6] +[sub_resource type="PhysicsMaterial" id="6"] bounce = 0.5 -[sub_resource type="PhysicsMaterial" id=7] +[sub_resource type="PhysicsMaterial" id="7"] bounce = 0.5 -[sub_resource type="PhysicsMaterial" id=8] +[sub_resource type="PhysicsMaterial" id="8"] bounce = 0.5 -[sub_resource type="PhysicsMaterial" id=9] +[sub_resource type="PhysicsMaterial" id="9"] bounce = 0.5 [node name="Main" type="Node"] -script = ExtResource( 1 ) -Ball = ExtResource( 2 ) +script = ExtResource("1") +Ball = ExtResource("2") [node name="WallContainer" type="Node" parent="."] [node name="Wall2" type="StaticBody2D" parent="WallContainer"] -editor/display_folded = true -position = Vector2( 880.952, 495.157 ) +position = Vector2(880.952, 495.157) rotation = -0.264907 -physics_material_override = SubResource( 1 ) -__meta__ = { -"_edit_group_": true -} +physics_material_override = SubResource("1") -[node name="Sprite" type="Sprite" parent="WallContainer/Wall2"] -texture = ExtResource( 3 ) +[node name="Sprite2D" type="Sprite2D" parent="WallContainer/Wall2"] +texture = ExtResource("3") [node name="CollisionShape2D" type="CollisionShape2D" parent="WallContainer/Wall2"] rotation = 1.5708 -shape = SubResource( 2 ) +shape = SubResource("2") [node name="Wall7" type="StaticBody2D" parent="WallContainer"] -editor/display_folded = true -position = Vector2( 462.444, 216.865 ) +position = Vector2(462.444, 216.865) rotation = -1.02983 -physics_material_override = SubResource( 3 ) -__meta__ = { -"_edit_group_": true -} +physics_material_override = SubResource("3") -[node name="Sprite" type="Sprite" parent="WallContainer/Wall7"] -texture = ExtResource( 3 ) +[node name="Sprite2D" type="Sprite2D" parent="WallContainer/Wall7"] +texture = ExtResource("3") [node name="CollisionShape2D" type="CollisionShape2D" parent="WallContainer/Wall7"] rotation = 1.5708 -shape = SubResource( 2 ) +shape = SubResource("2") [node name="Wall8" type="StaticBody2D" parent="WallContainer"] -editor/display_folded = true -position = Vector2( 585.534, 221.147 ) +position = Vector2(585.534, 221.147) rotation = 1.07416 -physics_material_override = SubResource( 4 ) -__meta__ = { -"_edit_group_": true -} +physics_material_override = SubResource("4") -[node name="Sprite" type="Sprite" parent="WallContainer/Wall8"] -texture = ExtResource( 3 ) +[node name="Sprite2D" type="Sprite2D" parent="WallContainer/Wall8"] +texture = ExtResource("3") [node name="CollisionShape2D" type="CollisionShape2D" parent="WallContainer/Wall8"] rotation = 1.5708 -shape = SubResource( 2 ) +shape = SubResource("2") [node name="Wall4" type="StaticBody2D" parent="WallContainer"] -editor/display_folded = true -position = Vector2( 996.874, 342.897 ) +position = Vector2(996.874, 342.897) rotation = -1.5708 -physics_material_override = SubResource( 5 ) -__meta__ = { -"_edit_group_": true -} +physics_material_override = SubResource("5") -[node name="Sprite" type="Sprite" parent="WallContainer/Wall4"] -texture = ExtResource( 3 ) +[node name="Sprite2D" type="Sprite2D" parent="WallContainer/Wall4"] +texture = ExtResource("3") [node name="CollisionShape2D" type="CollisionShape2D" parent="WallContainer/Wall4"] rotation = 1.5708 -shape = SubResource( 2 ) +shape = SubResource("2") [node name="Wall1" type="StaticBody2D" parent="WallContainer"] -editor/display_folded = true -position = Vector2( 148.047, 491.522 ) +position = Vector2(148.047, 491.522) rotation = 0.315662 -physics_material_override = SubResource( 6 ) -__meta__ = { -"_edit_group_": true -} +physics_material_override = SubResource("6") -[node name="Sprite" type="Sprite" parent="WallContainer/Wall1"] -texture = ExtResource( 3 ) +[node name="Sprite2D" type="Sprite2D" parent="WallContainer/Wall1"] +texture = ExtResource("3") [node name="CollisionShape2D" type="CollisionShape2D" parent="WallContainer/Wall1"] rotation = 1.5708 -shape = SubResource( 2 ) +shape = SubResource("2") [node name="Wall5" type="StaticBody2D" parent="WallContainer"] -editor/display_folded = true -position = Vector2( 30.2087, 337.685 ) +position = Vector2(30.2087, 337.685) rotation = 1.5708 -physics_material_override = SubResource( 7 ) -__meta__ = { -"_edit_group_": true -} +physics_material_override = SubResource("7") -[node name="Sprite" type="Sprite" parent="WallContainer/Wall5"] -texture = ExtResource( 3 ) +[node name="Sprite2D" type="Sprite2D" parent="WallContainer/Wall5"] +texture = ExtResource("3") [node name="CollisionShape2D" type="CollisionShape2D" parent="WallContainer/Wall5"] rotation = 1.5708 -shape = SubResource( 2 ) +shape = SubResource("2") [node name="Wall3" type="StaticBody2D" parent="WallContainer"] -editor/display_folded = true -position = Vector2( 397.133, 570.384 ) -physics_material_override = SubResource( 8 ) -__meta__ = { -"_edit_group_": true -} +position = Vector2(397.133, 570.384) +physics_material_override = SubResource("8") -[node name="Sprite" type="Sprite" parent="WallContainer/Wall3"] -texture = ExtResource( 3 ) +[node name="Sprite2D" type="Sprite2D" parent="WallContainer/Wall3"] +texture = ExtResource("3") [node name="CollisionShape2D" type="CollisionShape2D" parent="WallContainer/Wall3"] rotation = 1.5708 -shape = SubResource( 2 ) +shape = SubResource("2") [node name="Wall6" type="StaticBody2D" parent="WallContainer"] -editor/display_folded = true -position = Vector2( 699.667, 571.226 ) -physics_material_override = SubResource( 9 ) -__meta__ = { -"_edit_group_": true -} +position = Vector2(699.667, 571.226) +physics_material_override = SubResource("9") -[node name="Sprite" type="Sprite" parent="WallContainer/Wall6"] -texture = ExtResource( 3 ) +[node name="Sprite2D" type="Sprite2D" parent="WallContainer/Wall6"] +texture = ExtResource("3") [node name="CollisionShape2D" type="CollisionShape2D" parent="WallContainer/Wall6"] rotation = 1.5708 -shape = SubResource( 2 ) +shape = SubResource("2") diff --git a/src/instancing_starter/assets/Bouncy Platform Long.png.import b/src/instancing_starter/assets/Bouncy Platform Long.png.import index 0780b51..6c8f690 100644 --- a/src/instancing_starter/assets/Bouncy Platform Long.png.import +++ b/src/instancing_starter/assets/Bouncy Platform Long.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/Bouncy Platform Long.png-9b2628c180785c5ec622adb5c4ee7b17.stex" +type="CompressedTexture2D" +uid="uid://dkq1swbmmxmbq" +path="res://.godot/imported/Bouncy Platform Long.png-9b2628c180785c5ec622adb5c4ee7b17.ctex" metadata={ "vram_texture": false } @@ -10,25 +11,24 @@ metadata={ [deps] source_file="res://assets/Bouncy Platform Long.png" -dest_files=[ "res://.import/Bouncy Platform Long.png-9b2628c180785c5ec622adb5c4ee7b17.stex" ] +dest_files=["res://.godot/imported/Bouncy Platform Long.png-9b2628c180785c5ec622adb5c4ee7b17.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" 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 +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 diff --git a/src/instancing_starter/assets/Bouncy Platform Medium.png.import b/src/instancing_starter/assets/Bouncy Platform Medium.png.import index f750678..03dcd2b 100644 --- a/src/instancing_starter/assets/Bouncy Platform Medium.png.import +++ b/src/instancing_starter/assets/Bouncy Platform Medium.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/Bouncy Platform Medium.png-7896338a5f44da1e83084c154a3c4a9e.stex" +type="CompressedTexture2D" +uid="uid://blqm0e7gm75u3" +path="res://.godot/imported/Bouncy Platform Medium.png-7896338a5f44da1e83084c154a3c4a9e.ctex" metadata={ "vram_texture": false } @@ -10,25 +11,24 @@ metadata={ [deps] source_file="res://assets/Bouncy Platform Medium.png" -dest_files=[ "res://.import/Bouncy Platform Medium.png-7896338a5f44da1e83084c154a3c4a9e.stex" ] +dest_files=["res://.godot/imported/Bouncy Platform Medium.png-7896338a5f44da1e83084c154a3c4a9e.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" 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 +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 diff --git a/src/instancing_starter/assets/ballBlue_10.png.import b/src/instancing_starter/assets/ballBlue_10.png.import index d56feee..936661b 100644 --- a/src/instancing_starter/assets/ballBlue_10.png.import +++ b/src/instancing_starter/assets/ballBlue_10.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/ballBlue_10.png-a6ac20f1eeff46860499a0f8c7bba4ff.stex" +type="CompressedTexture2D" +uid="uid://dv6rx85s1gy3i" +path="res://.godot/imported/ballBlue_10.png-a6ac20f1eeff46860499a0f8c7bba4ff.ctex" metadata={ "vram_texture": false } @@ -10,25 +11,24 @@ metadata={ [deps] source_file="res://assets/ballBlue_10.png" -dest_files=[ "res://.import/ballBlue_10.png-a6ac20f1eeff46860499a0f8c7bba4ff.stex" ] +dest_files=["res://.godot/imported/ballBlue_10.png-a6ac20f1eeff46860499a0f8c7bba4ff.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" 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 +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 diff --git a/src/instancing_starter/default_env.tres b/src/instancing_starter/default_env.tres deleted file mode 100644 index dfe62ab..0000000 --- a/src/instancing_starter/default_env.tres +++ /dev/null @@ -1,14 +0,0 @@ -[gd_resource type="Environment" load_steps=2 format=2] - -[sub_resource type="ProceduralSky" id=1] -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 -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 -sun_energy = 16.0 - -[resource] -background_mode = 2 -background_sky = SubResource( 1 ) diff --git a/src/instancing_starter/icon.png b/src/instancing_starter/icon.png deleted file mode 100644 index a0b64eee944cb4cfb2aa8dc0d8d78faf6ca44dc1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3498 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 Y|LV|6es%hBO8@`>07*qoM6N<$f`}~Z-v9sr diff --git a/src/instancing_starter/icon.png.import b/src/instancing_starter/icon.png.import deleted file mode 100644 index 96cbf46..0000000 --- a/src/instancing_starter/icon.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[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 diff --git a/src/instancing_starter/icon.svg b/src/instancing_starter/icon.svg new file mode 100644 index 0000000..adc26df --- /dev/null +++ b/src/instancing_starter/icon.svg @@ -0,0 +1 @@ + diff --git a/src/instancing_starter/icon.svg.import b/src/instancing_starter/icon.svg.import new file mode 100644 index 0000000..4d5fc7c --- /dev/null +++ b/src/instancing_starter/icon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dlj0lug17ph0p" +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/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +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/src/instancing_starter/project.godot b/src/instancing_starter/project.godot index 48cb418..5d24ccf 100644 --- a/src/instancing_starter/project.godot +++ b/src/instancing_starter/project.godot @@ -6,18 +6,14 @@ ; [section] ; section goes between [] ; param=value ; assign values to parameters -config_version=4 - -_global_script_classes=[ ] -_global_script_class_icons={ - -} +config_version=5 [application] config/name="instancing" run/main_scene="res://Main.tscn" -config/icon="res://icon.png" +config/features=PackedStringArray("4.0") +config/icon="res://icon.svg" [importer_defaults] @@ -44,10 +40,6 @@ texture={ click={ "deadzone": 0.5, -"events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":1,"pressed":false,"doubleclick":false,"script":null) - ] +"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":0,"position":Vector2(0, 0),"global_position":Vector2(0, 0),"factor":1.0,"button_index":1,"pressed":false,"double_click":false,"script":null) +] } - -[rendering] - -environment/default_environment="res://default_env.tres"