1
Fork 0
mirror of https://github.com/Steffo99/looping-for-loops.git synced 2024-11-25 01:24:21 +00:00

❇️ Add very simple Player scene

This commit is contained in:
Steffo 2020-10-03 03:20:01 +02:00
parent 4d9781b19e
commit d8765e25f1
3 changed files with 30 additions and 4 deletions

View file

@ -1,8 +1,12 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Scenes/Conductor.tscn" type="PackedScene" id=1]
[ext_resource path="res://Scenes/Player.tscn" type="PackedScene" id=1]
[ext_resource path="res://Scenes/Conductor.tscn" type="PackedScene" id=2]
[node name="Main" type="Node2D"]
[node name="Conductor" parent="." instance=ExtResource( 1 )]
[node name="Conductor" parent="." instance=ExtResource( 2 )]
song_offset = 200000.0
[node name="Player" parent="." instance=ExtResource( 1 )]
position = Vector2( 293.919, 200.506 )

16
Scenes/Player.tscn Normal file
View file

@ -0,0 +1,16 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Sprites/placeholder_cat.jpg" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 22.5, 22.5 )
[node name="Player" type="KinematicBody2D"]
collision_layer = 2
[node name="Sprite" type="Sprite" parent="."]
scale = Vector2( 0.25, 0.25 )
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )

View file

@ -21,7 +21,13 @@ _global_script_class_icons={
[application]
config/name="ld47"
run/main_scene="res://Main.tscn"
run/main_scene="res://Scenes/Main.tscn"
[layer_names]
2d_render/layer_1="Default"
2d_physics/layer_1="Default"
2d_physics/layer_2="Player"
[rendering]