credit screen

This commit is contained in:
Page Asgardius 2023-12-26 14:25:50 -07:00
parent d62007d9b8
commit 5f650c1098
20 changed files with 783 additions and 11 deletions

BIN
backgounds/kimberlyarch.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b1p80uik4t12b"
path="res://.godot/imported/kimberlyarch.jpg-0fef4b6870161d301a330494500ac1aa.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://backgounds/kimberlyarch.jpg"
dest_files=["res://.godot/imported/kimberlyarch.jpg-0fef4b6870161d301a330494500ac1aa.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

32
backgounds/result.gd Normal file
View file

@ -0,0 +1,32 @@
extends Node2D
var rmusic := AudioStreamPlayer.new()
var wait
# Called when the node enters the scene tree for the first time.
func _ready():
Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
add_child(rmusic)
var titlemusic = load("res://music/XsEdzesSs.wav")
rmusic.stream = titlemusic
rmusic.play(0)
wait = Time.get_ticks_msec()
#pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _input(event):
# Mouse in viewport coordinates.
if (Time.get_ticks_msec() - wait) >= 1000 && (event is InputEventMouseButton || Input.is_joy_button_pressed(0,JOY_BUTTON_A) || Input.is_key_pressed(KEY_ENTER)):
#print("Mouse Click/Unclick at: ", event.position)
_title()
func _title():
# This is like autoloading the scene, only
# it happens after already loading the main scene.
get_tree().change_scene_to_file("res://title.tscn")
#get_tree().root.add_child(title)
#get_tree().root.remove_child(boot)
#boot.queue_free()

37
backgounds/result.tscn Normal file
View file

@ -0,0 +1,37 @@
[gd_scene load_steps=4 format=3 uid="uid://dq8vnuy2g3ewv"]
[ext_resource type="Texture2D" uid="uid://b1p80uik4t12b" path="res://backgounds/kimberlyarch.jpg" id="1_6w0sp"]
[ext_resource type="Script" path="res://backgounds/result.gd" id="1_ejbiw"]
[ext_resource type="Script" path="res://fps.gd" id="2_r4na5"]
[node name="Result" type="Node2D"]
script = ExtResource("1_ejbiw")
[node name="TextureRect" type="TextureRect" parent="."]
offset_right = 40.0
offset_bottom = 40.0
texture = ExtResource("1_6w0sp")
[node name="fps" type="Label" parent="."]
offset_right = 40.0
offset_bottom = 23.0
script = ExtResource("2_r4na5")
[node name="Label" type="Label" parent="."]
modulate = Color(0, 0, 0, 1)
self_modulate = Color(0, 0, 0, 1)
offset_left = 484.0
offset_top = 260.0
offset_right = 851.0
offset_bottom = 283.0
text = "This is a placeholder for Dungeon Result Screen"
[node name="Label2" type="Label" parent="."]
modulate = Color(0, 0, 0, 1)
self_modulate = Color(0, 0, 0, 1)
offset_left = 346.0
offset_top = 361.0
offset_right = 602.0
offset_bottom = 387.0
scale = Vector2(2.92998, 7.01768)
text = "Press Enter or A to return to title"

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=4 format=3 uid="uid://b30uq5ye61dd6"]
[gd_scene load_steps=4 format=3 uid="uid://doxnh56s63i2y"]
[ext_resource type="Script" path="res://bootclick.gd" id="1_52bti"]
[ext_resource type="Script" path="res://fps.gd" id="2_gnh1w"]

39
export_presets.cfg Normal file
View file

@ -0,0 +1,39 @@
[preset.0]
name="Linux/X11"
platform="Linux/X11"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path=""
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
[preset.0.options]
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
binary_format/embed_pck=false
texture_format/bptc=true
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
binary_format/architecture="x86_64"
ssh_remote_deploy/enabled=false
ssh_remote_deploy/host="user@host_ip"
ssh_remote_deploy/port="22"
ssh_remote_deploy/extra_args_ssh=""
ssh_remote_deploy/extra_args_scp=""
ssh_remote_deploy/run_script="#!/usr/bin/env bash
export DISPLAY=:0
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
\"{temp_dir}/{exe_name}\" {cmd_args}"
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
rm -rf \"{temp_dir}\""

56
levels/credits.gd Normal file
View file

@ -0,0 +1,56 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
var bgsound := AudioStreamPlayer.new()
var song1 = load("res://music/sweetener.wav")
var song2 = load("res://music/tooold.wav")
var song3 = load("res://music/portello.wav")
var playstart = false
var playindex = 0
func _ready():
Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
add_child(bgsound)
bgsound.stream = song1
bgsound.play(0)
#pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
var bgtime = bgsound.get_playback_position() + AudioServer.get_time_since_last_mix()
# Compensate for output latency.
bgtime -= AudioServer.get_output_latency()
#print("Time is: ", bgtime)
if bgtime < 0:
if playstart:
if playindex == 0:
playindex = 1
playstart = false
bgsound.stream = song2
bgsound.play(0)
elif playindex == 1:
playindex = 2
playstart = false
bgsound.stream = song3
bgsound.play(0)
else:
_complete()
elif bgsound.has_stream_playback():
playstart = true
#pass
func _complete():
# This is like autoloading the scene, only
# it happens after already loading the main scene.
get_tree().change_scene_to_file("res://backgounds/result.tscn")
#get_tree().root.add_child(title)
#get_tree().root.remove_child(boot)
#boot.queue_free()
func _input(event):
# Mouse in viewport coordinates.
if event is InputEventMouseButton || Input.is_joy_button_pressed(0,JOY_BUTTON_A) || Input.is_key_pressed(KEY_ENTER):
#print("Mouse Click/Unclick at: ", event.position)
_complete()

432
levels/credits.tscn Normal file
View file

@ -0,0 +1,432 @@
[gd_scene load_steps=6 format=3 uid="uid://g8ajwoud48us"]
[ext_resource type="Script" path="res://levels/credits.gd" id="1_y6orl"]
[ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (720p).ogv" id="2_0cref"]
[ext_resource type="Script" path="res://nebula.gd" id="3_ffw0g"]
[ext_resource type="Script" path="res://levels/roll.gd" id="6_3q8sp"]
[ext_resource type="Script" path="res://fps.gd" id="7_jok2t"]
[node name="credits" type="Node2D"]
script = ExtResource("1_y6orl")
[node name="nebula" type="VideoStreamPlayer" parent="."]
offset_right = 40.0
offset_bottom = 40.0
scale = Vector2(2, 1.96)
stream = ExtResource("2_0cref")
autoplay = true
script = ExtResource("3_ffw0g")
[node name="roll" type="Label" parent="."]
offset_top = 720.0
offset_right = 1280.0
offset_bottom = 12504.0
text = "Midori in the Magic School
Programming
Page Asgardius
Made with Godot Engine
Testing
Asus VivoBook X1500EA
Arch Linux Rolling
Development started with this device
Provided as a replacement for a HP 14 laptop that died while running Genshin Impact
Steam Deck
Arch Linux Rolling
Provided by Evelyn Freeman
Feedback
Sakura Nakayama
Tood
Creative Staff
Page Asgardius
Beachkid
Sakura Nakayama
Music
Soundtrack provided by archive.org
Title screen
RELOADED Theme
RELOADED
Friendly challenge
Oskars Skarmslackare
MrGamer
Overworld
Layers
Ceekayed
Dungeon of Destruction
untitled (known as Kaveh Theme on official soundtrack)
xerxes
Final Boss Fight
zenon
ko0x
Ending Theme
ama no gawa
vince kaichan
Dungeon Result screen
Xs EdzesSs
JosSs
Credit roll 1
artificial sweetener
Funky Fish and raina
Credit roll 2
too old
tj technoiZ
Credit roll 3
portello
motherchip
Encoders
Main records
FLAC encoder
xiph.org
X264
Videolan
Game assets
Libtheora
xiph.org
Libvorbis
xiph.org
PCM
Public Domain
Engine development
Project Founders
Juan Linietsky (reduz)
Ariel Manzur (punto-)
Lead Developer
Juan Linietsky (reduz)
Project Manager
Rémi Verschelde (akien-mga)
Developers
Aaron Franke (aaronfranke)
Aaron Record (LightningAA)
Adam Scott (adamscott)
Alexander Holland (AlexHolly)
Alexey Khoroshavin (allkhor)
Alfred Reinold Baudisch (alfredbaudisch)
Alket Rexhepi (alketii)
Andrea Catania (AndreaCatania)
Andrii Doroshenko (Xrayez)
Andy Maloney (asmaloney)
Andy Moss (MillionOstrich)
Angad Kambli (angad-k)
Anilforextra (AnilBK)
Anish Bhobe (KidRigger)
Anton Yabchinskiy (a12n)
Anutrix
Aren Villanueva (kurikaesu)
Ariel Manzur (punto-)
AThousandShips
Bartłomiej T. Listwon (Listwon)
Bastiaan Olij (BastiaanOlij)
Ben Brookshire (sheepandshepherd)
Benjamin Larsson (Nallebeorn)
Bernhard Liebl (poke1024)
Bhuvan Vemula (Bhu1-V)
bitsawer
Błażej Szczygieł (zaps166)
Bojidar Marinov (bojidar-bg)
Brian Semrau (briansemrau)
Bruno Lourenço (MadEqua)
Cameron Reikes (creikey)
Camille Mohr-Daurat (pouleyKetchoupp)
Caner Demirer (cdemirer)
Carl Olsson (not-surt)
Carter Anderson (cart)
Chris Bradfield (cbscribe)
Clay John (clayjohn)
ConteZero
Dana Olson (adolson)
Daniel J. Ramirez (djrm)
Daniel Rakos (aqnuep)
Daniel Zilberleyb (dzil123)
Danil Alexeev (dalexeev)
dankan1890
David Cambré (Gallilus)
David Sichma (DavidSichma)
David Snopek (dsnopek)
Dharkael (lupoDharkael)
Dmitry Koteroff (Krakean)
Dmitry Maganov (vonagam)
Dominik Jasiński (dreamsComeTrue)
Douglas Leão (DeeJayLSP)
DualMatrix
Ellen Poe (ellenhp)
Emmanuel Barroga (codecustard)
Emmanuel Leblond (touilleMan)
Eoin O'Neill (Eoin-ONeill-Yokai)
Eric Lasota (elasota)
Eric M (EricEzaM)
Eric Rybicki (ericrybick)
Erik Selecký (rxlecky)
est31
Eveline Jarosz (Marqin)
Fabian Mathews (supagu)
Fabio Alessandrelli (Faless)
Fabrice Cipolla (fabriceci)
Ferenc Arn (tagcup)
FireForge (fire-forge)
follower
foxydevloper
François Belair (Razoric480)
Franklin Sobrinho (TheHX)
Fredia Huya-Kouadio (m4gr3d)
Geequlim
George Marques (vnen)
Gerrit Großkopf (Grosskopf)
Gilles Roudiere (groud)
Gordon MacPherson (RevoluPowered)
Guilherme Felipe de C. G. da Silva (guilhermefelipecgs)
Hakim Rouatbi (hakro)
Hanif Bin Ariffin (hbina)
Haoyu Qiu (timothyqiu)
HP van Braam (hpvb)
Hendrik Brucker (Geometror)
hilfazer
Hiroshi Ogawa (hi-ogawa)
homer666
hoontee
Hugo Locurcio (Calinou)
Ian Bishop (ianb96)
Ibrahn Sahir (ibrahn)
Ignacio Etcheverry (neikeq)
Igor Kordiukiewicz (IgorKordiukiewicz)
Ilaria Cislaghi (QbieShay)
Indah Sylvia (ISylvox)
J08nY
Jake Young (Duroxxigar)
Jakub Grzesik (kubecz3k)
James Buck (jbuck3)
Jan Haller (Bromeon)
Jason Knight (jasonwinterpixel)
Jean-Michel Bernard (jmb462)
Jérôme Gully (Nutriz)
Jia Jun Chai (SkyLucilfer)
Joan Fons Sanchez (JFonS)
Johan Manuel (29jm)
Johannes Witt (HaSa1002)
Jonathan Nicholl (jtnicholl)
Jordan Schidlowsky (winterpixelgames)
Josh Jones (DarkKilauea)
Joshua Grams (JoshuaGrams)
Juan Linietsky (reduz)
Julian Murgia (StraToN)
Julien Nguyen (Blackiris)
Jummit
Justo Delgado (mrcdk)
karroffel
Kelly Thomas (KellyThomas)
kleonc
Kongfa Waroros (gongpha)
Kostadin Damyanov (Max-Might)
K. S. Ernest (iFire) Lee (fire)
lawnjelly
Leon Krause (leonkrause)
Liz Haas (27thLiz)
Lucien Menassol (Kanabenki)
Lyuma
Maganty Rushyendra (mrushyendra)
Manuele Finocchiaro (m4nu3lf)
Marcel Admiraal (madmiraal)
Marcelo Fernandez (marcelofg55)
Marc Gilleron (Zylann)
Marcin Zawiejski (dragmz)
Marcus Brummer (mbrlabs)
Marcus Elg (MCrafterzz)
Mariano Javier Suligoy (MarianoGnu)
Mario Schlack (hurikhan)
Marios Staikopoulos (marstaik)
Marius Hanl (Maran23)
Mark Riedesel (klowner)
Markus Sauermann (Sauermann)
Martin Capitanio (capnm)
Martin Liška (marxin)
Martin Sjursen (binbitten)
marynate
Masoud BH (masoudbh3)
Mateo Kuruk Miccino (kuruk-mm)
Matthew (skyace65)
Matthias Hölzl (hoelzl)
Max Hilbrunner (mhilbrunner)
merumelu
Meru Patel (Janglee123)
MewPurPur
Michael Alexsander (YeldhamDev)
Michał Iwańczuk (iwek7)
MichiRecRoom (LikeLakers2)
Micky (Mickeon)
Mikael Hermansson (mihe)
MinusKube
Morris \"Tabor\" Arroad (mortarroad)
mrezai
Muhammad Huri (CakHuri)
muiroc
Nathan Franke (nathanfranke)
Nathan Lovato (NathanLovato)
Nathan Warden (NathanWarden)
Nicholas Huelin (SirQuartz)
Nikita Lita (nikitalita)
Nils André-Chang (NilsIrl)
Noah Beard (TwistedTwigleg)
Nông Văn Tình (nongvantinh)
Nuno Donato (nunodonato)
ocean (they/them) (anvilfolk)
Omar El Sheikh (The-O-King)
Ovnuniarchos
Pascal Richter (ShyRed)
Patrick (firefly2442)
Paul Batty (Paulb23)
Paul Joannon (paulloz)
Paul Trojahn (ptrojahn)
Pāvels Nadtočajevs (bruvzg)
Paweł Fertyk (pfertyk)
Pawel Kowal (pkowal1982)
Pawel Lampe (Scony)
Pedro J. Estébanez (RandomShaper)
Pieter-Jan Briers (PJB3005)
Poommetee Ketson (Noshyaar)
Przemysław Gołąb (n-pigeon)
Rafael M. G. (rafallus)
Rafał Mikrut (qarmin)
Ralf Hölzemer (rollenrolm)
Ramesh Ravone (RameshRavone)
Raphael2048
Raul Santos (raulsntos)
Ray Koopa (RayKoopa)
RedMser
RedworkDE
Rémi Verschelde (akien-mga)
Rhody Lugo (rraallvv)
Ricardo Buring (rburing)
Ricardo Subtil (Ev1lbl0w)
Riteo Siuga (Riteo)
Roberto F. Arroyo (robfram)
Robin Hübner (profan)
romulox-x
Rune Smith (rune-scape)
Ruslan Mustakov (endragor)
Ryan Roden-Corrent (rrcore)
Saniko (sanikoyes)
santouits
SaracenOne
Sergey Minakov (naithar)
sersoong
Shiqing (kawa-yoiko)
Silc 'Tokage' Renew (TokageItLab)
Simon Wenner (swenner)
smix8
snailrhymer
Stijn Hinlopen (hinlopen)
Swarnim Arun (minraws)
TC (floppyhammer)
TechnoPorg
Thakee Nathees (ThakeeNathees)
thebestnom
Theo Hallenius (TheoXD)
Timo Schwarzer (timoschwarzer)
Timothé Bonhoure (ajreckof)
Timo (toger5)
Tomasz Chabora (KoBeWi)
trollodel
Twarit Waikar (IronicallySerious)
Umang Kalra (theoway)
Vinzenz Feenstra (vinzenz)
Vitika Soni (Vitika9)
박한얼 (volzhs)
V. Vamsi Krishna (vkbsb)
Wilhem Barbier (nounoursheureux)
William Deurwaarder (williamd67)
Will Nations (willnationsdev)
Wilson E. Alvarez (Rubonnek)
Xavier Cho (mysticfall)
yg2f (SuperUserNameMan)
Yuri Rubinsky (Chaosus)
Yuri Sizov (YuriSizov)
Zae Chao (zaevi)
Zak Stam (zaksnet)
Zher Huei Lee (leezh)
ZuBsPaCe
风青山 (Rindbee)
Asgardius Virtualx Project contributors
Evelyn Debian
Kimberly Arch
Sarahi Syslinux
Eric Asgardius
Beachkid
Sakura Nakayama
Goldfish
Midori in the Magic School is an upcoming game from Asgardius Virtualx project
Visit Asgardius Virtualx homepage at https://virtualx.asgardius.company/
Project website
Hosting provided by Scaleway Dedibox
Source code hosted at https://git.asgardius.company/asgardius/midori-school
You can listen my radio station at https://asteroid.asgardius.company/public/r3
Special Thanks for Unity Technologies for make me choosing Godot
Godot does what Unitydnt
I'm looking for developers, artists and japanese voice actors who want to help on this videogame
from Asgardius Virtualx series and the next Genshin Killer
Contact info
Email
asgardius@asgardius.company
Activitypub
@asgardius@social.asgardius.company
Matrix Chat
@asgardius:asgardius.company
You are free to distribute this game and make modifications, but remember sharing your modifications with source code
You are free to create guides, but i suggest avoiding cheat codes
You can reuse assets for non-commercial purposes only"
horizontal_alignment = 1
script = ExtResource("6_3q8sp")
[node name="fps" type="Label" parent="."]
offset_right = 40.0
offset_bottom = 23.0
script = ExtResource("7_jok2t")
[connection signal="finished" from="nebula" to="nebula" method="_on_finished"]

11
levels/roll.gd Normal file
View file

@ -0,0 +1,11 @@
extends Label
func _process(delta):
#453 lines
#623 seconds credit roll
#633 seconds music
#20 Delta base
#20*623/633=19.6840442338
#Roll velocity calculator
#(14.0866856839 * music duration (seconds)) / Line count
position.y -= delta * 12

BIN
music/XsEdzesSs.wav Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://d355ec8l0niu7"
path="res://.godot/imported/XsEdzesSs.wav-379399bc761c58e4b6769227e1c9905d.sample"
[deps]
source_file="res://music/XsEdzesSs.wav"
dest_files=["res://.godot/imported/XsEdzesSs.wav-379399bc761c58e4b6769227e1c9905d.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=2
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0

BIN
music/portello.wav Normal file

Binary file not shown.

24
music/portello.wav.import Normal file
View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://dm8yye02hk7dj"
path="res://.godot/imported/portello.wav-c8e47f1d78a01b083a9b5e3eb8bc39d6.sample"
[deps]
source_file="res://music/portello.wav"
dest_files=["res://.godot/imported/portello.wav-c8e47f1d78a01b083a9b5e3eb8bc39d6.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0

BIN
music/sweetener.wav Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://0ahlhvx8kvtq"
path="res://.godot/imported/sweetener.wav-0b0c54fa542353ed7e204d8ba2430b24.sample"
[deps]
source_file="res://music/sweetener.wav"
dest_files=["res://.godot/imported/sweetener.wav-0b0c54fa542353ed7e204d8ba2430b24.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0

BIN
music/tooold.wav Normal file

Binary file not shown.

24
music/tooold.wav.import Normal file
View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://cguy1a1msdxul"
path="res://.godot/imported/tooold.wav-6ad6f24d55b391dea5d7ce392d523b37.sample"
[deps]
source_file="res://music/tooold.wav"
dest_files=["res://.godot/imported/tooold.wav-6ad6f24d55b391dea5d7ce392d523b37.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0

BIN
sprites/ss.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

34
sprites/ss.png.import Normal file
View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cpd31c6o18rmh"
path="res://.godot/imported/ss.png-bfc64d41c6c7791990ccd2613cdfbafc.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/ss.png"
dest_files=["res://.godot/imported/ss.png-bfc64d41c6c7791990ccd2613cdfbafc.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View file

@ -28,22 +28,23 @@ func _input(event):
# Mouse in viewport coordinates.
if (Time.get_ticks_msec() - wait) >= 1000 && (event is InputEventMouseButton || Input.is_key_pressed(KEY_ENTER) || Input.is_joy_button_pressed(0,JOY_BUTTON_A)):
#print("Mouse Click/Unclick at: ", event.position)
#_level()
print("There are not game levels at the moment")
_level()
#print("There are not game levels at the moment")
elif (Time.get_ticks_msec() - wait) >= 1000 && (Input.is_key_pressed(KEY_ESCAPE) || Input.is_joy_button_pressed(0,JOY_BUTTON_B)):
get_tree().quit()
func _level():
# This is like autoloading the scene, only
# it happens after already loading the main scene.
Global.live = 1
Global.gamelevel = randi() % 3
if Global.gamelevel == 0:
get_tree().change_scene_to_file("res://backgounds/galaxy.tscn")
elif Global.gamelevel == 1:
get_tree().change_scene_to_file("res://backgounds/wormhole.tscn")
else:
get_tree().change_scene_to_file("res://backgounds/abstract.tscn")
get_tree().change_scene_to_file("res://levels/credits.tscn")
#Global.live = 1
#Global.gamelevel = randi() % 3
#if Global.gamelevel == 0:
# get_tree().change_scene_to_file("res://backgounds/galaxy.tscn")
#elif Global.gamelevel == 1:
# get_tree().change_scene_to_file("res://backgounds/wormhole.tscn")
#else:
# get_tree().change_scene_to_file("res://backgounds/abstract.tscn")
#get_tree().root.add_child(title)
#get_tree().root.remove_child(boot)
#boot.queue_free()