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.

Newcomers DBPro Corner / My first little text-program

Author
Message
Hell Dragon
19
Years of Service
User Offline
Joined: 24th Jan 2005
Location: UK
Posted: 7th Oct 2005 20:04 Edited at: 8th Oct 2005 00:22
Hi, This is my first program made with DARKbasic pro (just bought it 2 hours ago)

It is good?

Dark Basic Pro Rulz!

Attachments

Login to view attachments
Fox Dark Master
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location: Portugal
Posted: 7th Oct 2005 22:21
good?, no LOL
you could have done something bether but it's the first time you do a program so it's good enought. In the future, add something like this:

I don't know if have some bugs cause iI didn't have compile but like that you would get a munch bether program


True Phantasy
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 7th Oct 2005 22:21
not bad for a first (especially since you've only had it for two hours!)

"We make the worst games in the universe."

Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 7th Oct 2005 22:52
I'd say great for two hours!

Lemme test you on this though:

Make a Quiz! And at the end of the quiz, make it show the real answers and what you got wrong!

Seems hard, but I'm pretty sure you can do it

You have as long as you want!
db programmer 12
19
Years of Service
User Offline
Joined: 7th Sep 2005
Location:
Posted: 7th Oct 2005 22:59
i did the same thing when I started out. Name asker and stuff.

DarkBASIC Classic All The Way
2D Rocks!
Hell Dragon
19
Years of Service
User Offline
Joined: 24th Jan 2005
Location: UK
Posted: 7th Oct 2005 23:54 Edited at: 7th Oct 2005 23:54
# is better than $ for "years old"

EDIT:ok i'll make a quizz!

Website under construction
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 8th Oct 2005 00:08
Fox go easy on the guy crap thats pretty damn good for a start without getting any help from the tutorials or the help files.

Your signature has been erased by a mod because it's larger than 600x120...
Hell Dragon
19
Years of Service
User Offline
Joined: 24th Jan 2005
Location: UK
Posted: 8th Oct 2005 00:12 Edited at: 8th Oct 2005 01:06



EDIT:little test with the if, and now I need a "wrong" fonction
EDIT 2: I'll include sounds !

Dark Basic Pro Rulz!

Attachments

Login to view attachments
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 8th Oct 2005 00:43
OK, so now you are getting into things, take it a step further by checking out here:

http://www.matedit.com/db.htm

TDK_Man

Hell Dragon
19
Years of Service
User Offline
Joined: 24th Jan 2005
Location: UK
Posted: 8th Oct 2005 01:30 Edited at: 8th Oct 2005 01:36
PRINT "Question 5:"
if num5#=5 then PRINT "RIGHT"
if num5#<4 then PRINT "WRONG"
if num5#>6 then PRINT "WRONG"



huhuh little prob with question 1

Dark Basic Pro Rulz!

Attachments

Login to view attachments
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 8th Oct 2005 01:47 Edited at: 8th Oct 2005 01:50
If your only going to work with whole numbers you don't need to make the variables real. Also you can use "else" to program the opposite result of any if statement.



Edit: Or if you like it on one line:
Hell Dragon
19
Years of Service
User Offline
Joined: 24th Jan 2005
Location: UK
Posted: 8th Oct 2005 02:00 Edited at: 8th Oct 2005 02:56

Nice!
Edit:better font

You like my quizz?

Dark Basic Pro Rulz!

Attachments

Login to view attachments
Fox Dark Master
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location: Portugal
Posted: 8th Oct 2005 02:13
You know, there's 4 types of data:

Strings : Strings are array of characters but you don't need to worry, darkBASIC take care of that automaticly. You use by write "As string" or with the "$"
Ex: "Name", "Alex", "16"

Integer: you can use by declare "As integer"
Ex: 19, -2124

Float: Real numbers
Ex: 1,415; -10,4

Boolean: This kind of values can only be True or false. Normally you can use the 0 (False) and 1 (true)
Ex: If Gameover = False then ....

And you have a spetial data type, the arrrays but I really can't explain in english lol, In portuguese I can but in english I belive I could not make you understand that lol


True Phantasy
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 8th Oct 2005 04:03
Quote: "Float: Real numbers
Ex: 1,415; -10,4"


Should read:

Float: Real numbers
Ex: 1.415 and -10.4

Arrays are also covered in my tutorials, along with procedures, functions and program layout - something you should learn now, before you go any further and your code gets any messier!

You are doing some strange things in your code, but that is understandable if you are new to DB. Reading tutorials and looking at other peoples programs should get you on the right track, but do it sooner rather than later...

TDK_Man

Hell Dragon
19
Years of Service
User Offline
Joined: 24th Jan 2005
Location: UK
Posted: 8th Oct 2005 04:25 Edited at: 8th Oct 2005 04:46
omg lol, my first 3D thing


without the rotate object the cube can only go up,down,right and left like 2D games

Dark Basic Pro Rulz!
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 8th Oct 2005 04:46
What on earth is going on here - the Hell Dragon show??

TDK_Man

devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 8th Oct 2005 04:57
16 posts on first day!? wait... 17 now! Jeez the forums are gonna crash when he makes his first fps!

3 programs in the first day u got me beat man gj

verydevastating.com
Deep Thought 42
19
Years of Service
User Offline
Joined: 31st Jul 2005
Location: New Jersey, USA
Posted: 8th Oct 2005 04:58 Edited at: 8th Oct 2005 04:59
Noobs can post in the source box now! Now we don't have to tell them every time that their code doesn't show.
<edit> sorry for being a little off topic

"There are no stupid questions, just a lot of inquisitive idiots."
Hell Dragon
19
Years of Service
User Offline
Joined: 24th Jan 2005
Location: UK
Posted: 8th Oct 2005 05:02
Joined: Mon Jan 24th 2005

Dark Basic Pro Rulz!
Deep Thought 42
19
Years of Service
User Offline
Joined: 31st Jul 2005
Location: New Jersey, USA
Posted: 8th Oct 2005 05:12
sorry can't read

"There are no stupid questions, just a lot of inquisitive idiots."
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 8th Oct 2005 05:57
Quote: "Noobs can post in the source box now! Now we don't have to tell them every time that their code doesn't show."


Thank God!
Deep Thought 42
19
Years of Service
User Offline
Joined: 31st Jul 2005
Location: New Jersey, USA
Posted: 8th Oct 2005 06:53 Edited at: 8th Oct 2005 06:53
@Grog Gruelslayer
actually i'm not so sure anymore
<edit>it would be nice if that was true. . .

"There are no stupid questions, just a lot of inquisitive idiots."
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 8th Oct 2005 20:27
Well we won't have to wait very long before a newbie posts code in the source box.
Deep Thought 42
19
Years of Service
User Offline
Joined: 31st Jul 2005
Location: New Jersey, USA
Posted: 9th Oct 2005 05:39 Edited at: 9th Oct 2005 05:42
Maybe I should post a thread saying "Attention noobs! How to post code"
<edit> I made something similarhttp://forum.thegamecreators.com/?m=forum_view&t=60996&b=8

"There are no stupid questions, just a lot of inquisitive idiots."
devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 9th Oct 2005 19:04
a code-posting tutorial wouldn't be a bad idea

verydevastating.com

Login to post a reply

Server time is: 2024-11-27 16:41:32
Your offset time is: 2024-11-27 16:41:32