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

A javascript tank battle game inspired by Atari "Combat!"

parent d4057b42
No related branches found
No related tags found
No related merge requests found
function Logger(root, name)
{
this.rootDirectory=root;
this.fileName=name;
this.logList=directory(this.rootDirectory + this.fileName + "*.log");
this.logFile=new File(this.rootDirectory + this.fileName + this.logList.length + ".log");
this.logFile.open('w+',false);
this.Log=function(text)
{
this.logFile.writeln(text);
}
this.Log("****" + system.datestr() +" - "+ system.timestr());
}
\ No newline at end of file
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
\ 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