Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random Dungeon Generator in 4 lines anyone?
#11
what if they are 'ruins' of a dungeon, and some walls are broken down....lol - a large chaotic mass of walls

Oz~
Reply
#12
you are wrong about the line thing. You can have alot more the 255 or whatever ya said. Here is a link to a program made in qb 1.1 and is past the 255 and the 1000 mark and then goes back to 0 and continues on. you can use qb code and it will still work. Thats how I made a text adventure in 1 line, with 14 locations. The way ya do it is by puting the code under the code you want to make longer and then go to the start of the line and press backspace so that the second line joins to the end of the top line thus making the line longer.

www.geocities.com/sitenixon/LONG.BAS
Reply
#13
Yeah, but it is the compiler which doesn't take more than 256 chars. When you load that program in, say, PDS 7.1 and you hit on "Compile", the IDE splits the lines into 256 chars one using "_" and sends them to the compiler. Try compiling it from the command line: Call BC LONG.BAS /T/O/C:512 from the command line and see.

Code:
H:\>bc long.bas /t/o/c:512
Microsoft (R) QuickBASIC Compiler Version 4.50
(C) Copyright Microsoft Corporation 1982-1988.
All rights reserved.
Simultaneously published in the U.S. and Canada.
Object Filename [LONG.OBJ]:
Source Listing [NUL.LST]:
0030   0006    'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk
lmnopqrstuvwxyzabcdefghijklmnopqrstuabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqr
stuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrst
uvwxyzabcdefghijklmnopqrstuvw



                               ^ Line too long
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)