Skip to content

Commit fcd4f18

Browse files
committed
Update demo project
1 parent efe8642 commit fcd4f18

4 files changed

Lines changed: 50 additions & 92 deletions

File tree

demo/icon.png.import

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
11
[remap]
22

33
importer="texture"
4-
type="StreamTexture"
5-
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
4+
type="CompressedTexture2D"
5+
uid="uid://ckk8c7brnrgwa"
6+
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"
67
metadata={
78
"vram_texture": false
89
}
910

1011
[deps]
1112

1213
source_file="res://icon.png"
13-
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
14+
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"]
1415

1516
[params]
1617

1718
compress/mode=0
19+
compress/high_quality=false
1820
compress/lossy_quality=0.7
19-
compress/hdr_mode=0
20-
compress/bptc_ldr=0
21+
compress/hdr_compression=1
2122
compress/normal_map=0
22-
flags/repeat=1
23-
flags/filter=true
24-
flags/mipmaps=false
25-
flags/anisotropic=false
26-
flags/srgb=2
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
2728
process/fix_alpha_border=true
2829
process/premult_alpha=false
29-
process/HDR_as_SRGB=false
30-
process/invert_color=false
3130
process/normal_map_invert_y=false
32-
stream=false
33-
size_limit=0
34-
detect_3d=true
35-
svg/scale=1.0
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1

demo/main.tscn

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,41 @@
1-
[gd_scene load_steps=6 format=2]
1+
[gd_scene load_steps=6 format=3 uid="uid://n0h8fmj0t58s"]
22

3-
[ext_resource path="res://addons/ropesim/RopeRendererLine2D.gd" type="Script" id=1]
4-
[ext_resource path="res://addons/ropesim/RopeHandle.gd" type="Script" id=2]
5-
[ext_resource path="res://addons/ropesim/RopeAnchor.gd" type="Script" id=3]
6-
[ext_resource path="res://addons/ropesim/Rope.gd" type="Script" id=4]
7-
[ext_resource path="res://icon.png" type="Texture" id=5]
3+
[ext_resource type="Script" path="res://addons/ropesim/RopeRendererLine2D.gd" id="1"]
4+
[ext_resource type="Script" path="res://addons/ropesim/RopeHandle.gd" id="2"]
5+
[ext_resource type="Script" path="res://addons/ropesim/RopeAnchor.gd" id="3"]
6+
[ext_resource type="Script" path="res://addons/ropesim/Rope.gd" id="4"]
7+
[ext_resource type="Texture2D" uid="uid://ckk8c7brnrgwa" path="res://icon.png" id="5"]
88

99
[node name="main" type="Node2D"]
1010

11+
[node name="RopeHandle" type="Marker2D" parent="."]
12+
position = Vector2(306, 27)
13+
script = ExtResource("2")
14+
rope_path = NodePath("../Rope")
15+
16+
[node name="RopeAnchor" type="Marker2D" parent="."]
17+
position = Vector2(218.663, 126.848)
18+
script = ExtResource("3")
19+
rope_path = NodePath("../Rope")
20+
rope_position = 0.5
21+
22+
[node name="Icon" type="Sprite2D" parent="RopeAnchor"]
23+
position = Vector2(0, 32)
24+
texture = ExtResource("5")
25+
1126
[node name="Rope" type="Node2D" parent="."]
12-
position = Vector2( 196, 141 )
13-
script = ExtResource( 4 )
14-
__meta__ = {
15-
"_edit_group_": true
16-
}
27+
texture_repeat = 2
28+
position = Vector2(160, 51)
29+
script = ExtResource("4")
1730
rope_length = 200.0
1831
stiffness = 10.0
1932
damping = 10.0
2033
render_line = false
34+
metadata/_edit_group_ = true
2135

2236
[node name="RopeRendererLine2D" type="Line2D" parent="Rope"]
2337
show_behind_parent = true
24-
position = Vector2( 154, 21 )
25-
points = PoolVector2Array( -154, -21, -143.112, -3.3578, -129.393, 12.1636, -112.785, 24.5154, -93.8317, 32.7495, -73.4055, 35.5385, -53.1455, 32.0919, -34.7684, 23.1087, -19.0121, 10.2769, -5.66467, -4.83215, 5.8414, -21.1909 )
26-
default_color = Color( 1, 1, 1, 1 )
27-
texture = ExtResource( 5 )
38+
points = PackedVector2Array(0, 0, 5.20265, 20.1047, 12.2637, 39.6164, 22.829, 57.4394, 38.508, 70.9481, 58.6628, 75.848, 78.8497, 70.8331, 96.0613, 59.2695, 110.211, 44.3839, 122.031, 27.9181, 132.2, 10.6962)
39+
texture = ExtResource("5")
2840
texture_mode = 1
29-
script = ExtResource( 1 )
30-
31-
[node name="RopeAnchor" type="Position2D" parent="Rope"]
32-
position = Vector2( 80.5945, 56.5385 )
33-
script = ExtResource( 3 )
34-
rope_path = NodePath("..")
35-
rope_position = 0.5
36-
37-
[node name="Icon" type="Sprite" parent="Rope/RopeAnchor"]
38-
position = Vector2( 0, 32 )
39-
texture = ExtResource( 5 )
40-
41-
[node name="RopeHandle" type="Position2D" parent="."]
42-
position = Vector2( 362, 129 )
43-
script = ExtResource( 2 )
44-
rope_path = NodePath("../Rope")
41+
script = ExtResource("1")

demo/project.godot

Lines changed: 6 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -6,60 +6,22 @@
66
; [section] ; section goes between []
77
; param=value ; assign values to parameters
88

9-
config_version=4
10-
11-
_global_script_classes=[ {
12-
"base": "Node2D",
13-
"class": "Rope",
14-
"language": "GDScript",
15-
"path": "res://addons/ropesim/Rope.gd"
16-
}, {
17-
"base": "Position2D",
18-
"class": "RopeAnchor",
19-
"language": "GDScript",
20-
"path": "res://addons/ropesim/RopeAnchor.gd"
21-
}, {
22-
"base": "Node",
23-
"class": "RopeCollisionShapeGenerator",
24-
"language": "GDScript",
25-
"path": "res://addons/ropesim/RopeCollisionShapeGenerator.gd"
26-
}, {
27-
"base": "Position2D",
28-
"class": "RopeHandle",
29-
"language": "GDScript",
30-
"path": "res://addons/ropesim/RopeHandle.gd"
31-
}, {
32-
"base": "Line2D",
33-
"class": "RopeRendererLine2D",
34-
"language": "GDScript",
35-
"path": "res://addons/ropesim/RopeRendererLine2D.gd"
36-
}, {
37-
"base": "Node",
38-
"class": "RopeToolHelper",
39-
"language": "GDScript",
40-
"path": "res://addons/ropesim/RopeToolHelper.gd"
41-
} ]
42-
_global_script_class_icons={
43-
"Rope": "",
44-
"RopeAnchor": "",
45-
"RopeCollisionShapeGenerator": "",
46-
"RopeHandle": "",
47-
"RopeRendererLine2D": "",
48-
"RopeToolHelper": ""
49-
}
9+
config_version=5
5010

5111
[application]
5212

5313
config/name="ropesim example"
14+
run/main_scene="res://main.tscn"
15+
config/features=PackedStringArray("4.2")
5416
config/icon="res://icon.png"
5517

56-
[autoload]
18+
[debug]
5719

58-
NativeRopeServer="*res://addons/ropesim/NativeRopeServer.gdns"
20+
gdscript/warnings/exclude_addons=false
5921

6022
[editor_plugins]
6123

62-
enabled=PoolStringArray( "res://addons/ropesim/plugin.cfg" )
24+
enabled=PackedStringArray("res://addons/ropesim/plugin.cfg")
6325

6426
[gui]
6527

0 commit comments

Comments
 (0)