Skip to content

Commit

Permalink
stairs switch added
Browse files Browse the repository at this point in the history
A deeper implementation is still needed for the actual scene change.
  • Loading branch information
MIfeanyi committed Sep 27, 2017
1 parent e480e40 commit e9a85d9
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion game.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=17 format=1]
[gd_scene load_steps=19 format=1]

[ext_resource path="res://tilesets/level1.tres" type="TileSet" id=1]
[ext_resource path="res://player.gd" type="Script" id=2]
Expand All @@ -9,6 +9,7 @@
[ext_resource path="res://tutorial.gd" type="Script" id=7]
[ext_resource path="res://gfx/Endless/level1_08.png" type="Texture" id=8]
[ext_resource path="res://gfx/Endless/soul.png" type="Texture" id=9]
[ext_resource path="res://gfx/Endless/stairs.png" type="Texture" id=10]

[sub_resource type="RectangleShape2D" id=1]

Expand Down Expand Up @@ -116,6 +117,23 @@ tracks/0/keys = {
"values": [ 0.0, 0.8 ]
}
[sub_resource type="Animation" id=8]
resource/name = "Fade In"
length = 1.0
loop = false
step = 0.1
tracks/0/type = "value"
tracks/0/path = NodePath("stairs:visibility/opacity")
tracks/0/interp = 1
tracks/0/imported = false
tracks/0/keys = {
"times": FloatArray( 0, 1 ),
"transitions": FloatArray( 1, 1 ),
"update": 0,
"values": [ 0.0, 1.0 ]
}
[node name="Game" type="Node"]
[node name="TileMap" type="TileMap" parent="."]
Expand Down Expand Up @@ -315,6 +333,8 @@ max_lines_visible = -1
[node name="Ghost" type="Node2D" parent="Game"]
editor/display_folded = true
[node name="soul" type="KinematicBody2D" parent="Game/Ghost" groups=[
"tut_char",
]]
Expand Down Expand Up @@ -354,4 +374,27 @@ playback/speed = 1.0
blend_times = [ ]
autoplay = ""
[node name="Switches" type="Node2D" parent="."]
[node name="Level 2 Stairs" type="Node2D" parent="Switches" groups=[
"stairs",
]]
[node name="stairs" type="Sprite" parent="Switches/Level 2 Stairs"]
visibility/opacity = 0.0
transform/pos = Vector2( 409.056, 559.319 )
texture = ExtResource( 10 )
[node name="anim" type="AnimationPlayer" parent="Switches/Level 2 Stairs"]
playback/process_mode = 1
playback/default_blend_time = 0.0
root/root = NodePath("..")
"anims/Fade In" = SubResource( 8 )
playback/active = true
playback/speed = 1.0
blend_times = [ ]
autoplay = ""
Binary file added gfx/Endless/stairs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e9a85d9

Please sign in to comment.