Added a credits screen.
This commit is contained in:
parent
65d6722122
commit
e5353026e1
|
@ -1,5 +1,6 @@
|
|||
function titleScreen () {
|
||||
guiControl.title = {
|
||||
screen: "main",
|
||||
show: true,
|
||||
cursorPosition: 0,
|
||||
activateDelay: 0,
|
||||
|
@ -17,6 +18,7 @@ function drawTitleScreen() {
|
|||
if (guiControl.title && guiControl.title.show) {
|
||||
guiControl.title.activateDelay -= (guiControl.title.activateDelay > 0) ? 1 : 0;
|
||||
|
||||
if (guiControl.title.screen == "main") {
|
||||
if (ct_down().down) {
|
||||
snd_cursordown.Play();
|
||||
guiControl.title.cursorPosition++;
|
||||
|
@ -86,6 +88,24 @@ function drawTitleScreen() {
|
|||
guiControl.title.cursorPosition = 0;
|
||||
// console.log(guiControl.title.screen);
|
||||
}
|
||||
|
||||
if (ct_cancel().down) {
|
||||
guiControl.title.screen = "credits";
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (guiControl.title.screen == "credits") {
|
||||
guiControl.drawPixelText("Credits", guiControl.title.leftBorder - pixel(), pixel(2), 0, "white", 6);
|
||||
guiControl.drawPixelText("Music, Icons", pixel(), pixel(11), 0, "white", 4);
|
||||
guiControl.drawPixelText("Paws Menu", pixel(2), pixel(17), 0, "yellow", 6);
|
||||
guiControl.drawPixelText("paws.bandcamp.com", pixel(2), pixel(25), 0, "yellow", 4);
|
||||
guiControl.drawPixelText("Evrthng Else", pixel(), pixel(39), 0, "white", 4);
|
||||
guiControl.drawPixelText("Alamantus", pixel(2), pixel(45), 0, "yellow", 6);
|
||||
guiControl.drawPixelText("alamantus.com", pixel(2), pixel(53), 0, "yellow", 4);
|
||||
|
||||
if (ct_confirm().down || ct_cancel().down || ct_esc.down) {
|
||||
guiControl.title.screen = "main";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue