midori-school/global.gd

67 lines
8.5 KiB
GDScript3
Raw Normal View History

2023-12-26 17:09:27 +01:00
extends Node
2024-01-20 14:58:29 +01:00
var live = 0
2023-12-26 17:09:27 +01:00
var time
2024-07-14 23:55:40 +02:00
var spkmode
2023-12-26 17:09:27 +01:00
var origmpos
var mousepos
var timelimit = 15000
2024-06-11 23:36:12 +02:00
var exitgame = false
2024-11-07 21:39:59 +01:00
var wait = 0
2024-01-27 23:38:20 +01:00
var bossready = false
2024-04-17 22:00:30 +02:00
var playerx
var playery
2024-07-16 02:22:33 +02:00
var ccutscene = null
2024-11-18 20:58:50 +01:00
var difdamage = 0
2024-12-18 23:03:34 +01:00
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"]]
2024-12-02 20:49:07 +01:00
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]]
2024-08-24 05:54:38 +02:00
const pcnames = ["Midori Asgardius", "Diana Asgardius", null, "Kimberly Arch", null, null, null, "Pamela Hashimoto", "Lety Hashimoto", "Natasha Dostoyevsky"]
2024-11-11 18:39:03 +01:00
const npcnames = ["Lily", "Railway Girl", null, "Kimberly Arch", null, null, null, null, null, "Natasha Dostoyevsky"]
2024-08-24 05:54:38 +02:00
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"]]
2024-11-11 18:39:03 +01:00
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"]
2024-12-18 23:03:34 +01:00
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], [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], [800, 200, 72, 12, 136, 25, 700], [800, 200, 72, 12, 136, 25, 700], [1026, 200, 87, 7, 105, 49, 115]]
2024-05-15 23:53:24 +02:00
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]]
2024-01-27 23:38:20 +01:00
var cdialog = []
2024-12-18 23:03:34 +01:00
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]]]]
2024-01-20 11:38:12 +01:00
var cplace = [0,2,1]
var dplace = [null, null, null]
2024-12-18 23:03:34 +01:00
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, 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], ["res://sprites/ceres/pamela/sprite.png"], ["res://sprites/ceres/lety/sprite.png"], ["res://sprites/common/natasha/sprite.png"]]
2024-01-27 21:10:58 +01:00
const npchars = ["res://sprites/common/midori/sprite.png", null, null, null, null, null, null, null, null, "res://sprites/common/natasha/sprite.png"]
2024-05-16 00:51:17 +02:00
var cboss = [null, null, null]
var isboss
2024-12-18 23:03:34 +01:00
var party = [[0,0], [null,null], [null,null], [null,null]]
2024-11-10 13:23:19 +01:00
var sparty = [[null,null], [null,null], [null,null], [null,null]]
2024-01-30 04:05:17 +01:00
const specialities = [2, 0, 3, 1, 5, 4]
2024-12-18 23:03:34 +01:00
var dparty = [[0,0], [1,0], [7,0], [8,0]]
2024-05-15 23:11:38 +02:00
var level = [1,1,1,1,1,1,1,1,1,1]
2024-05-15 23:53:24 +02:00
var dlevel = [1,1,1,1,1,1,1,1,1,1]
2024-01-20 11:38:12 +01:00
var cpchar = 0
2024-09-26 22:06:33 +02:00
var result = [0, 0, 0, 0, 0]
2024-05-11 03:35:07 +02:00
var dificulty = 0
2024-01-20 11:38:12 +01:00
var dcpchar = 0
2024-01-26 22:16:00 +01:00
var mangohud = false
2024-01-20 11:38:12 +01:00
var cspawnarea = [null, null]
var owlocation = [[null, null], [null, null]]
2024-11-04 00:29:58 +01:00
const musictracks = ["res://music/midorinoyume.ogg", "res://music/seahorse.ogg", "res://music/chinesegoat.ogg", "res://music/doyoufeelold.ogg", "res://music/doyiuneedahealer.ogg", "res://music/adayatceres.ogg", "res://music/twintroublemakers.ogg", "res://music/easyquiz.ogg", "res://music/neowave.ogg", "res://music/multivectorsubmarines.ogg", "res://music/halfgeniegirls.ogg", "res://music/rusianmaverickfairy.ogg", "res://music/blacksmithofdestruction.ogg", "res://music/shininglikefireworks.ogg", "res://music/sadtrashcan.ogg", "res://music/akikonotegami.ogg", "res://music/asadcat.ogg", "res://music/lilydesire.ogg", "res://music/scholartrip.ogg", "res://music/quantumice.ogg", "res://music/unreeeal.ogg", "res://music/alsa.ogg", "res://music/silverblue.ogg"]
2024-01-20 14:58:29 +01:00
const sfxtracks = ["res://sfx/braindamage.wav", "res://sfx/gaugefill.wav", "res://sfx/boomboombakudan.wav"]
2024-01-16 13:58:17 +01:00
var debug = false
2024-12-07 22:44:25 +01:00
const release = "R0.3.3-beta"
2023-12-26 17:09:27 +01:00
var sk = false
2024-08-16 22:54:37 +02:00
var gamepad = 0
2024-09-24 02:27:17 +02:00
var quest = [0, 0, 0, 0, 0, 0]
2024-12-02 02:45:44 +01:00
var isresume = false
2023-12-26 17:09:27 +01:00
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass