Initial commit
This commit is contained in:
commit
0f67687c55
39 changed files with 1205 additions and 0 deletions
28
player.tscn
Normal file
28
player.tscn
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://cpukut4kdy4pg"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://joar7fypug07" path="res://player.gd" id="1_onrkg"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://c7ceeyn5e3kgr" path="res://playerSprites.tres" id="2_onrkg"]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_onrkg"]
|
||||
friction = 0.0
|
||||
bounce = 1.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_4flbx"]
|
||||
radius = 4.0
|
||||
|
||||
[node name="Player" type="RigidBody2D" node_paths=PackedStringArray("animated_sprite")]
|
||||
physics_material_override = SubResource("PhysicsMaterial_onrkg")
|
||||
gravity_scale = 0.0
|
||||
lock_rotation = true
|
||||
linear_damp_mode = 1
|
||||
script = ExtResource("1_onrkg")
|
||||
start_speed = 2000
|
||||
animated_sprite = NodePath("AnimatedSprite2D")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
scale = Vector2(0.527602, 0.527602)
|
||||
sprite_frames = ExtResource("2_onrkg")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_4flbx")
|
||||
Loading…
Add table
Add a link
Reference in a new issue