Commit 0283b855 authored by Nathan Lovato's avatar Nathan Lovato
Browse files

Add foreground, particles, and tweak level layout

parent 7b72552f
Pipeline #4973 passed with stage
in 4 minutes and 1 second
[gd_scene load_steps=6 format=2]
[gd_scene load_steps=14 format=2]
[ext_resource path="res://Game.gd" type="Script" id=1]
[ext_resource path="res://Gnu/Gnu.tscn" type="PackedScene" id=2]
[ext_resource path="res://PillarSpawner/PillarSpawner.tscn" type="PackedScene" id=3]
[ext_resource path="res://assets/bg.png" type="Texture" id=4]
[ext_resource path="res://ScoreLabel/ScoreLabel.tscn" type="PackedScene" id=5]
[ext_resource path="res://assets/bg.png" type="Texture" id=2]
[ext_resource path="res://ScoreLabel/ScoreLabel.tscn" type="PackedScene" id=3]
[ext_resource path="res://assets/ground.png" type="Texture" id=4]
[ext_resource path="res://PillarSpawner/PillarSpawner.tscn" type="PackedScene" id=5]
[ext_resource path="res://Gnu/Gnu.tscn" type="PackedScene" id=6]
[ext_resource path="res://assets/fence.png" type="Texture" id=7]
[ext_resource path="res://assets/particle_hairy.png" type="Texture" id=8]
[node name="Game" type="Node2D"]
script = ExtResource( 1 )
[sub_resource type="Gradient" id=1]
offsets = PoolRealArray( 0, 0.207407, 0.822222, 1 )
colors = PoolColorArray( 0.403922, 0.2, 0.72549, 0, 0.403922, 0.2, 0.72549, 1, 0.403922, 0.2, 0.72549, 1, 0.403922, 0.2, 0.72549, 0 )
[node name="Gnu" parent="." instance=ExtResource( 2 )]
position = Vector2( 190, 960 )
[sub_resource type="GradientTexture" id=2]
gradient = SubResource( 1 )
[sub_resource type="Curve" id=4]
_data = [ Vector2( 0.00428528, 0.0173051 ), 0.0, 1.40242, 0, 0, Vector2( 0.292929, 0.747705 ), 0.956195, 0.956195, 0, 0, Vector2( 1, 1 ), 0.0, 0.0, 0, 0 ]
[node name="PillarSpawner" parent="." instance=ExtResource( 3 )]
position = Vector2( -10, 950 )
[sub_resource type="CurveTexture" id=5]
curve = SubResource( 4 )
[sub_resource type="ParticlesMaterial" id=3]
emission_shape = 2
emission_box_extents = Vector3( 640, 20, 1 )
flag_disable_z = true
spread = 24.68
flatness = 0.32
gravity = Vector3( 0, 40, 0 )
initial_velocity = 57.47
initial_velocity_random = 0.4
angular_velocity = 20.0
angular_velocity_random = 1.0
orbit_velocity = 0.0
orbit_velocity_random = 0.0
damping = 25.29
angle = 15.0
angle_random = 1.0
scale = 0.7
scale_random = 0.54
scale_curve = SubResource( 5 )
color_ramp = SubResource( 2 )
hue_variation_random = 1.0
[node name="Game" type="Node2D"]
script = ExtResource( 1 )
[node name="BackgroundLayer" type="CanvasLayer" parent="."]
editor/display_folded = true
layer = -10
[node name="Sky" type="Sprite" parent="BackgroundLayer"]
texture = ExtResource( 4 )
texture = ExtResource( 2 )
offset = Vector2( 540, 960 )
[node name="ScoreLabel" parent="BackgroundLayer" instance=ExtResource( 5 )]
[node name="ScoreLabel" parent="BackgroundLayer" instance=ExtResource( 3 )]
[node name="ParallaxBackground2" type="ParallaxBackground" parent="."]
layer = -2
scale = Vector2( 0.66, 1 )
transform = Transform2D( 0.66, 0, 0, 1, 0, 0 )
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground2"]
[node name="ground2" type="Sprite" parent="ParallaxBackground2/ParallaxLayer"]
modulate = Color( 0.878431, 0.286275, 0.643137, 1 )
position = Vector2( 425, 1517.41 )
scale = Vector2( 0.787037, 0.787037 )
texture = ExtResource( 4 )
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
scale = Vector2( 0.8, 1 )
transform = Transform2D( 0.8, 0, 0, 1, 0, 0 )
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"]
[node name="ground3" type="Sprite" parent="ParallaxBackground/ParallaxLayer"]
modulate = Color( 0.760784, 0.0980392, 0.494118, 1 )
position = Vector2( 540, 1640 )
texture = ExtResource( 4 )
[node name="PillarSpawner" parent="." instance=ExtResource( 5 )]
position = Vector2( 0, 950 )
[node name="Gnu" parent="." instance=ExtResource( 6 )]
position = Vector2( 190, 960 )
z_index = 1
[node name="fence" type="Sprite" parent="."]
position = Vector2( 533.5, 1607.5 )
texture = ExtResource( 7 )
[node name="fence2" type="Sprite" parent="."]
position = Vector2( 1603.5, 1602.5 )
texture = ExtResource( 7 )
[node name="CanvasLayer" type="CanvasLayer" parent="."]
layer = 10
[node name="Particles2D" type="Particles2D" parent="CanvasLayer"]
position = Vector2( 510, 1658.89 )
amount = 20
lifetime = 3.0
preprocess = 2.0
process_material = SubResource( 3 )
texture = ExtResource( 8 )
[node name="ground" type="Sprite" parent="CanvasLayer"]
modulate = Color( 0.403922, 0.2, 0.72549, 1 )
position = Vector2( 530, 1878.89 )
scale = Vector2( 1.19444, 1.19444 )
texture = ExtResource( 4 )
extends Camera2D
onready var start_offset = position
func _ready():
set_as_toplevel(true)
position = owner.position
position = owner.position + start_offset
func _physics_process(delta):
position.x = owner.position.x
position.x = owner.position.x + start_offset.x
......@@ -12,8 +12,10 @@ collision_mask = 6
script = ExtResource( 1 )
[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2( 250, 0 )
current = true
process_mode = 0
offset_h = -0.37
drag_margin_left = 0.0
drag_margin_top = 0.0
drag_margin_right = 0.0
......
......@@ -14,7 +14,6 @@ onready var spawn_area = get_node("SpawnArea")
export(float) var spawn_interval = 400.0
var pillar_scene = preload("res://Pillar/Pillar.tscn")
var WINDOW_WIDTH = ProjectSettings.get('display/window/size/width')
......
......@@ -9,5 +9,5 @@ script = ExtResource( 1 )
[node name="SpawnArea" type="Node2D" parent="."]
script = ExtResource( 2 )
vertical_extents = 800.0
vertical_extents = 480.0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment