midori-school/global.gd

64 lines
5.8 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
var origmpos
var mousepos
var timelimit = 15000
2024-06-11 23:36:12 +02:00
var exitgame = false
2023-12-26 17:09:27 +01:00
var wait
2024-01-27 23:38:20 +01:00
var bossready = false
2024-04-17 22:00:30 +02:00
var playerx
var playery
2024-05-12 21:54:52 +02:00
var ccutscene
2024-06-23 20:23:32 +02:00
const cutscenes = [["res://levels/Cutscenes/opening/aboutkaizo.tscn", "res://levels/Cutscenes/opening/midorihello.tscn", "res://music/scholartrip.wav", false], ["res://levels/Cutscenes/opening/midorihello.tscn", "res://levels/Cutscenes/opening/fearlessmidori.tscn", "res://music/scholartrip.wav", false], ["res://levels/Cutscenes/opening/fearlessmidori.tscn", "res://levels/Cutscenes/opening/midoriwaterfall.tscn", "res://music/midorinoakuma.wav", false], ["res://levels/Cutscenes/opening/midoriwaterfall.tscn", "res://levels/Cutscenes/opening/midorireading.tscn", "res://music/midorinoakuma.wav", false], ["res://levels/Cutscenes/opening/midorireading.tscn", "res://levels/Cutscenes/opening/chasing.tscn", "res://music/midorinoakuma.wav", false], ["res://levels/Cutscenes/opening/chasing.tscn", "res://levels/ui/gameplay.tscn", "res://music/midorinoakuma.wav", true]]
2024-03-31 20:39:39 +02:00
const pcnames = ["Midori Asgardius", "Diana Asgardius", null, "Kimberly Arch", null, null, null, null, null, "Natasha Dostoyevsky"]
2024-04-17 20:33:27 +02:00
const npcnames = ["Lily", null, null, "Kimberly Arch", null, null, null, null, null, "Natasha Dostoyevsky"]
2024-03-31 20:39:39 +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], [null], [null], ["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], [null], [null], ["res://sprites/common/natasha/facehud.png"]]
2024-04-17 20:33:27 +02:00
const npcfaces = ["res://sprites/common/midori/face.png",null, null, "res://sprites/common/kimberly/face.png", null, null, null, null, null, "res://sprites/common/natasha/face.png"]
2024-05-15 23:11:38 +02: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], [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], [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], [null], [null], [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-04-17 20:33:27 +02:00
const places = [[[[null, null, 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, 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-03-31 20:39:39 +02:00
const pbbullets = ["res://sprites/common/bullet/fireball.tscn", "res://sprites/common/bullet/X11.tscn", null, "res://sprites/common/bullet/arrow.tscn", null, null, null, null, null, "res://sprites/common/bullet/snowflake.tscn"]
const pcspecialities = [1, 2, null, 3, null, null, null, null, null, 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"]]
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-03-31 20:39:39 +02:00
var party = [[0,0], [1,0], [9,0], [3,0]]
2024-01-30 04:05:17 +01:00
const specialities = [2, 0, 3, 1, 5, 4]
2024-03-31 20:39:39 +02:00
var dparty = [[0,0], [1,0], [9,0], [3,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-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]]
2023-12-26 17:09:27 +01:00
var hiscoresfile = "user://hiscores.save"
var gamelevel
var levelmax
var firstrun
2024-06-25 23:08:24 +02:00
const musictracks = ["res://music/midorinoakuma.wav", "res://music/seahorse.wav", "res://music/chinesegoat.wav", "res://music/doyoufeelold.wav", "res://music/doyiuneedahealer.wav", "res://music/adayatceres.wav", "res://music/twintroublemakers.wav", "res://music/easyquiz.wav", "res://music/neowave.wav", "res://music/multivectorsubmarines.wav", "res://music/halfgeniegirls.wav", "res://music/rusianmaverickfairy.wav", "res://music/blacksmithofdestruction.wav", "res://music/shininglikefireworks.wav", "res://music/sadtrashcan.wav", "res://music/akikoletter.wav", "res://music/asadcat.wav", "res://music/lilydesire.wav", "res://music/scholartrip.wav", "res://music/quantumice.wav", "res://music/unreeeal.wav", "res://music/alsa.wav", "res://music/silverblue.wav"]
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-06-27 00:22:53 +02:00
const release = "R0.1.8-dev"
2023-12-26 17:09:27 +01:00
var sk = false
var xm = 0
var ym = 0
# 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