Skip to content
Snippets Groups Projects
Commit 4dd6b770 authored by mcmlxxix's avatar mcmlxxix
Browse files

add opening splash screen by echicken

parent f70d4fe6
No related branches found
No related tags found
No related merge requests found
                                                                                                      b  u  b  b  l  e    b  o  g  g  l  e        b  y    m  c  m  l  x  x  i  x  curedcurescuriocurlscurlycurrycu    t cultscumincuntscurvecurvycushycuterdaddydaffydandydareddaresda    tG wO  sdatumdealsdealtdeansdearsdeathdebugdebutdebitdecalde   G wOOO t rdecoydecrydeedsdeemsdeferdefogdailydairydeismdel  GOOO tG wO  tadawnsdazeddenimdemondeitydialsdiarydongsd  GGOOO tG wOOO t erdildodillsdinerdinesdingodisksdingydinkyd G wOOO tG wOOO tG wO  mesdodgedodgydollsdollyejectelateexcele  GGG wOOO tG wOOO t derelectexactepicsepochethereventerodeeos  GGOOOG wOOO tG wO  nactevadeevensevicteveryevilsevokeexalt  GGGOOO tG wOOO t  bedemberexistessayexertexileexpelexitset  GGOOOG wOOO tG wO weeexudeextraextolfablefacedfacesfacetfact  GGGOOO tG wOG dedfadesfaggyfailsfaintfairyfaithfakedfakerf  GGOOO tG wOG  akesfallsfalsefancyfearsfeatsfeastfecalfecesfee  GGGOG   ndsfeelsfetchfetedfetesfishyfistsfiverfivesfixedfixer  GGOG   derfiberfibrefeudsfindsfinerfinesflankfinalflareflashfleshfl     sedfeverfewerfinchfinedflossfloragangsganjagasesgavelgauzegearsgeck       sgabbygablegagergailygainsgaechicken
\ No newline at end of file
...@@ -509,8 +509,16 @@ function splashStart() { ...@@ -509,8 +509,16 @@ function splashStart() {
console.ctrlkey_passthru="+ACGKLOPQRTUVWXYZ"; console.ctrlkey_passthru="+ACGKLOPQRTUVWXYZ";
bbs.sys_status|=SS_MOFF; bbs.sys_status|=SS_MOFF;
bbs.sys_status |= SS_PAUSEOFF; bbs.sys_status |= SS_PAUSEOFF;
if(file_exists(root + "boggle.bin")) {
console.clear();
var splash=new Graphic(80,22);
splash.load(root + "boggle.bin");
splash.draw();
console.gotoxy(1,23);
console.center("\1n\1c[\1hPress any key to continue\1n\1c]");
while(console.inkey(K_NOECHO|K_NOSPIN)==="");
}
console.clear(); console.clear();
//TODO: DRAW AN ANSI SPLASH WELCOME SCREEN
} }
function splashExit() { function splashExit() {
...@@ -520,18 +528,15 @@ function splashExit() { ...@@ -520,18 +528,15 @@ function splashExit() {
console.attributes=ANSI_NORMAL; console.attributes=ANSI_NORMAL;
console.clear(); console.clear();
var splash_filename=root + "exit.bin"; var splash_filename=root + "exit.bin";
if(!file_exists(splash_filename)) exit(); if(file_exists(splash_filename)) {
var splash=new Graphic(80,21);
var splash_size=file_size(splash_filename); splash.load(splash_filename);
splash_size/=2; splash.draw();
splash_size/=80;
var splash=new Graphic(80,splash_size); console.gotoxy(1,23);
splash.load(splash_filename); console.center("\1n\1c[\1hPress any key to continue\1n\1c]");
splash.draw(); while(console.inkey(K_NOECHO|K_NOSPIN)==="");
}
console.gotoxy(1,23);
console.center("\1n\1c[\1hPress any key to continue\1n\1c]");
while(console.inkey(K_NOECHO|K_NOSPIN)==="");
console.clear(); console.clear();
} }
...@@ -677,7 +682,7 @@ function Player(name,points,days,laston) { ...@@ -677,7 +682,7 @@ function Player(name,points,days,laston) {
this.name=name?name:user.alias; this.name=name?name:user.alias;
this.points=points?points:0; this.points=points?points:0;
this.days=days?days:[]; this.days=days?days:[];
this.laston=laston?laston:false; this.laston=laston?laston:time();
} }
function InfoBox(x,y) { function InfoBox(x,y) {
......
...@@ -56,7 +56,16 @@ function splashStart() ...@@ -56,7 +56,16 @@ function splashStart()
{ {
console.ctrlkey_passthru="+ACGKLOPQRTUVWXYZ"; console.ctrlkey_passthru="+ACGKLOPQRTUVWXYZ";
bbs.sys_status|=SS_MOFF; bbs.sys_status|=SS_MOFF;
bbs.sys_status|=SS_PAUSEOFF; bbs.sys_status|=SS_PAUSEOFF;
if(file_exists(root + "uberblox.bin")) {
console.clear();
var splash=new Graphic(80,22);
splash.load(root + "uberblox.bin");
splash.draw();
console.gotoxy(1,23);
console.center("\1n\1c[\1hPress any key to continue\1n\1c]");
while(console.inkey(K_NOECHO|K_NOSPIN)==="");
}
console.clear(); console.clear();
} }
function splashExit() function splashExit()
......
                                                                                     
                   
              
                  
                
                                                                                                 u  b  e  r  b  l  o  x         b  y        m  c  m  l  x  x  i  x                                                                                           
       
       
                 
     
   
 
       
   
 
   
 
    
          
 
 
 
                                                                       echicken  
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment