basic texture
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dmsd30hc2ob1w"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dmsd30hc2ob1w"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/playground/ball/Ball.gd" id="1_vsr7q"]
|
||||
[ext_resource type="Texture2D" uid="uid://8gw5knpb4bx6" path="res://assets/ball.png" id="2_efxb4"]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_h7mi1"]
|
||||
friction = 0.0
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_bdxrg"]
|
||||
size = Vector2(32, 32)
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_8ps5q"]
|
||||
radius = 20.0
|
||||
|
||||
[node name="Ball" type="RigidBody2D"]
|
||||
mass = 0.01
|
||||
@@ -20,12 +21,13 @@ contact_monitor = true
|
||||
linear_damp_mode = 1
|
||||
script = ExtResource("1_vsr7q")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(20, 20)
|
||||
shape = SubResource("RectangleShape2D_bdxrg")
|
||||
shape = SubResource("CircleShape2D_8ps5q")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
texture = ExtResource("2_efxb4")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
|
||||
Reference in New Issue
Block a user