engine port finished
This commit is contained in:
parent
fd3498f784
commit
c1e6542c76
72 changed files with 1300 additions and 1130 deletions
|
@ -5,7 +5,7 @@ var sfx1 := AudioStreamPlayer.new()
|
|||
func _ready() -> void:
|
||||
add_child(sfx1)
|
||||
sfx1.mix_target = 1
|
||||
sfx1.bus = &"SFX1"
|
||||
sfx1.bus = "SFX1"
|
||||
sfx1.stream = load(Global.sfxtracks[0])
|
||||
sfx1.play(0)
|
||||
|
||||
|
@ -16,4 +16,4 @@ func _process(delta: float) -> void:
|
|||
|
||||
func _input(event):
|
||||
if Input.is_action_just_pressed("ui_accept"):
|
||||
get_tree().change_scene_to_file("res://title.tscn")
|
||||
get_tree().change_scene("res://title.tscn")
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://i46ouafr1o3t"]
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://backgounds/gameover.gd" id="1_5r0kb"]
|
||||
[ext_resource path="res://fonts/title.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://backgounds/gameover.gd" type="Script" id=2]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=3]
|
||||
|
||||
[node name="Gameover" type="Node2D"]
|
||||
script = ExtResource("1_5r0kb")
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
offset_left = 178.0
|
||||
offset_top = 214.0
|
||||
offset_right = 1046.0
|
||||
offset_bottom = 433.0
|
||||
theme_override_font_sizes/font_size = 160
|
||||
margin_left = 376.0
|
||||
margin_top = 294.0
|
||||
margin_right = 917.0
|
||||
margin_bottom = 406.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Game Over"
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 3 )]
|
||||
|
|
|
@ -9,10 +9,10 @@ func _ready():
|
|||
result = $Label
|
||||
presscontinue = $Label2
|
||||
var previoustime
|
||||
var min = float(Global.result[1] / 60000)
|
||||
var sec = (Global.result[1] / 1000) - (min*60)
|
||||
var msec = Global.result[1] - (sec*1000) - (min*60000)
|
||||
result.set_text("Defeated enemies: "+str(Global.result[0])+"\nClear time: "+str(min)+":"+str(sec)+":"+str(msec)+"\nCharged skill uses: 0\nDamage received: "+str(Global.result[3])+"\nEarned experience: 0")
|
||||
var minute = float(Global.result[1] / 60000)
|
||||
var second = (Global.result[1] / 1000) - (minute*60)
|
||||
var msecond = Global.result[1] - (second*1000) - (minute*60000)
|
||||
result.set_text("Defeated enemies: "+str(Global.result[0])+"\nClear time: "+str(minute)+":"+str(second)+":"+str(msecond)+"\nCharged skill uses: 0\nDamage received: "+str(Global.result[3])+"\nEarned experience: 0")
|
||||
Global.result = [0, 0, 0, 0, 0]
|
||||
updatehud()
|
||||
Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
|
||||
|
@ -40,14 +40,14 @@ func _title():
|
|||
# This is like autoloading the scene, only
|
||||
# it happens after already loading the main scene.
|
||||
if Global.debug:
|
||||
get_tree().change_scene_to_file("res://levels/ui/scene.tscn")
|
||||
get_tree().change_scene("res://levels/ui/scene.tscn")
|
||||
else:
|
||||
if Global.cplace == [1, 1, 17]:
|
||||
Global.cplace = [0, 0, 0]
|
||||
get_tree().change_scene_to_file("res://backgounds/wip.tscn")
|
||||
get_tree().change_scene("res://backgounds/wip.tscn")
|
||||
else:
|
||||
Global.cplace = [0, 0, 0]
|
||||
get_tree().change_scene_to_file("res://levels/ui/gameplay.tscn")
|
||||
get_tree().change_scene("res://levels/ui/gameplay.tscn")
|
||||
#get_tree().root.add_child(title)
|
||||
#get_tree().root.remove_child(boot)
|
||||
#boot.queue_free()
|
||||
|
|
|
@ -1,23 +1,25 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://dq8vnuy2g3ewv"]
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://backgounds/result.gd" id="1_ejbiw"]
|
||||
[ext_resource type="Texture2D" uid="uid://chr01sorihbb2" path="res://backgounds/Midori No Akuma.jpg" id="2_jril2"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="3_sdx6y"]
|
||||
[ext_resource path="res://fonts/selftest.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://fonts/about.tres" type="DynamicFont" id=2]
|
||||
[ext_resource path="res://backgounds/Midori No Akuma.jpg" type="Texture" id=3]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://backgounds/result.gd" type="Script" id=5]
|
||||
|
||||
[node name="Result" type="Node2D"]
|
||||
script = ExtResource("1_ejbiw")
|
||||
script = ExtResource( 5 )
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
texture = ExtResource("2_jril2")
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
offset_left = 667.0
|
||||
offset_top = 17.0
|
||||
offset_right = 1071.0
|
||||
offset_bottom = 179.0
|
||||
theme_override_font_sizes/font_size = 21
|
||||
margin_left = 825.0
|
||||
margin_top = 11.0
|
||||
margin_right = 1172.0
|
||||
margin_bottom = 144.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
text = "Defeated enemies: 0
|
||||
Clear time: 0
|
||||
Charged skill uses: 0
|
||||
|
@ -25,12 +27,13 @@ Damage received: 0
|
|||
Earned experience: 0"
|
||||
|
||||
[node name="Label2" type="Label" parent="."]
|
||||
offset_left = 30.0
|
||||
offset_top = 361.0
|
||||
offset_right = 1247.0
|
||||
offset_bottom = 429.0
|
||||
theme_override_font_sizes/font_size = 49
|
||||
margin_top = 326.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 394.0
|
||||
rect_pivot_offset = Vector2( 1260, 141 )
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "TEXT_CONTINUE"
|
||||
horizontal_alignment = 1
|
||||
align = 1
|
||||
valign = 3
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("3_sdx6y")]
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 4 )]
|
||||
|
|
|
@ -9,4 +9,4 @@ func _ready() -> void:
|
|||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
Global.live = 1
|
||||
get_tree().change_scene_to_file("res://levels/ui/gameplay.tscn")
|
||||
get_tree().change_scene("res://levels/ui/gameplay.tscn")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://kuybckcxwmre"]
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://backgounds/warp.gd" id="1_3ss1u"]
|
||||
[ext_resource path="res://backgounds/warp.gd" type="Script" id=1]
|
||||
|
||||
[node name="Warp" type="Node2D"]
|
||||
script = ExtResource("1_3ss1u")
|
||||
script = ExtResource( 1 )
|
||||
|
|
|
@ -32,9 +32,9 @@ func _title():
|
|||
# This is like autoloading the scene, only
|
||||
# it happens after already loading the main scene.
|
||||
if Global.debug:
|
||||
get_tree().change_scene_to_file("res://levels/ui/scene.tscn")
|
||||
get_tree().change_scene("res://levels/ui/scene.tscn")
|
||||
else:
|
||||
get_tree().change_scene_to_file("res://levels/ui/gameplay.tscn")
|
||||
get_tree().change_scene("res://levels/ui/gameplay.tscn")
|
||||
#get_tree().root.add_child(title)
|
||||
#get_tree().root.remove_child(boot)
|
||||
#boot.queue_free()
|
||||
|
|
|
@ -1,32 +1,36 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://ctp1qc3xlecob"]
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource type="Script" path="res://backgounds/wip.gd" id="1_1qonj"]
|
||||
[ext_resource type="Texture2D" uid="uid://chr01sorihbb2" path="res://backgounds/Midori No Akuma.jpg" id="2_lrfja"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="3_sdx6y"]
|
||||
[ext_resource path="res://fonts/selftest.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://fonts/about.tres" type="DynamicFont" id=2]
|
||||
[ext_resource path="res://backgounds/wip.gd" type="Script" id=3]
|
||||
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://backgounds/Midori No Akuma.jpg" type="Texture" id=5]
|
||||
|
||||
[node name="WIP" type="Node2D"]
|
||||
script = ExtResource("1_1qonj")
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
texture = ExtResource("2_lrfja")
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
texture = ExtResource( 5 )
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
offset_left = 20.0
|
||||
offset_top = 33.0
|
||||
offset_right = 1271.0
|
||||
offset_bottom = 82.0
|
||||
margin_left = 23.0
|
||||
margin_top = 11.0
|
||||
margin_right = 1250.0
|
||||
margin_bottom = 144.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
text = "TEXT_WIP"
|
||||
horizontal_alignment = 1
|
||||
align = 1
|
||||
|
||||
[node name="Label2" type="Label" parent="."]
|
||||
offset_left = 30.0
|
||||
offset_top = 361.0
|
||||
offset_right = 1247.0
|
||||
offset_bottom = 429.0
|
||||
theme_override_font_sizes/font_size = 49
|
||||
margin_top = 326.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 394.0
|
||||
rect_pivot_offset = Vector2( 1260, 141 )
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "TEXT_CONTINUE"
|
||||
horizontal_alignment = 1
|
||||
align = 1
|
||||
valign = 3
|
||||
|
||||
[node name="Bottomhud" parent="." instance=ExtResource("3_sdx6y")]
|
||||
[node name="Bottomhud" parent="." instance=ExtResource( 4 )]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue