aboutsummaryrefslogtreecommitdiff
path: root/CityScene.tscn
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2022-03-31 15:46:33 +0200
committerToni Uhlig <matzeton@googlemail.com>2022-03-31 15:46:33 +0200
commit321def57ca32403f91bca78b4d9b0ccaa138f2d6 (patch)
tree97bb7b79dbce70915b8326bc15134943f0b37f4b /CityScene.tscn
parentc9cd171766c528ad9281c204ae4a0b7c8b425bbb (diff)
second commit
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'CityScene.tscn')
-rw-r--r--CityScene.tscn107
1 files changed, 103 insertions, 4 deletions
diff --git a/CityScene.tscn b/CityScene.tscn
index 20f69fe..eac95b1 100644
--- a/CityScene.tscn
+++ b/CityScene.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=4 format=2]
+[gd_scene load_steps=6 format=2]
[ext_resource path="res://CityBackground.png" type="Texture" id=1]
@@ -91,25 +91,48 @@ func _process(delta):
9/shapes = [ ]
9/z_index = 0
+[sub_resource type="Shader" id=7]
+code = "shader_type canvas_item;
+
+void fragment()
+{
+ vec4 col = texture(TEXTURE, UV);
+ if (col.a > 0.0) {
+ col += vec4(0.05, 0.01, 0.00, 0.0);
+ }
+ COLOR = col;
+}
+"
+
+[sub_resource type="ShaderMaterial" id=6]
+shader = SubResource( 7 )
+
[node name="Node2D" type="Node2D"]
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
+layer = -1
scroll_ignore_camera_zoom = true
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"]
position = Vector2( 295, 103 )
motion_mirroring = Vector2( 640, 0 )
script = SubResource( 2 )
-speed = 80.0
+__meta__ = {
+"_edit_lock_": true
+}
+speed = 100.0
[node name="StaticBody2D" type="StaticBody2D" parent="ParallaxBackground/ParallaxLayer"]
+__meta__ = {
+"_edit_lock_": true
+}
[node name="TileMap" type="TileMap" parent="ParallaxBackground/ParallaxLayer/StaticBody2D"]
position = Vector2( 216, 39 )
tile_set = SubResource( 1 )
-cell_size = Vector2( 64, 48 )
+cell_size = Vector2( 64, 4 )
format = 1
-tile_data = PoolIntArray( -65537, 6, 0, 65525, 5, 0, 65535, 5, 0, 0, 0, 0, 1, 1, 0 )
+tile_data = PoolIntArray( 65525, 5, 0, 65535, 5, 0, 0, 0, 0, 1, 1, 0 )
__meta__ = {
"_edit_lock_": true
}
@@ -118,6 +141,82 @@ __meta__ = {
visible = false
position = Vector2( -183, 42 )
polygon = PoolVector2Array( 124, -113, 17, -2, 9, 97, 321, 91, 407, -97 )
+__meta__ = {
+"_edit_lock_": true
+}
+
+[node name="ParallaxBackground2" type="ParallaxBackground" parent="."]
+layer = -2
+scroll_ignore_camera_zoom = true
+
+[node name="ParallaxLayer2" type="ParallaxLayer" parent="ParallaxBackground2"]
+position = Vector2( 295, 103 )
+motion_mirroring = Vector2( 640, 0 )
+script = SubResource( 2 )
+__meta__ = {
+"_edit_lock_": true
+}
+speed = 50.0
+
+[node name="StaticBody2D" type="StaticBody2D" parent="ParallaxBackground2/ParallaxLayer2"]
+__meta__ = {
+"_edit_lock_": true
+}
+
+[node name="TileMap" type="TileMap" parent="ParallaxBackground2/ParallaxLayer2/StaticBody2D"]
+material = SubResource( 6 )
+position = Vector2( 216, 39 )
+tile_set = SubResource( 1 )
+cell_size = Vector2( 64, 4 )
+format = 1
+tile_data = PoolIntArray( -11, 6, 0, -65527, 6, 0, 0, 0, 0, 1, 1, 0 )
+__meta__ = {
+"_edit_lock_": true
+}
+
+[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="ParallaxBackground2/ParallaxLayer2/StaticBody2D"]
+visible = false
+position = Vector2( -183, 42 )
+polygon = PoolVector2Array( 124, -113, 17, -2, 9, 97, 321, 91, 407, -97 )
+__meta__ = {
+"_edit_lock_": true
+}
+
+[node name="ParallaxBackground3" type="ParallaxBackground" parent="."]
+layer = 0
+scroll_ignore_camera_zoom = true
+
+[node name="ParallaxLayer2" type="ParallaxLayer" parent="ParallaxBackground3"]
+position = Vector2( 295, 103 )
+motion_mirroring = Vector2( 640, 0 )
+script = SubResource( 2 )
+__meta__ = {
+"_edit_lock_": true
+}
+speed = 150.0
+
+[node name="StaticBody2D" type="StaticBody2D" parent="ParallaxBackground3/ParallaxLayer2"]
+__meta__ = {
+"_edit_lock_": true
+}
+
+[node name="TileMap" type="TileMap" parent="ParallaxBackground3/ParallaxLayer2/StaticBody2D"]
+position = Vector2( 216, 39 )
+tile_set = SubResource( 1 )
+cell_size = Vector2( 64, 4 )
+format = 1
+tile_data = PoolIntArray( 0, 0, 0, 1, 1, 0, 131061, 7, 0, 65545, 7, 0 )
+__meta__ = {
+"_edit_lock_": true
+}
+
+[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="ParallaxBackground3/ParallaxLayer2/StaticBody2D"]
+visible = false
+position = Vector2( -183, 42 )
+polygon = PoolVector2Array( 124, -113, 17, -2, 9, 97, 321, 91, 407, -97 )
+__meta__ = {
+"_edit_lock_": true
+}
[node name="Camera2D" type="Camera2D" parent="."]
visible = false