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 / My First Little Code. (Working my Way UP)

Author
Message
blaxkx
21
Years of Service
User Offline
Joined: 4th Apr 2004
Location:
Posted: 7th Apr 2004 22:41
I'm learning some DarkBASIC and then I'm going to work on a text game.

After reading a bit I typed out a code that might help me for a text game, it needs a lot more but its a start.

Twisted Demon
21
Years of Service
User Offline
Joined: 4th Apr 2004
Location:
Posted: 8th Apr 2004 01:46
thats a good start, keep up the good work!
blaxkx
21
Years of Service
User Offline
Joined: 4th Apr 2004
Location:
Posted: 8th Apr 2004 03:42
Thanks, i'll need to work on small projects to gain more exp. for 3D games.
Blanked
21
Years of Service
User Offline
Joined: 27th Mar 2004
Location: UK
Posted: 8th Apr 2004 04:38
I must save them!
lol

blaxkx gained 200 programming exp points!
blaxkx gains a lvl!
blaxkx learns "Text Adventure" Ability!
blaxkx
21
Years of Service
User Offline
Joined: 4th Apr 2004
Location:
Posted: 8th Apr 2004 06:03
lol.

Now time to read on loops and if commands.
blaxkx
21
Years of Service
User Offline
Joined: 4th Apr 2004
Location:
Posted: 8th Apr 2004 06:05
I just found something dumb I did, after I added some of the sleep commands I left the print commands in.

New Code:

Night Giant
21
Years of Service
User Offline
Joined: 26th Jul 2003
Location:
Posted: 8th Apr 2004 07:23
i have to say wow, a newbie who actually knows how to go about learning a language, lol. Good luck blaxkx.

oh, wow. insignificantpunks.cjb.net. we like orange treble clef notes, just for future reference.

no: website for progs yet.
blaxkx
21
Years of Service
User Offline
Joined: 4th Apr 2004
Location:
Posted: 8th Apr 2004 07:27
lol I'm not the learning type but when it comes to making games thats differnt.

Gota be happy I'm not the newbie type who asks for code handouts. If I did then I would become the evil n00b.
Monty87
21
Years of Service
User Offline
Joined: 8th Dec 2003
Location: not very deep in the west country, eng
Posted: 8th Apr 2004 22:17
Mmmuuharharhar! to be honest, what with you inlaid picture, you rather look like an
Quote: "evil n00b. "
already.

Errk. Im scared. Back off guys and gals, this mans just plain evil, EVIL, i tell you!

Monty
blaxkx
21
Years of Service
User Offline
Joined: 4th Apr 2004
Location:
Posted: 8th Apr 2004 23:27 Edited at: 8th Apr 2004 23:27
I'm no n00b.
Neofish
21
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 8th Apr 2004 23:32
y dunt u do this on your hello

print "Hello ";name$

that makes it flow

from what i can tell it looks good, i used to make text games

Hello, I'll do this later...
blaxkx
21
Years of Service
User Offline
Joined: 4th Apr 2004
Location:
Posted: 9th Apr 2004 05:15
Well I'm new so thats about all I can make.
blaxkx
21
Years of Service
User Offline
Joined: 4th Apr 2004
Location:
Posted: 9th Apr 2004 06:45
I just updated the code, check it out.

Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 9th Apr 2004 21:33 Edited at: 9th Apr 2004 21:36
you could also do something like

print name$;" you must select a class"
print "press 1 to be a mage"
print "press 2 to be a elf"
print "act foolishly and you will repent"
key$=""
repeat
key$=inkey$()
until key$<>""
class$="Toad"
if key$="1" then class$="Mage"
if key$="2" then class$="Elf"
if key$="1" or key$="2"
print "you have become the mighty ";class$;" ";name$
else
print "you are a lowly ";class$:" we warned you ";name$
endif

this allows the user to select an option without having to type in the exact description, they just press key one or two to become the mage or elf (plus a nasty surprise if they fool about )

Mentor.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, ATI radeon 9800 pro gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.
Neofish
21
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 10th Apr 2004 04:03
good, you're getting better, i want to know what ur going to do forthe game, is it going to be option led, very 1D free walk rpg or something else

by the way mentor is right, ever played 'Moria' it does that and games that have a quick interface are addictive

Hello, I'll do this later...
blaxkx
21
Years of Service
User Offline
Joined: 4th Apr 2004
Location:
Posted: 10th Apr 2004 15:03
Thanks for the tip. Sadly I got DarkBASIC Pro but ill still post my codes here since I own DBC and use it sometimes.

Login to post a reply

Server time is: 2025-05-23 06:16:30
Your offset time is: 2025-05-23 06:16:30