Skip to content

Commit

Permalink
improved title screen
Browse files Browse the repository at this point in the history
  • Loading branch information
fry- committed Dec 1, 2020
1 parent 93c3e32 commit 256241f
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 16 deletions.
46 changes: 30 additions & 16 deletions intro/intro.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene load_steps=12 format=2]

[ext_resource path="res://fonts/firasans_bold_big.tres" type="DynamicFont" id=1]
[ext_resource path="res://intro/title.png" type="Texture" id=1]
[ext_resource path="res://fonts/FiraSans-Regular.ttf" type="DynamicFontData" id=2]
[ext_resource path="res://level/earth.png" type="Texture" id=3]
[ext_resource path="res://intro/intro.gd" type="Script" id=4]
Expand Down Expand Up @@ -105,6 +105,30 @@ tracks/5/keys = {
"update": 1,
"values": [ true, false ]
}
tracks/6/type = "value"
tracks/6/path = NodePath("title:position")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/keys = {
"times": PoolRealArray( 0, 3 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 962, 210 ), Vector2( 962, 146 ) ]
}
tracks/7/type = "value"
tracks/7/path = NodePath("title:self_modulate")
tracks/7/interp = 1
tracks/7/loop_wrap = true
tracks/7/imported = false
tracks/7/enabled = true
tracks/7/keys = {
"times": PoolRealArray( 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0.752941 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0.752941 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0.752941 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0.752941 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0.752941 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0.752941 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0.752941 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0.752941 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0.752941 ), Color( 1, 1, 1, 1 ) ]
}

[node name="intro" type="Control"]
anchor_right = 1.0
Expand All @@ -118,24 +142,16 @@ __meta__ = {
"_edit_use_anchors_": false
}

[node name="title" type="Sprite" parent="."]
self_modulate = Color( 1, 1, 1, 0 )
position = Vector2( 962, 210 )
texture = ExtResource( 1 )

[node name="earth" type="Sprite" parent="."]
position = Vector2( 960, 840 )
scale = Vector2( 2, 2 )
texture = ExtResource( 3 )

[node name="title" type="RichTextLabel" parent="."]
anchor_right = 1.0
margin_top = 49.0
margin_bottom = 227.0
custom_fonts/bold_font = ExtResource( 1 )
bbcode_enabled = true
bbcode_text = "[center][b]Moon Dragoon[/b][/center]"
text = "Moon Dragoon"
scroll_active = false
__meta__ = {
"_edit_use_anchors_": false
}

[node name="press_key" type="RichTextLabel" parent="."]
anchor_left = 0.5
anchor_top = 1.0
Expand Down Expand Up @@ -242,8 +258,6 @@ custom_constants/shadow_offset_y = 4
bbcode_enabled = true
bbcode_text = "Upon landing, you glance at the Earth and notice its depth-lacking, disc-like structure. As the revelation of the [b]Earth's flatness[/b] dawns on you, you are greeted by drones advertising themselves as dispatched by the [b]Planar Earth Selenian Territories[/b].
They don't seem willing to let you go back to the spaceship with your discovery."
visible_characters = 0
percent_visible = 0.0
text = "Upon landing, you glance at the Earth and notice its depth-lacking, disc-like structure. As the revelation of the Earth's flatness dawns on you, you are greeted by drones advertising themselves as dispatched by the Planar Earth Selenian Territories.
They don't seem willing to let you go back to the spaceship with your discovery."
__meta__ = {
Expand Down
Binary file added intro/title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions intro/title.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/title.png-f3e6f8c5e54fdc7a6a5bcfb594097467.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://intro/title.png"
dest_files=[ "res://.import/title.png-f3e6f8c5e54fdc7a6a5bcfb594097467.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

0 comments on commit 256241f

Please sign in to comment.