1
0

Lesson 10

This commit is contained in:
FoxSpellCaster
2025-01-10 20:20:30 -05:00
parent 07cf5c6f53
commit 00a1e92556
10 changed files with 139 additions and 0 deletions

24
Physics/Physics.tscn Normal file
View File

@@ -0,0 +1,24 @@
[gd_scene load_steps=4 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"]
[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)