Skip to content
Snippets Groups Projects
Commit 413b1dc2 authored by deuce's avatar deuce
Browse files

Add a HUD I drew for a Pascal port of TradeWars...

parent 44b782c4
No related branches found
No related tags found
No related merge requests found
[?7h      
[?7hɹForeward Viewͻ͹TradeWars2/FreeBSD Main Menuͻ .  .  .  .  .  .  AttackPort at OutpostComputer . . ..  Land on Planet Info on YouTeam  . .   Warp to Sector Z Online Game Docs Quit the Game .  . .  ReDisplay Sector ? Redisplay Screen # Warp to Sector   .  ͼͼ
ɹForeward Viewͻ͹TradeWars2/JavaScript Main Menuͻ
 . .. 
 .  . .  AttackPort at OutpostComputer
 . ... Land on PlanetInfo on YouTeam
. .   Move to SectorZ Online Game Docs Quit the Game
 .  ..  ReDisplay Sector Take/Leave Fighters Gamble
 . 
ͼͼ
[?7h 
[?7h....
[?7hSector:
\ No newline at end of file
......@@ -159,7 +159,39 @@ function DisplaySector(secnum)
var sector=sectors.Get(secnum);
var i;
var count=0;
var otherships=new Array();
for(i=1;i<players.length;i++) {
var otherloc=playerLocation.Get(i);
if(otherloc.Sector==secnum) {
var otherplayer=players.Get(i);
if(otherplayer.UserNumber > 0 && otherplayer.Sector==secnum) {
if(otherplayer.Record==player.Record)
continue;
if(otherplayer.KilledBy!=0)
continue;
otherships.push(otherplayer);
}
}
}
if(user.settings&USER_ANSI) {
console.printfile(fname("main.ans"));
if(sector.Port > 0)
console.printfile(fname("port.ans"));
if(sector.Planet > 0)
console.printfile(fname("planet.ans"));
if(sector.Fighters > 0 && sector.FighterOwner != 0)
console.printfile(fname("fighters.ans"));
if(otherships.length > 0)
console.printfile(fname("ship.ans"));
console.printfile(fname("sector.ans"));
console.attributes="HM";
console.writeln(secnum);
}
console.crlf();
console.attributes="HY";
console.writeln("Sector "+secnum);
......@@ -180,34 +212,21 @@ function DisplaySector(secnum)
console.attributes="HC";
console.writeln("Other Ships");
console.attributes="C";
for(i=1;i<players.length;i++) {
var otherloc=playerLocation.Get(i);
if(otherloc.Sector==secnum) {
var otherplayer=players.Get(i);
if(otherplayer.UserNumber > 0 && otherplayer.Sector==secnum) {
if(otherplayer.Record==player.Record)
continue;
if(otherplayer.KilledBy!=0)
continue;
count++;
console.crlf();
console.write(" "+otherplayer.Alias);
if(otherplayer.TeamNumber>0)
console.write(" Team ["+otherplayer.TeamNumber+"]");
console.write(" with "+otherplayer.Fighters+" fighters");
if(otherplayer.Landed)
console.write(" (on planet)");
else if(otherplayer.Ported)
console.write(" (docked)");
else if(otherplayer.Online)
console.write(" (online)");
}
}
for(i in otherships) {
var otherplayer=otherships[i];
console.crlf();
console.write(" "+otherplayer.Alias);
if(otherplayer.TeamNumber>0)
console.write(" Team ["+otherplayer.TeamNumber+"]");
console.write(" with "+otherplayer.Fighters+" fighters");
if(otherplayer.Landed)
console.write(" (on planet)");
else if(otherplayer.Ported)
console.write(" (docked)");
else if(otherplayer.Online)
console.write(" (online)");
}
if(count==0)
if(otherships.length==0)
console.write(" None");
console.crlf();
console.attributes="HG";
......
[?7h
~Ϳ

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment