Oop... Here's a 2D version...
It will look distorted this way, but that's because I'm
using Print and Write so it won't be spread out or whatever..
It will look distorted this way, but that's because I'm
using Print and Write so it won't be spread out or whatever..
;controls: mouse look + up/down/left/right Graphics3D 640,480,32,2 AppTitle "A Auto-Dungeon Generator","Exit? NOOOO!!!!!!" SeedRnd MilliSecs() Dim level$(20,20) ;our level ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;go from left to right y=Rand(5,14) level$(x,y)="O" For x=1 To 19 level$(x,y)="O" y=y+Rand(-1,1) If y<0 y=0 If y>20 y=20 level$(x,y)="O" Next y=Rand(5,14) x=0 level$(x,y)="O" For x=1 To 19 level$(x,y)="O" y=y+Rand(-1,1) If y<0 y=0 If y>20 y=20 level$(x,y)="O" Next ;go from top to bottom y=0 x=Rand(0,19) level$(x,y)="O" For y=1 To 19 level$(x,y)="O" x=x+Rand(-1,1) If x<0 x=0 If x>20 x=20 level$(x,y)="O" Next y=0 x=Rand(0,19) level$(x,y)="O" For y=1 To 19 level$(x,y)="O" x=x+Rand(-1,1) If x<0 x=0 If x>20 x=20 level$(x,y)="O" Next ;fill in remaining places For i=0 To 19 For p=0 To 19 If level$(i,p)<>"O" level$(i,p)="X" Next Next For i=0 To 19 For p=0 To 19 If level$(i,p)="O" Color 0,255,0:Else:Color 255,0,0 Write level$(i,p) Next Print Next