MPL program note Gryphon & Dream master Doubleup, Greed, and Master Mind all need ANSI but no check/exit is there. I made an ASCII theme and found it to be a problem, so just after the start of Main I added:
Begin
If Graphics = 0 Then Begin
ClrScr;
WriteLn ('Sorry, this game requires ANSI graphics.|CR|PA');
Halt;
End;
So they now check if ANSI and if not write the error message and exit. This is what g00r00 does in Blackjack for that reason, I just added it
to the other games that required it. You might consider adding that check to things requiring ANSI in future since it's easy to do and handles that possible issue. Of course this goes for any of us making MPL programs
that might use ANSI.
On 12/15/16, bcw142 said the following...
MPL program note Gryphon & Dream master Doubleup, Greed, and Master M all need ANSI but no check/exit is there. I made an ASCII theme and f it to be a problem.
Thanks for that. The assumption I generally use is that BBS callers all pretty much use ANSI all the time. It seemed to me then that an ANSI check was not needed.
Gone are the days of low rez graphics cards and monitors.
MPL program note Gryphon & Dream master Doubleup, Greed, and Master Mind all need ANSI but no check/exit is there. I made an ASCII theme and found it to be a problem, so just after the start of Main I added:
Begin
If Graphics = 0 Then Begin
ClrScr;
WriteLn ('Sorry, this game requires ANSI graphics.|CR|PA');
Halt;
End;
So they now check if ANSI and if not write the error message and exit. This is what g00r00 does in Blackjack for that reason, I just added it
to the other games that required it. You might consider adding that check to things requiring ANSI in future since it's easy to do and handles that possible issue. Of course this goes for any of us making MPL programs
that might use ANSI.
That was what I thought originally, but there are reasons some people use ASCII or the like. Anyway it's easy if you remember g00r00 handled it
with Blackjack so you have a good example of how to do it. I did it
well since almost all users are on using ansi i dont see a need for it.
.úùDream Masterùú.
øùúùø øùúùø
DoRE!ACiDiC!Demonic
[dreamland.darktech.org]
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 31 |
Nodes: | 8 (0 / 8) |
Uptime: | 132:19:12 |
Calls: | 2,073 |
Files: | 11,136 |
Messages: | 947,548 |