-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWorld.tscn
54 lines (38 loc) · 1.71 KB
/
World.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[gd_scene load_steps=9 format=2]
[ext_resource path="res://assets/forest_background.jpg" type="Texture" id=1]
[ext_resource path="res://WallNode.tscn" type="PackedScene" id=2]
[ext_resource path="res://Player.gd" type="Script" id=3]
[ext_resource path="res://PlayerNode.gd" type="Script" id=4]
[ext_resource path="res://assets/MAGE.png" type="Texture" id=5]
[sub_resource type="CanvasItemMaterial" id=1]
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 14, 12 )
[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 16, 14 )
[node name="World" type="Node2D"]
material = SubResource( 1 )
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"]
[node name="Sprite" type="Sprite" parent="ParallaxBackground/ParallaxLayer"]
scale = Vector2( 0.75, 0.75 )
texture = ExtResource( 1 )
offset = Vector2( 0, 380 )
region_enabled = true
region_rect = Rect2( 0, 0, 1332, 850 )
[node name="PlayerNode" type="Node2D" parent="."]
script = ExtResource( 4 )
[node name="Player" type="KinematicBody2D" parent="PlayerNode"]
script = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerNode/Player"]
position = Vector2( -2, 0 )
shape = SubResource( 3 )
[node name="Sprite" type="Sprite" parent="PlayerNode/Player"]
texture = ExtResource( 5 )
[node name="Detect" type="Area2D" parent="PlayerNode/Player"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerNode/Player/Detect"]
position = Vector2( -2, 0 )
shape = SubResource( 4 )
[node name="WallNode" parent="." instance=ExtResource( 2 )]
scale = Vector2( 0.75, 0.75 )
[node name="Camera2D" type="Camera2D" parent="."]
zoom = Vector2( 0.5, 0.5 )