character select

This commit is contained in:
Page Asgardius 2024-12-18 15:03:34 -07:00
parent b8b05d5664
commit 25756f26c3
20 changed files with 897 additions and 15 deletions

View file

@ -0,0 +1,3 @@
source_md5="6a649437299f303f616f1234a7c08963"
dest_md5="26c446519c89766a748573d476653c02"

View file

@ -1,3 +1,3 @@
source_md5="2d935fa5d1d456a3f00a0e14b4bbc357" source_md5="22d14bb4f73d765ad64730206eaeff47"
dest_md5="7ab40893d5ed7b615b9dca0635771d14" dest_md5="00623bc65a043b0490cb0189507505df"

View file

@ -13,30 +13,32 @@ var playerx
var playery var playery
var ccutscene = null var ccutscene = null
var difdamage = 0 var difdamage = 0
var charswitch = 0
const pcharfull = [["res://sprites/common/midori/fullbody.png"], ["res://sprites/common/tuna/fullbody.png"], [null], ["res://sprites/common/kimberly/fullbody.png"], [null], [null], [null], ["res://sprites/ceres/pamela/fullbody.png"], ["res://sprites/ceres/lety/fullbody.png"], ["res://sprites/common/natasha/fullbody.png"]]
const cutscenes = [["res://levels/Cutscenes/opening/aboutkaizo.tscn", "res://levels/Cutscenes/opening/midorihello.tscn", 18, false], ["res://levels/Cutscenes/opening/midorihello.tscn", "res://levels/Cutscenes/opening/fearlessmidori.tscn", 18, false], ["res://levels/Cutscenes/opening/fearlessmidori.tscn", "res://levels/Cutscenes/opening/midoriwaterfall.tscn", 0, false], ["res://levels/Cutscenes/opening/midoriwaterfall.tscn", "res://levels/Cutscenes/opening/midorireading.tscn", 0, false], ["res://levels/Cutscenes/opening/midorireading.tscn", "res://levels/Cutscenes/opening/boomboomtorofi.tscn", 0, false], ["res://levels/Cutscenes/opening/boomboomtorofi.tscn", "res://levels/ui/gameplay.tscn", 0, true], ["res://levels/Cutscenes/unfunaversary/punishment.tscn", "res://levels/Cutscenes/unfunaversary/sadness.tscn", 1, false], ["res://levels/Cutscenes/unfunaversary/sadness.tscn", "res://levels/Cutscenes/unfunaversary/r3.tscn", 1, false], ["res://levels/Cutscenes/unfunaversary/r3.tscn", "res://levels/Cutscenes/unfunaversary/firstclass.tscn", 1, false], ["res://levels/Cutscenes/unfunaversary/firstclass.tscn", "res://backgounds/result.tscn", 5, true], ["res://levels/Cutscenes/Honker Railway/forest.tscn", "res://levels/Cutscenes/Honker Railway/lordlytrashcan.tscn", 19, false], ["res://levels/Cutscenes/Honker Railway/lordlytrashcan.tscn", "res://levels/Cutscenes/Honker Railway/railway.tscn", 19, false], ["res://levels/Cutscenes/Honker Railway/railway.tscn", "res://levels/ui/gameplay.tscn", 19, true], ["res://levels/Cutscenes/Troublemaker/buildings.tscn", "res://levels/Cutscenes/Troublemaker/pamela.tscn", 18, false], ["res://levels/Cutscenes/Troublemaker/pamela.tscn", "res://levels/Cutscenes/Troublemaker/kungfu.tscn", 18, false], ["res://levels/Cutscenes/Troublemaker/kungfu.tscn", "res://levels/ui/gameplay.tscn", 6, true], ["res://levels/Cutscenes/Troublemakerp2/Lety.tscn", "res://levels/Cutscenes/Troublemakerp2/Fall.tscn", 18, false], ["res://levels/Cutscenes/Troublemakerp2/Fall.tscn", "res://levels/Cutscenes/Troublemakerp2/midori.tscn", 6, false], ["res://levels/Cutscenes/Troublemakerp2/midori.tscn", "res://levels/ui/gameplay.tscn", 6, true]] const cutscenes = [["res://levels/Cutscenes/opening/aboutkaizo.tscn", "res://levels/Cutscenes/opening/midorihello.tscn", 18, false], ["res://levels/Cutscenes/opening/midorihello.tscn", "res://levels/Cutscenes/opening/fearlessmidori.tscn", 18, false], ["res://levels/Cutscenes/opening/fearlessmidori.tscn", "res://levels/Cutscenes/opening/midoriwaterfall.tscn", 0, false], ["res://levels/Cutscenes/opening/midoriwaterfall.tscn", "res://levels/Cutscenes/opening/midorireading.tscn", 0, false], ["res://levels/Cutscenes/opening/midorireading.tscn", "res://levels/Cutscenes/opening/boomboomtorofi.tscn", 0, false], ["res://levels/Cutscenes/opening/boomboomtorofi.tscn", "res://levels/ui/gameplay.tscn", 0, true], ["res://levels/Cutscenes/unfunaversary/punishment.tscn", "res://levels/Cutscenes/unfunaversary/sadness.tscn", 1, false], ["res://levels/Cutscenes/unfunaversary/sadness.tscn", "res://levels/Cutscenes/unfunaversary/r3.tscn", 1, false], ["res://levels/Cutscenes/unfunaversary/r3.tscn", "res://levels/Cutscenes/unfunaversary/firstclass.tscn", 1, false], ["res://levels/Cutscenes/unfunaversary/firstclass.tscn", "res://backgounds/result.tscn", 5, true], ["res://levels/Cutscenes/Honker Railway/forest.tscn", "res://levels/Cutscenes/Honker Railway/lordlytrashcan.tscn", 19, false], ["res://levels/Cutscenes/Honker Railway/lordlytrashcan.tscn", "res://levels/Cutscenes/Honker Railway/railway.tscn", 19, false], ["res://levels/Cutscenes/Honker Railway/railway.tscn", "res://levels/ui/gameplay.tscn", 19, true], ["res://levels/Cutscenes/Troublemaker/buildings.tscn", "res://levels/Cutscenes/Troublemaker/pamela.tscn", 18, false], ["res://levels/Cutscenes/Troublemaker/pamela.tscn", "res://levels/Cutscenes/Troublemaker/kungfu.tscn", 18, false], ["res://levels/Cutscenes/Troublemaker/kungfu.tscn", "res://levels/ui/gameplay.tscn", 6, true], ["res://levels/Cutscenes/Troublemakerp2/Lety.tscn", "res://levels/Cutscenes/Troublemakerp2/Fall.tscn", 18, false], ["res://levels/Cutscenes/Troublemakerp2/Fall.tscn", "res://levels/Cutscenes/Troublemakerp2/midori.tscn", 6, false], ["res://levels/Cutscenes/Troublemakerp2/midori.tscn", "res://levels/ui/gameplay.tscn", 6, true]]
const pcnames = ["Midori Asgardius", "Diana Asgardius", null, "Kimberly Arch", null, null, null, "Pamela Hashimoto", "Lety Hashimoto", "Natasha Dostoyevsky"] const pcnames = ["Midori Asgardius", "Diana Asgardius", null, "Kimberly Arch", null, null, null, "Pamela Hashimoto", "Lety Hashimoto", "Natasha Dostoyevsky"]
const npcnames = ["Lily", "Railway Girl", null, "Kimberly Arch", null, null, null, null, null, "Natasha Dostoyevsky"] const npcnames = ["Lily", "Railway Girl", null, "Kimberly Arch", null, null, null, null, null, "Natasha Dostoyevsky"]
const pcfaces = [["res://sprites/common/midori/face.png"], ["res://sprites/common/tuna/face.png"], [null], ["res://sprites/common/kimberly/face.png"], [null], [null], [null], ["res://sprites/ceres/pamela/face.png"], ["res://sprites/ceres/lety/face.png"], ["res://sprites/common/natasha/face.png"]] const pcfaces = [["res://sprites/common/midori/face.png"], ["res://sprites/common/tuna/face.png"], [null], ["res://sprites/common/kimberly/face.png"], [null], [null], [null], ["res://sprites/ceres/pamela/face.png"], ["res://sprites/ceres/lety/face.png"], ["res://sprites/common/natasha/face.png"]]
const hudfaces = [["res://sprites/common/midori/facehud.png"], ["res://sprites/common/tuna/facehud.png"], [null], ["res://sprites/common/kimberly/facehud.png"], [null], [null], [null], ["res://sprites/ceres/pamela/facehud.png"], ["res://sprites/ceres/lety/facehud.png"], ["res://sprites/common/natasha/facehud.png"]] const hudfaces = [["res://sprites/common/midori/facehud.png"], ["res://sprites/common/tuna/facehud.png"], [null], ["res://sprites/common/kimberly/facehud.png"], [null], [null], [null], ["res://sprites/ceres/pamela/facehud.png"], ["res://sprites/ceres/lety/facehud.png"], ["res://sprites/common/natasha/facehud.png"]]
const npcfaces = ["res://sprites/common/midori/face.png","res://sprites/ceres/railway/face.png", null, "res://sprites/common/kimberly/face.png", null, null, null, null, null, "res://sprites/common/natasha/face.png"] const npcfaces = ["res://sprites/common/midori/face.png","res://sprites/ceres/railway/face.png", null, "res://sprites/common/kimberly/face.png", null, null, null, null, null, "res://sprites/common/natasha/face.png"]
const basestats = [[800, 200, 52, 12, 136, 25, 800], [1094, 200, 54, 7, 106, 48, 600], [null], [1143, 200, 59, 5, 117, 18, 650], [null], [null], [null], [null], [null], [1026, 200, 87, 7, 105, 49, 115]] const basestats = [[800, 200, 52, 12, 136, 25, 800], [1094, 200, 54, 7, 106, 48, 600], [null], [1143, 200, 59, 5, 117, 18, 650], [null], [null], [null], [800, 200, 72, 12, 136, 25, 700], [800, 200, 72, 12, 136, 25, 700], [1026, 200, 87, 7, 105, 49, 115]]
var cstats = [[800, 200, 52, 12, 136, 25, 800], [1094, 200, 54, 7, 106, 48, 600], [null], [1143, 200, 59, 5, 117, 18, 650], [null], [null], [null], [null], [null], [1026, 200, 87, 7, 105, 49, 115]] var cstats = [[800, 200, 52, 12, 136, 25, 800], [1094, 200, 54, 7, 106, 48, 600], [null], [1143, 200, 59, 5, 117, 18, 650], [null], [null], [null], [800, 200, 72, 12, 136, 25, 700], [800, 200, 72, 12, 136, 25, 700], [1026, 200, 87, 7, 105, 49, 115]]
var dstats = [[800, 200, 52, 12, 136, 25, 800], [1094, 200, 54, 7, 106, 48, 600], [null], [1143, 200, 59, 5, 117, 18, 650], [null], [null], [null], [null], [null], [1026, 200, 87, 7, 105, 49, 115]] var dstats = [[800, 200, 52, 12, 136, 25, 800], [1094, 200, 54, 7, 106, 48, 600], [null], [1143, 200, 59, 5, 117, 18, 650], [null], [null], [null], [800, 200, 72, 12, 136, 25, 700], [800, 200, 72, 12, 136, 25, 700], [1026, 200, 87, 7, 105, 49, 115]]
var mstats = [[null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null]] var mstats = [[null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null]]
var cdialog = [] var cdialog = []
const places = [[[["res://levels/Ceres/map.tscn", 5, false], [null, null, false]], [["res://levels/Testrooms/bullethell.tscn", 11, true], ["res://levels/Testrooms/lilytest.tscn", 6, false]], [["res://levels/Testrooms/dialogtest.tscn", 19, false], ["res://levels/Testrooms/testspawn.tscn", 2 ,false]]], [null, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, ["res://levels/Ceres/troublemakers.tscn", 6, true]], [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, ["res://levels/Ceres/troublemakersp2.tscn", 6, true]], null, null, null, null, null, [null, null, null, null, null, null, null, null, null, null, null, ["res://levels/Ceres/honkerrailway.tscn", 19, false]], null, null, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, ["res://levels/Ceres/L20.tscn", 3, true]]]] const places = [[[["res://levels/Ceres/map.tscn", 5, false], [null, null, false]], [["res://levels/Testrooms/bullethell.tscn", 11, true], ["res://levels/Testrooms/lilytest.tscn", 6, false]], [["res://levels/Testrooms/dialogtest.tscn", 19, false], ["res://levels/Testrooms/testspawn.tscn", 2 ,false]]], [null, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, ["res://levels/Ceres/troublemakers.tscn", 6, true]], [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, ["res://levels/Ceres/troublemakersp2.tscn", 6, true]], null, null, null, null, null, [null, null, null, null, null, null, null, null, null, null, null, ["res://levels/Ceres/honkerrailway.tscn", 19, false], null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, ["res://levels/Ceres/yourhome.tscn", 1, false]], null, null, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, ["res://levels/Ceres/L20.tscn", 3, true]]]]
var cplace = [0,2,1] var cplace = [0,2,1]
var dplace = [null, null, null] var dplace = [null, null, null]
const pbbullets = ["res://sprites/common/bullet/fireball.tscn", "res://sprites/common/bullet/aero.tscn", null, "res://sprites/common/bullet/arrow.tscn", null, null, null, null, null, "res://sprites/common/bullet/snowflake.tscn"] const pbbullets = ["res://sprites/common/bullet/fireball.tscn", "res://sprites/common/bullet/aero.tscn", null, "res://sprites/common/bullet/arrow.tscn", null, null, null, "res://sprites/common/bullet/tnt.tscn", "res://sprites/common/bullet/fireball.tscn", "res://sprites/common/bullet/snowflake.tscn"]
const pcspecialities = [1, 2, null, 3, null, null, null, null, null, 0] const pcspecialities = [1, 2, null, 3, null, null, null, 1, 1, 0]
const pchars = [["res://sprites/common/midori/sprite.png"], ["res://sprites/common/tuna/sprite.png"], [null], ["res://sprites/common/kimberly/sprite.png"], [null], [null], [null], [null], [null], ["res://sprites/common/natasha/sprite.png"]] const pchars = [["res://sprites/common/midori/sprite.png"], ["res://sprites/common/tuna/sprite.png"], [null], ["res://sprites/common/kimberly/sprite.png"], [null], [null], [null], ["res://sprites/ceres/pamela/sprite.png"], ["res://sprites/ceres/lety/sprite.png"], ["res://sprites/common/natasha/sprite.png"]]
const npchars = ["res://sprites/common/midori/sprite.png", null, null, null, null, null, null, null, null, "res://sprites/common/natasha/sprite.png"] const npchars = ["res://sprites/common/midori/sprite.png", null, null, null, null, null, null, null, null, "res://sprites/common/natasha/sprite.png"]
var cboss = [null, null, null] var cboss = [null, null, null]
var isboss var isboss
var party = [[0,0], [1,0], [9,0], [3,0]] var party = [[0,0], [null,null], [null,null], [null,null]]
var sparty = [[null,null], [null,null], [null,null], [null,null]] var sparty = [[null,null], [null,null], [null,null], [null,null]]
const specialities = [2, 0, 3, 1, 5, 4] const specialities = [2, 0, 3, 1, 5, 4]
var dparty = [[0,0], [1,0], [3,0], [9,0]] var dparty = [[0,0], [1,0], [7,0], [8,0]]
var level = [1,1,1,1,1,1,1,1,1,1] var level = [1,1,1,1,1,1,1,1,1,1]
var dlevel = [1,1,1,1,1,1,1,1,1,1] var dlevel = [1,1,1,1,1,1,1,1,1,1]
var cpchar = 0 var cpchar = 0

View file

@ -1,6 +1,7 @@
extends Node2D extends Node2D
var hkr var hkr
var troublemaker var troublemaker
var yourhome
var travel = null var travel = null
@ -8,6 +9,7 @@ var travel = null
func _ready(): func _ready():
hkr = $Railwaygirl hkr = $Railwaygirl
troublemaker = $Pamela troublemaker = $Pamela
yourhome = $Home
if !Global.debug: if !Global.debug:
_statrebase() _statrebase()
Global.live = 1 Global.live = 1
@ -15,6 +17,8 @@ func _ready():
hkr.queue_free() hkr.queue_free()
if Global.quest[2] == 0: if Global.quest[2] == 0:
troublemaker.queue_free() troublemaker.queue_free()
if Global.quest[3] == 0:
yourhome.queue_free()
#pass # Replace with function body. #pass # Replace with function body.
@ -56,3 +60,11 @@ func _on_pamela_body_entered(body: Node2D) -> void:
func _on_pamela_body_exited(body: Node2D) -> void: func _on_pamela_body_exited(body: Node2D) -> void:
travel = null travel = null
func _on_Home_body_entered(body):
travel = [1, 8, 28]
func _on_Home_body_exited(body):
travel = null

View file

@ -1,9 +1,10 @@
[gd_scene load_steps=26 format=2] [gd_scene load_steps=36 format=2]
[ext_resource path="res://sprites/ceres/railway/sprite.png" type="Texture" id=1] [ext_resource path="res://sprites/ceres/railway/sprite.png" type="Texture" id=1]
[ext_resource path="res://sprites/ceres/pamela/sprite.png" type="Texture" id=2] [ext_resource path="res://sprites/ceres/pamela/sprite.png" type="Texture" id=2]
[ext_resource path="res://sprites/common/player/player.tscn" type="PackedScene" id=3] [ext_resource path="res://sprites/common/player/player.tscn" type="PackedScene" id=3]
[ext_resource path="res://levels/Ceres/map.gd" type="Script" id=4] [ext_resource path="res://levels/Ceres/map.gd" type="Script" id=4]
[ext_resource path="res://sprites/ceres/items/home-icon6.png" type="Texture" id=5]
[sub_resource type="RectangleShape2D" id=1] [sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 18.5, 721 ) extents = Vector2( 18.5, 721 )
@ -12,7 +13,7 @@ extents = Vector2( 18.5, 721 )
extents = Vector2( 1167.5, 20.5 ) extents = Vector2( 1167.5, 20.5 )
[sub_resource type="RectangleShape2D" id=3] [sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 45, 128 ) extents = Vector2( 63, 61 )
[sub_resource type="Animation" id=4] [sub_resource type="Animation" id=4]
length = 0.001 length = 0.001
@ -312,6 +313,47 @@ tracks/0/keys = {
"values": [ 13, 12, 14 ] "values": [ 13, 12, 14 ]
} }
[sub_resource type="Animation" id=22]
length = 0.001
[sub_resource type="Animation" id=23]
resource_name = "eidle"
loop = true
[sub_resource type="Animation" id=24]
resource_name = "ewalk"
length = 0.3
loop = true
step = 0.033
[sub_resource type="Animation" id=25]
resource_name = "nidle"
loop = true
[sub_resource type="Animation" id=26]
resource_name = "nwalk"
length = 0.3
loop = true
[sub_resource type="Animation" id=27]
resource_name = "sidle"
loop = true
[sub_resource type="Animation" id=28]
resource_name = "swalk"
length = 0.3
loop = true
[sub_resource type="Animation" id=29]
resource_name = "widle"
length = 0.3
loop = true
[sub_resource type="Animation" id=30]
resource_name = "wwalk"
length = 0.3
loop = true
[node name="Map" type="Node2D"] [node name="Map" type="Node2D"]
script = ExtResource( 4 ) script = ExtResource( 4 )
@ -390,6 +432,31 @@ anims/swalk = SubResource( 19 )
anims/widle = SubResource( 20 ) anims/widle = SubResource( 20 )
anims/wwalk = SubResource( 21 ) anims/wwalk = SubResource( 21 )
[node name="Home" type="Area2D" parent="."]
position = Vector2( 635, 394 )
[node name="TextureRect" type="TextureRect" parent="Home"]
margin_left = -64.0
margin_top = -78.0
margin_right = 86.0
margin_bottom = 72.0
texture = ExtResource( 5 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Home"]
position = Vector2( 11, 3 )
shape = SubResource( 3 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="Home"]
anims/RESET = SubResource( 22 )
anims/eidle = SubResource( 23 )
anims/ewalk = SubResource( 24 )
anims/nidle = SubResource( 25 )
anims/nwalk = SubResource( 26 )
anims/sidle = SubResource( 27 )
anims/swalk = SubResource( 28 )
anims/widle = SubResource( 29 )
anims/wwalk = SubResource( 30 )
[node name="Player" parent="." instance=ExtResource( 3 )] [node name="Player" parent="." instance=ExtResource( 3 )]
position = Vector2( 635, 586 ) position = Vector2( 635, 586 )
@ -397,3 +464,5 @@ position = Vector2( 635, 586 )
[connection signal="body_exited" from="Railwaygirl" to="." method="_on_railwaygirl_body_exited"] [connection signal="body_exited" from="Railwaygirl" to="." method="_on_railwaygirl_body_exited"]
[connection signal="body_entered" from="Pamela" to="." method="_on_pamela_body_entered"] [connection signal="body_entered" from="Pamela" to="." method="_on_pamela_body_entered"]
[connection signal="body_exited" from="Pamela" to="." method="_on_pamela_body_exited"] [connection signal="body_exited" from="Pamela" to="." method="_on_pamela_body_exited"]
[connection signal="body_entered" from="Home" to="." method="_on_Home_body_entered"]
[connection signal="body_exited" from="Home" to="." method="_on_Home_body_exited"]

41
levels/Ceres/yourhome.gd Normal file
View file

@ -0,0 +1,41 @@
extends Node2D
var talk
# Called when the node enters the scene tree for the first time.
func _ready():
if !Global.debug:
_statrebase()
Global.live = 1
#Global.quest[1] = 3
#Global.quest[2] = 1
#pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _input(event):
if Input.is_action_just_pressed("ui_accept") && Global.cdialog != []:
if Global.live == 1:
Global.live = 0
talk = load("res://levels/ui/talk.tscn").instance()
call_deferred("_talk")
func _statrebase():
for i in 4:
if Global.party[i][0] != null:
for j in 7:
Global.cstats[Global.party[i][0]][j] = Global.basestats[Global.party[i][0]][j] * Global.level[Global.dparty[i][0]]
func _talk():
get_tree().root.add_child(talk)
func _on_Katalk_body_entered(body):
Global.cdialog = [[tr("DIALOG_HOME_0"), true, 3, 0]]
func _on_Katalk_body_exited(body):
Global.cdialog = []

349
levels/Ceres/yourhome.tscn Normal file
View file

@ -0,0 +1,349 @@
[gd_scene load_steps=17 format=2]
[ext_resource path="res://sprites/common/kimberly/sprite.png" type="Texture" id=1]
[ext_resource path="res://levels/Ceres/yourhome.gd" type="Script" id=2]
[ext_resource path="res://sprites/common/player/player.tscn" type="PackedScene" id=3]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 18.5, 446.5 )
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 676, 20.5 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 45, 128 )
[sub_resource type="Animation" id=4]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 0 ]
}
[sub_resource type="Animation" id=5]
resource_name = "eidle"
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 8 ]
}
[sub_resource type="Animation" id=6]
resource_name = "ewalk"
length = 0.3
loop = true
step = 0.033
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.099, 0.198 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 1,
"values": [ 9, 8, 10 ]
}
[sub_resource type="Animation" id=7]
resource_name = "nidle"
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0.1 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 4 ]
}
[sub_resource type="Animation" id=8]
resource_name = "nwalk"
length = 0.3
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1, 0.2 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 1,
"values": [ 5, 4, 6 ]
}
[sub_resource type="Animation" id=9]
resource_name = "sidle"
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0.5 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 0 ]
}
[sub_resource type="Animation" id=10]
resource_name = "swalk"
length = 0.3
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1, 0.2 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 1,
"values": [ 1, 0, 2 ]
}
[sub_resource type="Animation" id=11]
resource_name = "widle"
length = 0.3
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 12 ]
}
[sub_resource type="Animation" id=12]
resource_name = "wwalk"
length = 0.3
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1, 0.2 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 1,
"values": [ 13, 12, 14 ]
}
[sub_resource type="RectangleShape2D" id=13]
extents = Vector2( 48.5, 146 )
[node name="Honkerrailway" type="Node2D"]
script = ExtResource( 2 )
[node name="ColorRect" type="ColorRect" parent="."]
margin_right = 1280.0
margin_bottom = 720.0
color = Color( 0.588235, 0.588235, 0.588235, 1 )
[node name="StaticBody2D" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
position = Vector2( -18, 373.5 )
shape = SubResource( 1 )
[node name="StaticBody2D2" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2"]
position = Vector2( 1299, 376 )
shape = SubResource( 1 )
[node name="StaticBody2D3" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D3"]
position = Vector2( 641, -21 )
shape = SubResource( 2 )
[node name="StaticBody2D4" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D4"]
position = Vector2( 640, 741 )
shape = SubResource( 2 )
[node name="Floor" type="Node2D" parent="."]
[node name="ColorRect2" type="ColorRect" parent="Floor"]
margin_top = 100.0
margin_right = 1280.0
margin_bottom = 104.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect3" type="ColorRect" parent="Floor"]
margin_top = 200.0
margin_right = 1280.0
margin_bottom = 204.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect4" type="ColorRect" parent="Floor"]
margin_top = 300.0
margin_right = 1280.0
margin_bottom = 304.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect5" type="ColorRect" parent="Floor"]
margin_top = 400.0
margin_right = 1280.0
margin_bottom = 404.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect6" type="ColorRect" parent="Floor"]
margin_top = 500.0
margin_right = 1280.0
margin_bottom = 504.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect7" type="ColorRect" parent="Floor"]
margin_top = 600.0
margin_right = 1280.0
margin_bottom = 604.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect8" type="ColorRect" parent="Floor"]
margin_top = 700.0
margin_right = 1280.0
margin_bottom = 704.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect9" type="ColorRect" parent="Floor"]
margin_left = 100.0
margin_right = 104.0
margin_bottom = 720.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect10" type="ColorRect" parent="Floor"]
margin_left = 200.0
margin_right = 204.0
margin_bottom = 720.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect11" type="ColorRect" parent="Floor"]
margin_left = 300.0
margin_right = 304.0
margin_bottom = 720.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect12" type="ColorRect" parent="Floor"]
margin_left = 400.0
margin_right = 404.0
margin_bottom = 720.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect13" type="ColorRect" parent="Floor"]
margin_left = 500.0
margin_right = 504.0
margin_bottom = 720.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect14" type="ColorRect" parent="Floor"]
margin_left = 600.0
margin_right = 604.0
margin_bottom = 720.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect15" type="ColorRect" parent="Floor"]
margin_left = 700.0
margin_right = 704.0
margin_bottom = 720.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect16" type="ColorRect" parent="Floor"]
margin_left = 800.0
margin_right = 804.0
margin_bottom = 720.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect17" type="ColorRect" parent="Floor"]
margin_left = 900.0
margin_right = 904.0
margin_bottom = 720.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect18" type="ColorRect" parent="Floor"]
margin_left = 1000.0
margin_right = 1004.0
margin_bottom = 720.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect19" type="ColorRect" parent="Floor"]
margin_left = 1100.0
margin_right = 1104.0
margin_bottom = 720.0
color = Color( 0, 0, 0, 1 )
[node name="ColorRect20" type="ColorRect" parent="Floor"]
margin_left = 1200.0
margin_right = 1204.0
margin_bottom = 720.0
color = Color( 0, 0, 0, 1 )
[node name="Kimberly" type="KinematicBody2D" parent="."]
position = Vector2( 473, 133 )
[node name="Sprite" type="Sprite" parent="Kimberly"]
texture = ExtResource( 1 )
hframes = 4
vframes = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="Kimberly"]
shape = SubResource( 3 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="Kimberly"]
anims/RESET = SubResource( 4 )
anims/eidle = SubResource( 5 )
anims/ewalk = SubResource( 6 )
anims/nidle = SubResource( 7 )
anims/nwalk = SubResource( 8 )
anims/sidle = SubResource( 9 )
anims/swalk = SubResource( 10 )
anims/widle = SubResource( 11 )
anims/wwalk = SubResource( 12 )
[node name="Katalk" type="Area2D" parent="."]
position = Vector2( 473, 133 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Katalk"]
position = Vector2( 2.5, 16 )
shape = SubResource( 13 )
[node name="Player" parent="." instance=ExtResource( 3 )]
position = Vector2( 635, 586 )
[connection signal="body_entered" from="Katalk" to="." method="_on_Katalk_body_entered"]
[connection signal="body_exited" from="Katalk" to="." method="_on_Katalk_body_exited"]

View file

@ -76,3 +76,9 @@ func _on_Credits_pressed():
Global.dplace = [1, 2, 17] Global.dplace = [1, 2, 17]
Global.live = 1 Global.live = 1
get_tree().change_scene("res://levels/ui/gameplay.tscn") get_tree().change_scene("res://levels/ui/gameplay.tscn")
func _on_WIP_pressed():
Global.dplace = [1, 8, 28]
Global.live = 1
get_tree().change_scene("res://levels/ui/gameplay.tscn")

View file

@ -86,7 +86,7 @@ margin_right = 1017.0
margin_bottom = 344.0 margin_bottom = 344.0
custom_fonts/font = ExtResource( 2 ) custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 4 ) custom_styles/focus = SubResource( 4 )
text = "BUTTON_PLACEHOLDER" text = "YOUR_HOME"
[node name="Back" type="Button" parent="VBoxContainer"] [node name="Back" type="Button" parent="VBoxContainer"]
margin_top = 348.0 margin_top = 348.0
@ -101,4 +101,5 @@ text = "BUTTON_RETURN"
[connection signal="pressed" from="VBoxContainer/Dialogtest" to="." method="_on_dialogtest_pressed"] [connection signal="pressed" from="VBoxContainer/Dialogtest" to="." method="_on_dialogtest_pressed"]
[connection signal="pressed" from="VBoxContainer/Bullethell" to="." method="_on_bullethell_pressed"] [connection signal="pressed" from="VBoxContainer/Bullethell" to="." method="_on_bullethell_pressed"]
[connection signal="pressed" from="VBoxContainer/Credits" to="." method="_on_Credits_pressed"] [connection signal="pressed" from="VBoxContainer/Credits" to="." method="_on_Credits_pressed"]
[connection signal="pressed" from="VBoxContainer/WIP" to="." method="_on_WIP_pressed"]
[connection signal="pressed" from="VBoxContainer/Back" to="." method="_on_back_pressed"] [connection signal="pressed" from="VBoxContainer/Back" to="." method="_on_back_pressed"]

66
levels/ui/charlist.gd Normal file
View file

@ -0,0 +1,66 @@
extends Control
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
if Global.quest[2] == 3:
$HBoxContainer/VBoxContainer/Diana.visible = true
$HBoxContainer/VBoxContainer/Pamela.visible = true
$HBoxContainer/VBoxContainer/Lety.visible = true
$HBoxContainer/VBoxContainer/Midori.grab_focus()
#pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _on_Return_pressed():
get_tree().change_scene("res://levels/ui/teams.tscn")
func _on_Midori_pressed():
if Global.debug:
Global.dparty[Global.charswitch][0] = 0
Global.dparty[Global.charswitch][1] = 0
else:
Global.party[Global.charswitch][0] = 0
Global.party[Global.charswitch][1] = 0
_on_Return_pressed()
func _on_Diana_pressed():
if Global.debug:
Global.dparty[Global.charswitch][0] = 1
Global.dparty[Global.charswitch][1] = 0
else:
Global.party[Global.charswitch][0] = 1
Global.party[Global.charswitch][1] = 0
_on_Return_pressed()
func _on_Pamela_pressed():
if Global.debug:
Global.dparty[Global.charswitch][0] = 7
Global.dparty[Global.charswitch][1] = 0
else:
Global.party[Global.charswitch][0] = 7
Global.party[Global.charswitch][1] = 0
_on_Return_pressed()
func _on_Lety_pressed():
if Global.debug:
Global.dparty[Global.charswitch][0] = 8
Global.dparty[Global.charswitch][1] = 0
else:
Global.party[Global.charswitch][0] = 8
Global.party[Global.charswitch][1] = 0
_on_Return_pressed()

133
levels/ui/charlist.tscn Normal file
View file

@ -0,0 +1,133 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=1]
[ext_resource path="res://fonts/start.tres" type="DynamicFont" id=2]
[ext_resource path="res://levels/ui/charlist.gd" type="Script" id=3]
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=4]
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0, 0.8, 0, 1 )
[node name="Charlist" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 3 )
[node name="Night Sky" type="TextureRect" parent="."]
margin_right = 1280.0
margin_bottom = 720.0
texture = ExtResource( 1 )
[node name="Game name" type="Label" parent="."]
margin_top = 3.0
margin_right = 1280.0
margin_bottom = 73.0
custom_fonts/font = ExtResource( 2 )
text = "MENU_CHARSEL"
align = 1
valign = 1
[node name="Bottomhud" parent="." instance=ExtResource( 4 )]
[node name="HBoxContainer" type="HBoxContainer" parent="."]
margin_left = 447.0
margin_top = 92.0
margin_right = 834.0
margin_bottom = 668.0
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
margin_right = 360.0
margin_bottom = 576.0
[node name="Midori" type="Button" parent="HBoxContainer/VBoxContainer"]
margin_right = 360.0
margin_bottom = 54.0
custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 1 )
text = "Miidori Asgardius"
[node name="Diana" type="Button" parent="HBoxContainer/VBoxContainer"]
visible = false
margin_top = 58.0
margin_right = 387.0
margin_bottom = 112.0
custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 1 )
text = "Diana Asgardius"
[node name="Rikka" type="Button" parent="HBoxContainer/VBoxContainer"]
visible = false
margin_top = 58.0
margin_right = 387.0
margin_bottom = 112.0
custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 1 )
text = "Rikka Grub"
[node name="Kimberly" type="Button" parent="HBoxContainer/VBoxContainer"]
visible = false
margin_top = 58.0
margin_right = 387.0
margin_bottom = 112.0
custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 1 )
text = "Kimberly Arch"
[node name="Hu" type="Button" parent="HBoxContainer/VBoxContainer"]
visible = false
margin_top = 58.0
margin_right = 387.0
margin_bottom = 112.0
custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 1 )
text = "Hu Wei"
[node name="Gurukosu" type="Button" parent="HBoxContainer/VBoxContainer"]
visible = false
margin_top = 58.0
margin_right = 387.0
margin_bottom = 112.0
custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 1 )
text = "Gurukōsu Tanaka"
[node name="Momo" type="Button" parent="HBoxContainer/VBoxContainer"]
visible = false
margin_top = 58.0
margin_right = 387.0
margin_bottom = 112.0
custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 1 )
text = "Momo Tanaka"
[node name="Pamela" type="Button" parent="HBoxContainer/VBoxContainer"]
visible = false
margin_top = 58.0
margin_right = 387.0
margin_bottom = 112.0
custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 1 )
text = "Pamela Hashimoto"
[node name="Lety" type="Button" parent="HBoxContainer/VBoxContainer"]
visible = false
margin_top = 58.0
margin_right = 360.0
margin_bottom = 112.0
custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 1 )
text = "Lety Hashimoto"
[node name="Return" type="Button" parent="HBoxContainer/VBoxContainer"]
margin_top = 58.0
margin_right = 360.0
margin_bottom = 112.0
custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 1 )
text = "BUTTON_RETURN"
[connection signal="pressed" from="HBoxContainer/VBoxContainer/Midori" to="." method="_on_Midori_pressed"]
[connection signal="pressed" from="HBoxContainer/VBoxContainer/Diana" to="." method="_on_Diana_pressed"]
[connection signal="pressed" from="HBoxContainer/VBoxContainer/Pamela" to="." method="_on_Pamela_pressed"]
[connection signal="pressed" from="HBoxContainer/VBoxContainer/Lety" to="." method="_on_Lety_pressed"]
[connection signal="pressed" from="HBoxContainer/VBoxContainer/Return" to="." method="_on_Return_pressed"]

View file

@ -93,7 +93,7 @@ func _process(delta):
Global.isresume = false Global.isresume = false
_pausemenu() _pausemenu()
var velocity = Vector2.ZERO var velocity = Vector2.ZERO
if (Global.live > 4 && Global.live < 9) || Global.live == 2: if (Global.live > 4 && Global.live < 10) || Global.live == 2:
_exit() _exit()
#velocity = (Vector2.RIGHT.rotated(rotation) * -100 * Global.xm * delta)-Vector2.UP.rotated(rotation) * -100 * Global.ym * delta #velocity = (Vector2.RIGHT.rotated(rotation) * -100 * Global.xm * delta)-Vector2.UP.rotated(rotation) * -100 * Global.ym * delta
@ -183,6 +183,8 @@ func _exit():
get_tree().change_scene("res://backgounds/result.tscn") get_tree().change_scene("res://backgounds/result.tscn")
elif Global.live == 8: elif Global.live == 8:
get_tree().change_scene("res://levels/ui/Cutscenes.tscn") get_tree().change_scene("res://levels/ui/Cutscenes.tscn")
elif Global.live == 9:
get_tree().change_scene("res://levels/ui/teams.tscn")
elif Global.live == 5: elif Global.live == 5:
Global.result = [0, 0, 0, 0, 0] Global.result = [0, 0, 0, 0, 0]
_statrebase() _statrebase()

View file

@ -4,6 +4,8 @@ var cnf
var chealthf var chealthf
var clevel var clevel
var warpmenu var warpmenu
var teammenu
var teamswitch
# Called when the node enters the scene tree for the first time. # Called when the node enters the scene tree for the first time.
func _ready(): func _ready():
@ -13,6 +15,7 @@ func _ready():
chealthf = $CanvasLayer/HBoxContainer/VBoxContainer/HBoxContainer/Label2 chealthf = $CanvasLayer/HBoxContainer/VBoxContainer/HBoxContainer/Label2
clevel = $CanvasLayer/HBoxContainer/VBoxContainer/HBoxContainer2/Label2 clevel = $CanvasLayer/HBoxContainer/VBoxContainer/HBoxContainer2/Label2
$CanvasLayer/HBoxContainer2/VBoxContainer2/Exit.grab_focus() $CanvasLayer/HBoxContainer2/VBoxContainer2/Exit.grab_focus()
teammenu = $CanvasLayer/HBoxContainer2/VBoxContainer/Team
_fetchdata() _fetchdata()
#pass # Replace with function body. #pass # Replace with function body.
@ -30,11 +33,15 @@ func _fetchdata():
warpmenu.visible = true warpmenu.visible = true
else: else:
warpmenu.visible = false warpmenu.visible = false
if Global.dplace == [1, 8, 28]:
teammenu.visible = true
else: else:
if Global.cplace != [1, 11, 19] && (Global.cplace[0] == 1 || Global.dplace[0] == 2): if Global.cplace != [1, 11, 19] && (Global.cplace[0] == 1 || Global.dplace[0] == 2):
warpmenu.visible = true warpmenu.visible = true
else: else:
warpmenu.visible = false warpmenu.visible = false
if Global.cplace == [1, 8, 28]:
teammenu.visible = true
if Global.debug: if Global.debug:
cnf.set_text(Global.pcnames[Global.dparty[Global.dcpchar][0]]) cnf.set_text(Global.pcnames[Global.dparty[Global.dcpchar][0]])
cff.texture = load(Global.hudfaces[Global.dparty[Global.dcpchar][0]][Global.dparty[Global.dcpchar][1]]) cff.texture = load(Global.hudfaces[Global.dparty[Global.dcpchar][0]][Global.dparty[Global.dcpchar][1]])
@ -62,3 +69,7 @@ func _on_warp_pressed() -> void:
func _on_Resume_pressed(): func _on_Resume_pressed():
Global.isresume = true Global.isresume = true
func _on_Team_pressed():
Global.live = 9

View file

@ -180,6 +180,7 @@ margin_bottom = 204.0
custom_fonts/font = ExtResource( 2 ) custom_fonts/font = ExtResource( 2 )
text = "Resume" text = "Resume"
[connection signal="pressed" from="CanvasLayer/HBoxContainer2/VBoxContainer/Team" to="." method="_on_Team_pressed"]
[connection signal="pressed" from="CanvasLayer/HBoxContainer2/VBoxContainer/Warp" to="." method="_on_warp_pressed"] [connection signal="pressed" from="CanvasLayer/HBoxContainer2/VBoxContainer/Warp" to="." method="_on_warp_pressed"]
[connection signal="pressed" from="CanvasLayer/HBoxContainer2/VBoxContainer2/Exit" to="." method="_on_exit_pressed"] [connection signal="pressed" from="CanvasLayer/HBoxContainer2/VBoxContainer2/Exit" to="." method="_on_exit_pressed"]
[connection signal="pressed" from="CanvasLayer/Resume" to="." method="_on_Resume_pressed"] [connection signal="pressed" from="CanvasLayer/Resume" to="." method="_on_Resume_pressed"]

68
levels/ui/teams.gd Normal file
View file

@ -0,0 +1,68 @@
extends Control
var team1
var team2
var team3
var team4
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
team1 = $"VBoxContainer/HBoxContainer/1"
team2 = $"VBoxContainer/HBoxContainer/2"
team3 = $"VBoxContainer/HBoxContainer/3"
team4 = $"VBoxContainer/HBoxContainer/4"
if Global.debug:
team1.icon = load(Global.pcharfull[Global.dparty[0][0]][Global.dparty[0][1]])
if Global.dparty[1][0] != null:
team2.icon = load(Global.pcharfull[Global.dparty[1][0]][Global.dparty[1][1]])
if Global.dparty[2][0] != null:
team3.icon = load(Global.pcharfull[Global.dparty[2][0]][Global.dparty[2][1]])
if Global.dparty[3][0] != null:
team4.icon = load(Global.pcharfull[Global.dparty[3][0]][Global.dparty[3][1]])
else:
team1.icon = load(Global.pcharfull[Global.party[0][0]][Global.party[0][1]])
if Global.party[1][0] != null:
team2.icon = load(Global.pcharfull[Global.party[1][0]][Global.party[1][1]])
if Global.party[2][0] != null:
team3.icon = load(Global.pcharfull[Global.party[2][0]][Global.party[2][1]])
if Global.party[3][0] != null:
team4.icon = load(Global.pcharfull[Global.party[3][0]][Global.party[3][1]])
$"VBoxContainer/HBoxContainer/1".grab_focus()
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
func _input(event):
if Input.is_action_just_pressed("Pause"):
queue_free()
func _charsel():
get_tree().change_scene("res://levels/ui/charlist.tscn")
func _on_Return_pressed():
# call_deferred("_teamswitch")Global.isresume = true
get_tree().change_scene("res://levels/ui/gameplay.tscn")
func _on_1_pressed():
Global.charswitch = 0
_charsel()
func _on_2_pressed():
Global.charswitch = 1
_charsel()
func _on_3_pressed():
Global.charswitch = 2
_charsel()
func _on_4_pressed():
Global.charswitch = 3
_charsel()

80
levels/ui/teams.tscn Normal file
View file

@ -0,0 +1,80 @@
[gd_scene load_steps=7 format=2]
[ext_resource path="res://levels/ui/teams.gd" type="Script" id=1]
[ext_resource path="res://fonts/start.tres" type="DynamicFont" id=2]
[ext_resource path="res://levels/bottomhud.tscn" type="PackedScene" id=3]
[ext_resource path="res://backgounds/night-sky-at-ceres.jpg" type="Texture" id=4]
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0, 0.8, 0, 1 )
[sub_resource type="StyleBoxFlat" id=2]
bg_color = Color( 0, 0.8, 0, 1 )
[node name="Teams" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 )
[node name="Night Sky" type="TextureRect" parent="."]
margin_right = 1280.0
margin_bottom = 720.0
texture = ExtResource( 4 )
[node name="Bottomhud" parent="." instance=ExtResource( 3 )]
[node name="VBoxContainer" type="VBoxContainer" parent="."]
margin_left = 64.0
margin_top = 46.0
margin_right = 1100.0
margin_bottom = 674.0
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
margin_right = 1036.0
margin_bottom = 512.0
rect_min_size = Vector2( 1024, 512 )
[node name="1" type="Button" parent="VBoxContainer/HBoxContainer"]
margin_right = 256.0
margin_bottom = 512.0
rect_min_size = Vector2( 256, 0 )
custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 1 )
[node name="2" type="Button" parent="VBoxContainer/HBoxContainer"]
margin_left = 260.0
margin_right = 516.0
margin_bottom = 512.0
rect_min_size = Vector2( 256, 0 )
custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 2 )
[node name="3" type="Button" parent="VBoxContainer/HBoxContainer"]
margin_left = 520.0
margin_right = 776.0
margin_bottom = 512.0
rect_min_size = Vector2( 256, 0 )
custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 2 )
[node name="4" type="Button" parent="VBoxContainer/HBoxContainer"]
margin_left = 780.0
margin_right = 1036.0
margin_bottom = 512.0
rect_min_size = Vector2( 256, 0 )
custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 2 )
[node name="Return" type="Button" parent="VBoxContainer"]
margin_top = 516.0
margin_right = 1036.0
margin_bottom = 570.0
custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 1 )
text = "BUTTON_RETURN"
[connection signal="pressed" from="VBoxContainer/HBoxContainer/1" to="." method="_on_1_pressed"]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/2" to="." method="_on_2_pressed"]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/3" to="." method="_on_3_pressed"]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/4" to="." method="_on_4_pressed"]
[connection signal="pressed" from="VBoxContainer/Return" to="." method="_on_Return_pressed"]

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/home-icon6.png-b10c1ac0802417bb5f506a51918cd2e6.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/ceres/items/home-icon6.png"
dest_files=[ "res://.import/home-icon6.png-b10c1ac0802417bb5f506a51918cd2e6.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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View file

@ -57,6 +57,7 @@ BUTTON_MUSICTEST;Music;Música;音楽
BUTTON_SFXTEST;Sound Effects;Efectos de Sonido;音響効果 BUTTON_SFXTEST;Sound Effects;Efectos de Sonido;音響効果
MENU_SFXTEST;Sound Effects Test;Prueba de efectos de sonido;音響効果テスト MENU_SFXTEST;Sound Effects Test;Prueba de efectos de sonido;音響効果テスト
MENU_MUSICTEST;Music Test;Prueba de música;音楽テスト MENU_MUSICTEST;Music Test;Prueba de música;音楽テスト
MENU_CHARSEL;Choose a character;Elige un personaje;キャラクターを選択してください
LABEL_STOPPLAYBACK;Press X to stop playback;Presione X para detener la reproducción;再生を停止するにはXを押してください LABEL_STOPPLAYBACK;Press X to stop playback;Presione X para detener la reproducción;再生を停止するにはXを押してください
SONG0_LABEL;Title Screen;Pantalla de título;タイトル画面 SONG0_LABEL;Title Screen;Pantalla de título;タイトル画面
SONG0_INFO;RELOADED\nRELOADED THEME\nMidori is now RELOADED;RELOADED\nRELOADED THEME\nMidori ahora esta RELOADED;RELOADED\nRELOADED THEME\n緑は今 RELOADED SONG0_INFO;RELOADED\nRELOADED THEME\nMidori is now RELOADED;RELOADED\nRELOADED THEME\nMidori ahora esta RELOADED;RELOADED\nRELOADED THEME\n緑は今 RELOADED
@ -131,9 +132,11 @@ DIALOG_TROUBLEMAKER_6;Are you OK?;¿Estás bien?;大丈夫ですか?
DIALOG_TROUBLEMAKER_7;It seems so;Eso parece;そうみたいです DIALOG_TROUBLEMAKER_7;It seems so;Eso parece;そうみたいです
DIALOG_HKR_0;I hear a heartbeat coming from inside this trash can;Escucho un latido que proviene del interior de este \ncubo de basura;このゴミ箱の中から鼓動が聞こえる DIALOG_HKR_0;I hear a heartbeat coming from inside this trash can;Escucho un latido que proviene del interior de este \ncubo de basura;このゴミ箱の中から鼓動が聞こえる
DIALOG_HKR_1;Don't underestimate the emotions of a trash can;No subestimes las emociones de un cubo de basura;ゴミ箱の感情を過小評価しないでください DIALOG_HKR_1;Don't underestimate the emotions of a trash can;No subestimes las emociones de un cubo de basura;ゴミ箱の感情を過小評価しないでください
DIALOG_HOME_0;Your friends can rest here if they wish;Tus amigos pueden descansar aquí si lo desean.;あなたの友人は望むならここで休むことができます
CERES_L20_DESC;Kimberlys Challenge;Reto de Kimberly;キンバリーの挑戦 CERES_L20_DESC;Kimberlys Challenge;Reto de Kimberly;キンバリーの挑戦
TWIN_TROUBLEMAKERS;Twin Troublemakers;Gemelas problématicas;双子のトラブルメーカー TWIN_TROUBLEMAKERS;Twin Troublemakers;Gemelas problématicas;双子のトラブルメーカー
TWIN_TROUBLEMAKERS_P2;Twin Troublemakers Part 2;Gemelas problématicas Parte 2;双子のトラブルメーカー パート2 TWIN_TROUBLEMAKERS_P2;Twin Troublemakers Part 2;Gemelas problématicas Parte 2;双子のトラブルメーカー パート2
YOUR_HOME;Your Home;Tu casa;あなたの家
MENU_CHARACTER;Character List;Lista de Personajes;キャラクター一覧 MENU_CHARACTER;Character List;Lista de Personajes;キャラクター一覧
MENU_TEAM;Team List;Lista de Equipos;チーム MENU_TEAM;Team List;Lista de Equipos;チーム
MENU_MAP;World Map;Mapa Mundial;世界地図 MENU_MAP;World Map;Mapa Mundial;世界地図

1 en es ja
57 BUTTON_SFXTEST Sound Effects Efectos de Sonido 音響効果
58 MENU_SFXTEST Sound Effects Test Prueba de efectos de sonido 音響効果テスト
59 MENU_MUSICTEST Music Test Prueba de música 音楽テスト
60 MENU_CHARSEL Choose a character Elige un personaje キャラクターを選択してください
61 LABEL_STOPPLAYBACK Press X to stop playback Presione X para detener la reproducción 再生を停止するにはXを押してください
62 SONG0_LABEL Title Screen Pantalla de título タイトル画面
63 SONG0_INFO RELOADED\nRELOADED THEME\nMidori is now RELOADED RELOADED\nRELOADED THEME\nMidori ahora esta RELOADED RELOADED\nRELOADED THEME\n緑は今 RELOADED
132 DIALOG_TROUBLEMAKER_7 It seems so Eso parece そうみたいです
133 DIALOG_HKR_0 I hear a heartbeat coming from inside this trash can Escucho un latido que proviene del interior de este \ncubo de basura このゴミ箱の中から鼓動が聞こえる
134 DIALOG_HKR_1 Don't underestimate the emotions of a trash can No subestimes las emociones de un cubo de basura ゴミ箱の感情を過小評価しないでください
135 DIALOG_HOME_0 Your friends can rest here if they wish Tus amigos pueden descansar aquí si lo desean. あなたの友人は望むならここで休むことができます
136 CERES_L20_DESC Kimberly’s Challenge Reto de Kimberly キンバリーの挑戦
137 TWIN_TROUBLEMAKERS Twin Troublemakers Gemelas problématicas 双子のトラブルメーカー
138 TWIN_TROUBLEMAKERS_P2 Twin Troublemakers Part 2 Gemelas problématicas Parte 2 双子のトラブルメーカー パート2
139 YOUR_HOME Your Home Tu casa あなたの家
140 MENU_CHARACTER Character List Lista de Personajes キャラクター一覧
141 MENU_TEAM Team List Lista de Equipos チーム
142 MENU_MAP World Map Mapa Mundial 世界地図