Qbasicnews.com

QBasic => QB Projects => Topic started by: whitetiger0990 on April 05, 2004, 11:07:43 PM



Title: Ascii Block Game
Post by: whitetiger0990 on April 05, 2004, 11:07:43 PM
Hiya!
I made an ascii version of Diroga's block game
it's here
http://mywebpages.comcast.net/whitetiger0990/qbasic/block.zip

if you find a glitch or have a suggestion post it

OH! and in the program there is a variable called path$... i originally made the game on a floppy ( =P ) so it's set to that. you are going to have to change it. XP


Title: Ascii Block Game
Post by: Pyrodap on April 06, 2004, 02:43:58 AM
Yeah... I had to rem out path$

eh it works :P

recomendation?

first, use WIDTH 80, 50
It makes the blocks smaller, but it makes them square. THEN, rather then put one block, do 4 or more

instead of
Code:
X

try
Code:
XX
XX


just a thought


Title: Ascii Block Game
Post by: TheBigBasicQ on April 06, 2004, 04:14:52 AM
Very nice game indeed. But it is difficult to get the character to face whichever direction you want.


Title: Ascii Block Game
Post by: whitetiger0990 on April 06, 2004, 08:28:09 AM
Quote from: "Pyrodap"
first, use WIDTH 80, 50
It makes the blocks smaller, but it makes them square. THEN, rather then put one block, do 4 or more

instead of
Code:
X

try
Code:
XX
XX


just a thought

hmm I'll try that and see how it works

Quote from: "TheBigBasicQ"
But it is difficult to get the character to face whichever direction you want.

 I'm thinking about having the first press in the opposite direction only turn you. then the next moves you.

edit ((Whoops))


Title: Ascii Block Game
Post by: TheBigBasicQ on April 06, 2004, 02:13:46 PM
That would be appropriate.

P.S.: You have quoted your response in my quote block =P.


Title: Hmmh...
Post by: Pc72 on April 30, 2004, 08:03:44 AM
Instead of saying WIDTH 80,50 and use

XX
XX

you can say WIDTH 40,25 and use

X

Got it...?


Title: Ascii Block Game
Post by: Pyrodap on May 01, 2004, 05:31:44 AM
you missed my point completely.

40,25's text size is rectangular.

80,50's text size is square.

I think.

am i right?

i'll go check.


Title: Ascii Block Game
Post by: whitetiger0990 on May 01, 2004, 01:13:50 PM
i made them 80,50 (or something like that) and made the maps 30by20 (or something like that) I keep forgeting to upload the current version I'll do that later

edit:
maybe i should take ver9 and rename it ver8.... in ver8 you can't beat level 7.


Title: Ascii Block Game
Post by: whitetiger0990 on May 01, 2004, 03:02:29 PM
sry for the double post but i have a problem.

after I beat a few levels I get a

"Out of stack space" when calling a sub. If I use CLEAR is kills my variables....


Title: Ascii Block Game
Post by: na_th_an on May 01, 2004, 08:05:58 PM
You stack may be full for some recursive calls. Check that.

It can also be a colateral effect of you running out of memory. If you are DIMming any arrays in your SUBs and your program is using '$DYNAMIC, you have to ERASE those variables _before_ you exit the SUBs. Otherwise new memory will be allocated each time you call the SUB and never freed.


Title: Ascii Block Game
Post by: whitetiger0990 on May 01, 2004, 08:13:54 PM
no i dont think it is dimming the arrays every call.

but it IS going to the same subs over and over and over and over. How can I fix this?