30 lines
1,010 B
Text
30 lines
1,010 B
Text
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://Camera2D.gd" type="Script" id=1]
|
|
[ext_resource path="res://Player.tscn" type="PackedScene" id=2]
|
|
[ext_resource path="res://res/sprites.png" type="Texture" id=3]
|
|
|
|
[sub_resource type="AtlasTexture" id=1]
|
|
atlas = ExtResource( 3 )
|
|
region = Rect2( 0, 0, 144, 256 )
|
|
|
|
[node name="View" type="Node2D"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Player" parent="." instance=ExtResource( 2 )]
|
|
position = Vector2( 210, 320 )
|
|
gravity = 0.0
|
|
collision_layer = 0
|
|
|
|
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
|
|
|
|
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"]
|
|
motion_scale = Vector2( 0.5, 1 )
|
|
motion_mirroring = Vector2( 420, 0 )
|
|
|
|
[node name="Background" type="Sprite" parent="ParallaxBackground/ParallaxLayer"]
|
|
position = Vector2( 209.839, 320 )
|
|
scale = Vector2( 2.91891, 2.5 )
|
|
texture = SubResource( 1 )
|
|
region_rect = Rect2( 0, 0, 144, 256 )
|
|
[connection signal="move" from="Player" to="." method="_on_Player_move"]
|