From 823498e94f623382bca6a70eab301eb0f71fed82 Mon Sep 17 00:00:00 2001 From: mcmlxxix <> Date: Thu, 21 Aug 2008 21:57:05 +0000 Subject: [PATCH] A javascript tank battle game inspired by Atari "Combat!" --- xtrn/tankbattle/logging.js | 13 +++++++++++++ xtrn/tankbattle/map_2.map | 1 + 2 files changed, 14 insertions(+) create mode 100644 xtrn/tankbattle/logging.js create mode 100644 xtrn/tankbattle/map_2.map diff --git a/xtrn/tankbattle/logging.js b/xtrn/tankbattle/logging.js new file mode 100644 index 0000000000..3993dacd6c --- /dev/null +++ b/xtrn/tankbattle/logging.js @@ -0,0 +1,13 @@ +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 diff --git a/xtrn/tankbattle/map_2.map b/xtrn/tankbattle/map_2.map new file mode 100644 index 0000000000..e683923590 --- /dev/null +++ b/xtrn/tankbattle/map_2.map @@ -0,0 +1 @@ + ��������������������������������������������������������������������������������� � � � �� � � � �� � � � �� � � � �� � �� � �� � �� � � � � �� � � � � �� � � � � �� ������� ������� ������� ������� �� � � � � �� � � � � �� � � � � �� � �� � �� � �� � � � �� � � � �� � � � �� � � � ��������������������������������������������������������������������������������� \ No newline at end of file -- GitLab