-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implemented cutscenes, but the hub is broken, so they come back to sp…
…ace scene start
- Loading branch information
Showing
15 changed files
with
196 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
extends Node2D | ||
|
||
var seconds = 0 | ||
var space_scene | ||
var has_dialogue = true | ||
|
||
func skip_dialogue(): | ||
if has_dialogue: | ||
get_node("text").set_bbcode("And despite all the excitement, the best room is still a restroom.") | ||
has_dialogue = false | ||
|
||
func _input(event): | ||
if event.type == InputEvent.MOUSE_BUTTON && event.pressed && has_dialogue == false: | ||
get_tree().change_scene_to(space_scene) | ||
|
||
func _ready(): | ||
# Preload main scene | ||
space_scene = preload("res://rooms/space/space_1.tscn") | ||
set_process_input(true) | ||
set_process(true) | ||
|
||
func _process(delta): | ||
# Add up seconds passed | ||
seconds += delta | ||
if (seconds >= 5 && has_dialogue) || seconds >= 10: | ||
skip_dialogue() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[gd_scene load_steps=6 format=1] | ||
|
||
[ext_resource path="res://globals/scene.gd" type="Script" id=1] | ||
[ext_resource path="res://rooms/space/cutscene_final.gd" type="Script" id=2] | ||
[ext_resource path="res://rooms/space/sprites/cutscene_final.png" type="Texture" id=3] | ||
[ext_resource path="res://fonts/opensans72.fnt" type="BitmapFont" id=4] | ||
[ext_resource path="res://globals/game.scn" type="PackedScene" id=5] | ||
|
||
[node name="space_intro" type="Node2D"] | ||
|
||
script/script = ExtResource( 1 ) | ||
|
||
[node name="Node2D" type="Node2D" parent="."] | ||
|
||
script/script = ExtResource( 2 ) | ||
|
||
[node name="TextureFrame" type="TextureFrame" parent="Node2D"] | ||
|
||
focus/ignore_mouse = true | ||
focus/stop_mouse = true | ||
size_flags/horizontal = 2 | ||
size_flags/vertical = 2 | ||
margin/left = 0.0 | ||
margin/top = 0.0 | ||
margin/right = 1920.0 | ||
margin/bottom = 1080.0 | ||
texture = ExtResource( 3 ) | ||
expand = true | ||
stretch_mode = 0 | ||
|
||
[node name="text" type="RichTextLabel" parent="Node2D"] | ||
|
||
rect/scale = Vector2( 0.5, 0.5 ) | ||
focus/ignore_mouse = false | ||
focus/stop_mouse = true | ||
size_flags/horizontal = 2 | ||
size_flags/vertical = 2 | ||
margin/left = 660.0 | ||
margin/top = 950.0 | ||
margin/right = 1884.0 | ||
margin/bottom = 1180.0 | ||
custom_fonts/normal_font = ExtResource( 4 ) | ||
bbcode/enabled = true | ||
bbcode/bbcode = "Well, the toilet flushed me out, but it also rushed me back in." | ||
visible_characters = -1 | ||
|
||
[node name="game" parent="." instance=ExtResource( 5 )] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
extends Node2D | ||
|
||
var seconds = 0 | ||
var space_scene | ||
var has_dialogue = true | ||
|
||
func skip_dialogue(): | ||
if has_dialogue: | ||
get_node("text").set_bbcode("") | ||
has_dialogue = false | ||
|
||
func _input(event): | ||
if event.type == InputEvent.MOUSE_BUTTON && event.pressed && has_dialogue == false: | ||
get_tree().change_scene_to(space_scene) | ||
|
||
func _ready(): | ||
# Preload main scene | ||
space_scene = preload("res://rooms/space/cutscene_final.tscn") | ||
set_process_input(true) | ||
set_process(true) | ||
|
||
func _process(delta): | ||
# Add up seconds passed | ||
seconds += delta | ||
if (seconds >= 2 && has_dialogue) || seconds >= 10: | ||
skip_dialogue() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[gd_scene load_steps=6 format=1] | ||
|
||
[ext_resource path="res://globals/scene.gd" type="Script" id=1] | ||
[ext_resource path="res://rooms/space/cutscene_wee.gd" type="Script" id=2] | ||
[ext_resource path="res://rooms/space/sprites/cutscene_flying.png" type="Texture" id=3] | ||
[ext_resource path="res://fonts/opensans72.fnt" type="BitmapFont" id=4] | ||
[ext_resource path="res://globals/game.scn" type="PackedScene" id=5] | ||
|
||
[node name="space_intro" type="Node2D"] | ||
|
||
script/script = ExtResource( 1 ) | ||
|
||
[node name="Node2D" type="Node2D" parent="."] | ||
|
||
script/script = ExtResource( 2 ) | ||
|
||
[node name="TextureFrame" type="TextureFrame" parent="Node2D"] | ||
|
||
focus/ignore_mouse = true | ||
focus/stop_mouse = true | ||
size_flags/horizontal = 2 | ||
size_flags/vertical = 2 | ||
margin/left = 0.0 | ||
margin/top = 0.0 | ||
margin/right = 1920.0 | ||
margin/bottom = 1080.0 | ||
texture = ExtResource( 3 ) | ||
expand = true | ||
stretch_mode = 0 | ||
|
||
[node name="text" type="RichTextLabel" parent="Node2D"] | ||
|
||
rect/scale = Vector2( 0.5, 0.5 ) | ||
focus/ignore_mouse = false | ||
focus/stop_mouse = true | ||
size_flags/horizontal = 2 | ||
size_flags/vertical = 2 | ||
margin/left = 870.0 | ||
margin/top = 990.0 | ||
margin/right = 2094.0 | ||
margin/bottom = 1220.0 | ||
custom_fonts/normal_font = ExtResource( 4 ) | ||
bbcode/enabled = true | ||
bbcode/bbcode = "WEEEEEEEEEEEEEE!" | ||
visible_characters = -1 | ||
|
||
[node name="game" parent="." instance=ExtResource( 5 )] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.