Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / ASCII Adventures

Author
Message
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 4th Aug 2007 17:35
Here's the beginnings of an ASCII platform game.



For some reason I had to put the gosub that declared the lvl() array before a function that used it, even though i call the gosub first!

Your signature has been erased by a mod because it was rubbish.
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 5th Aug 2007 07:30 Edited at: 5th Aug 2007 08:28
Quote: "For some reason I had to put the gosub that declared the lvl() array before a function that used it, even though i call the gosub first!"



I am probably wrong but i think that it's because when the program gets compiled it reads the array in the function and hasn't yet come across the portion of code in which you dimensioned the array or something similar to that.


Edit: I just tried out the program and its really cool
the script is also suprisingly small compared to the complexity of the program.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 5th Aug 2007 15:50
Thanks
I'm having problems with the gravity effect, if you step of the platform you jump up before falling??

Your signature has been erased by a mod because it was rubbish.
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 6th Aug 2007 19:46
I say it again, your knowledge of the basics is great.
Jumping seems a little bit strange though.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Aug 2007 21:18
@INH
Thanks again
Yeah the jumping is weird, I can't seem to get the gravity effect right

Your signature has been erased by a mod because it was rubbish.
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 6th Aug 2007 22:05
use playergrav# and in the main loop add the grav to the players y position unless it is touching the floor......
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Aug 2007 23:39
@DD
Quote: "add the grav to the players y position unless it is touching the floor"

Thanks, didn't quite use your idea but this part got me thinking and I added a FOR loop which checks for ground collision 15 times adding 1 every loop in the air
Very crap and I'll have to re-write the whole procedure but that at least half solves the problem



Your signature has been erased by a mod because it was rubbish.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Aug 2007 23:58
AAAHHH it's a mess, I'm leaving it alone and gonna re-write it when I have time

Your signature has been erased by a mod because it was rubbish.
tha_rami
19
Years of Service
User Offline
Joined: 25th Mar 2006
Location: Netherlands
Posted: 7th Aug 2007 23:36
I'm walking on water!

Amazing, with that amount of code.

Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 8th Aug 2007 00:24
Aaaah, I changed the @ to a cute little ascii spider.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 8th Aug 2007 00:27
@INH
show us then?
Is it an asterisk?
* < That ain't no spider!

Your signature has been erased by a mod because it was rubbish.
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 8th Aug 2007 00:48
Nahhh, tis this: /('')\
He does a dead as well: /(##)\
and this: /(¬¬)\
MUHAHAHA!

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Pixelator
17
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 15th Aug 2007 00:15
@ Inh
???????????????

The problem with the gaming community is people think that the resolution of a game defines how good it is. I am not afraid to make a game where the main character is 50x50.
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 15th Aug 2007 19:13
Hehehe.

(N-1)/n*100<n2/n-n/2+n/4*2+100

Login to post a reply

Server time is: 2025-05-30 13:49:53
Your offset time is: 2025-05-30 13:49:53