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

Just code formatting, I think..

parent aaba9a96
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
Dictionary files created from ENABLe gaming dictionary Dictionary files created from ENABLe gaming dictionary
for customization or installation help contact: for customization or installation help contact:
Matt Johnson ( MCMLXXIX@MDJ.ATH.CX ) Matt Johnson ( MCMLXXIX@BBS.THEBROKENBUBBLE.COM )
*/ */
var gameroot; var gameroot;
...@@ -26,8 +26,6 @@ var interbbs=argv[0]; ...@@ -26,8 +26,6 @@ var interbbs=argv[0];
var stream=interbbs?new ServiceConnection("boggle"):false; var stream=interbbs?new ServiceConnection("boggle"):false;
var oldpass=console.ctrl_key_passthru; var oldpass=console.ctrl_key_passthru;
function boggle()
{
var wordvalues=[]; var wordvalues=[];
wordvalues[4]=1; wordvalues[4]=1;
wordvalues[5]=2; wordvalues[5]=2;
...@@ -49,6 +47,8 @@ function boggle() ...@@ -49,6 +47,8 @@ function boggle()
var playing_game=false; var playing_game=false;
var clearalert=false; var clearalert=false;
function boggle()
{
function init() function init()
{ {
if(interbbs) getFiles(); if(interbbs) getFiles();
...@@ -453,7 +453,7 @@ function boggle() ...@@ -453,7 +453,7 @@ function boggle()
{ {
var score=scores[s]; var score=scores[s];
var plays=players.getDayCount(score.name); var plays=players.getDayCount(score.name);
if(plays>0) if(score.points>0)
{ {
if(score.name==user.alias) console.attributes=LIGHTGREEN; if(score.name==user.alias) console.attributes=LIGHTGREEN;
else console.attributes=GREEN; else console.attributes=GREEN;
...@@ -507,6 +507,21 @@ function boggle() ...@@ -507,6 +507,21 @@ function boggle()
init(); init();
main(); main();
splashExit(); splashExit();
}
function getFiles()
{
console.putmsg("\1nPlease wait. Synchronizing game files with hub...\r\n");
stream.recvfile("*.bog");
//stream.recvfile("players.ini");
//stream.recvfile("month.ini");
}
function sendFiles()
{
//stream.sendfile("*.bog");
stream.sendfile("players.ini");
//stream.sendfile("month.ini");
}
//GAME OBJECTS //GAME OBJECTS
function Lobby(x,y) function Lobby(x,y)
...@@ -1073,19 +1088,4 @@ function boggle() ...@@ -1073,19 +1088,4 @@ function boggle()
this.board.draw(); this.board.draw();
} }
} }
}
function getFiles()
{
console.putmsg("\1nPlease wait. Synchronizing game files with hub...\r\n");
stream.recvfile("*.bog");
stream.recvfile("players.ini");
stream.recvfile("month.ini");
}
function sendFiles()
{
//stream.sendfile("*.bog");
stream.sendfile("players.ini");
//stream.sendfile("month.ini");
}
boggle(); boggle();
\ 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