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 test program.

Author
Message
Not_Maindric
17
Years of Service
User Offline
Joined: 10th Jul 2007
Location: Omaha, NE
Posted: 28th Sep 2007 02:43 Edited at: 28th Sep 2007 03:10
Ok, I am making a basic program, for tests, to make myself better. I was just wondering if this is a decent code for a basic title screen. Comments are appreaciated. Also, this is my first real time trying to make something out of DBC, so it is nothing flashy.



**Edit**
If you want me to, I can make it a zip file, so you can get the media easier to test it or whatever.

demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 28th Sep 2007 12:41
yeah put the media up 'cos we can't do much without it...

http://jamesmason01.googlepages.com/index.htm
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 28th Sep 2007 20:26
You are checking for the same collisions twice, this is wasted code. This is how I would do it:


There's still a much more economic way to do it but that's all I have for now.
Hope that gave you some new tricks

In programming, nothing exists
Not_Maindric
17
Years of Service
User Offline
Joined: 10th Jul 2007
Location: Omaha, NE
Posted: 29th Sep 2007 19:27 Edited at: 29th Sep 2007 19:28
Ok, here is my zip file. It includes the source coding and all, and the bottom part os for when I am going to add stuff for the new game, right now, it is not enough to do anything with so I am working on it.

Also, I edited the code to an "If...Else...Endif" type, instead of checking the same "If" twice. This should make it a little bit, better... Also, if I am indinting incorrectly, please let me know. I am new to programming so I am not to formiliar with Indenting accuratly.


Attachments

Login to view attachments
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 29th Sep 2007 20:47 Edited at: 29th Sep 2007 20:49
it isn't working for me... some sort of image problem... sorry mate...


I would look more but my DB keeps doing some weird flashing thing even though I put cls at the top which usually solves it and it's starting to hurt my brain...

http://jamesmason01.googlepages.com/index.htm
Not_Maindric
17
Years of Service
User Offline
Joined: 10th Jul 2007
Location: Omaha, NE
Posted: 29th Sep 2007 21:08 Edited at: 29th Sep 2007 21:10
That is becouse when I organised it, it is thinking it is in a diff file, all you gotta do is save it and it will work, or let me do it again real quick...


Here you go. It should work now.

**Edit**

Nope, doesn't... Try saving the files, it MIGHT work then...

Attachments

Login to view attachments
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 29th Sep 2007 21:41
i saved the folder to my computer... so I don't think it's that...

someone else can help... I'm just causing more problems than I'm solving

in fact, if you do Build Final then it will just be a .exe which should work if it works on your computer (I think...)

http://jamesmason01.googlepages.com/index.htm
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 30th Sep 2007 17:31
yep a final exe includes all media and subfolders

In programming, nothing exists

Login to post a reply

Server time is: 2025-05-31 20:37:29
Your offset time is: 2025-05-31 20:37:29