Lesson 11
This commit is contained in:
18
Physics/Crate.tscn
Normal file
18
Physics/Crate.tscn
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
[gd_scene load_steps=3 format=3 uid="uid://dmsornuuqyfhd"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://kekglgglqd17" path="res://Physics/Crate.png" id="1_72488"]
|
||||||
|
|
||||||
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_hfrgb"]
|
||||||
|
size = Vector2(18, 18)
|
||||||
|
|
||||||
|
[node name="Crate" type="RigidBody2D"]
|
||||||
|
gravity_scale = 0.0
|
||||||
|
linear_damp = 3.0
|
||||||
|
|
||||||
|
[node name="Spirte" type="Sprite2D" parent="."]
|
||||||
|
position = Vector2(-71, 0)
|
||||||
|
texture = ExtResource("1_72488")
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
position = Vector2(-71, 0)
|
||||||
|
shape = SubResource("RectangleShape2D_hfrgb")
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
[gd_scene load_steps=4 format=3 uid="uid://ynpyx1a6qtoq"]
|
[gd_scene load_steps=5 format=3 uid="uid://ynpyx1a6qtoq"]
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://fxeb0j820f47" path="res://Physics/PhysicsCharacter.png" id="1_8qjul"]
|
[ext_resource type="Texture2D" uid="uid://fxeb0j820f47" path="res://Physics/PhysicsCharacter.png" id="1_8qjul"]
|
||||||
[ext_resource type="Script" uid="uid://c5pwbg75g5n8q" path="res://Physics/PhysicsPlayer.gd" id="1_ry666"]
|
[ext_resource type="Script" uid="uid://c5pwbg75g5n8q" path="res://Physics/PhysicsPlayer.gd" id="1_ry666"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dmsornuuqyfhd" path="res://Physics/Crate.tscn" id="3_eghp1"]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8qjul"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8qjul"]
|
||||||
size = Vector2(18, 18)
|
size = Vector2(18, 18)
|
||||||
@@ -22,3 +23,5 @@ shape = SubResource("RectangleShape2D_8qjul")
|
|||||||
|
|
||||||
[node name="Camera2D" type="Camera2D" parent="."]
|
[node name="Camera2D" type="Camera2D" parent="."]
|
||||||
zoom = Vector2(4, 4)
|
zoom = Vector2(4, 4)
|
||||||
|
|
||||||
|
[node name="Crate" parent="." instance=ExtResource("3_eghp1")]
|
||||||
|
|||||||
Reference in New Issue
Block a user