Lesson 10
This commit is contained in:
24
Physics/Physics.tscn
Normal file
24
Physics/Physics.tscn
Normal 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)
|
||||
Reference in New Issue
Block a user