Skip to content

Commit

Permalink
Convert major scenes into the tscn format.
Browse files Browse the repository at this point in the history
Closes #31.
  • Loading branch information
bdero committed Jun 14, 2016
1 parent 5a2809b commit d7c039c
Show file tree
Hide file tree
Showing 16 changed files with 1,571 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engine.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[application]

name="sanic-gaiden"
main_scene="res://scenes/main.scn"
main_scene="res://scenes/main.tscn"
icon="icon.png"

[autoload]
Expand Down
Binary file removed scenes/camera.scn
Binary file not shown.
25 changes: 25 additions & 0 deletions scenes/camera.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[gd_scene load_steps=2 format=1]

[ext_resource path="res://scripts/camera.gd" type="Script" id=1]

[node name="camera" type="Spatial"]

_import_transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
script/script = ExtResource( 1 )
__meta__ = { "__editor_plugin_screen__":"Script" }

[node name="Camera" type="Camera" parent="."]

_import_transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
projection = 0
fov = 60.0
near = 0.1
far = 100.0
keep_aspect = 1
current = true
visible_layers = 1048575
environment = null
h_offset = 0.0
v_offset = 0.0


Binary file removed scenes/fade.scn
Binary file not shown.
47 changes: 47 additions & 0 deletions scenes/fade.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[gd_scene load_steps=5 format=1]

[ext_resource path="res://assets/images/black.png" type="Texture" id=1]
[ext_resource path="res://scripts/fade_resize.gd" type="Script" id=2]

[sub_resource type="Animation" id=1]

resource/name = "FadeIn"
length = 2.0
loop = false
step = 0.1
tracks/0/type = "value"
tracks/0/path = NodePath(".:visibility/opacity")
tracks/0/interp = 2
tracks/0/keys = { "cont":true, "times":FloatArray( 0, 2 ), "transitions":FloatArray( 1, 1 ), "values":[ 1.0, 0.0 ] }

[sub_resource type="Animation" id=2]

resource/name = "idle"
length = 1.0
loop = false
step = 0.1
tracks/0/type = "value"
tracks/0/path = NodePath(".:visibility/opacity")
tracks/0/interp = 1
tracks/0/keys = { "cont":true, "times":FloatArray( 0 ), "transitions":FloatArray( 1 ), "values":[ 1.0 ] }

[node name="fade" type="Sprite"]

transform/scale = Vector2( 100, 100 )
texture = ExtResource( 1 )
script/script = ExtResource( 2 )
__meta__ = { "__editor_plugin_screen__":"2D" }

[node name="animation" type="AnimationPlayer" parent="."]

playback/process_mode = 0
playback/default_blend_time = 0.0
root/root = NodePath("..")
anims/FadeIn = SubResource( 1 )
anims/idle = SubResource( 2 )
playback/active = true
playback/speed = 1.0
blend_times = [ ]
autoplay = ""


Binary file removed scenes/hud.scn
Binary file not shown.
58 changes: 58 additions & 0 deletions scenes/hud.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[gd_scene load_steps=2 format=1]

[ext_resource path="res://scripts/hud.gd" type="Script" id=1]

[node name="hud" type="Node2D"]

script/script = ExtResource( 1 )
__meta__ = { "__editor_plugin_screen__":"Script" }

[node name="score" type="Label" parent="."]

focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
margin/left = 14.0
margin/top = 15.0
margin/right = 99.0
margin/bottom = 32.0
custom_constants/shadow_offset_x = 1
custom_constants/shadow_offset_y = 1
text = "Score: "
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="time" type="Label" parent="."]

focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
margin/left = 14.0
margin/top = 36.0
margin/right = 99.0
margin/bottom = 53.0
custom_constants/shadow_offset_x = 1
custom_constants/shadow_offset_y = 1
text = "Time: "
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="rings" type="Label" parent="."]

focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
margin/left = 15.0
margin/top = 60.0
margin/right = 100.0
margin/bottom = 77.0
custom_constants/shadow_offset_x = 1
custom_constants/shadow_offset_y = 1
text = "Rings: "
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1


Binary file removed scenes/levels/test_level0.scn
Binary file not shown.
Loading

0 comments on commit d7c039c

Please sign in to comment.