1
0
Files
godotminiprojects/Physics/Physics.tscn
FoxSpellCaster 8a0223f07b Lesson 11
2025-01-10 22:13:19 -05:00

28 lines
991 B
Plaintext

[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="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"]
size = Vector2(18, 18)
[node name="Main" type="Node2D"]
[node name="Player" type="RigidBody2D" parent="."]
mass = 5.0
gravity_scale = 0.0
linear_damp = 1.0
script = ExtResource("1_ry666")
[node name="PhysicsCharacter" type="Sprite2D" parent="Player"]
texture = ExtResource("1_8qjul")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
shape = SubResource("RectangleShape2D_8qjul")
[node name="Camera2D" type="Camera2D" parent="."]
zoom = Vector2(4, 4)
[node name="Crate" parent="." instance=ExtResource("3_eghp1")]