1
0

Lesson 11

This commit is contained in:
FoxSpellCaster
2025-01-10 22:13:19 -05:00
parent 00a1e92556
commit 8a0223f07b
2 changed files with 22 additions and 1 deletions

18
Physics/Crate.tscn Normal file
View 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")

View File

@@ -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")]