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 / Darkanoid code error

Author
Message
reuben360
15
Years of Service
User Offline
Joined: 1st Oct 2009
Location: USA (IN)
Posted: 2nd Oct 2009 07:29
I am coding a basic Darkaniod and getting a problem. The compilation failed because of an error in my Draw Blocks() function (line 79). If any one can take a look and help me thru would be great. The source code is attached. I am new at this and want to learn as much as I can.

Attachments

Login to view attachments
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 2nd Oct 2009 16:14
That is only the project file. You need to attach the source (.dba extension). Or, if it isn't hilariously long, just put it in a code box.

reuben360
15
Years of Service
User Offline
Joined: 1st Oct 2009
Location: USA (IN)
Posted: 2nd Oct 2009 18:16
Thanks for correcting me for having the wrong file. How can I get the source (.dba extension)?

(Because we blow, lol hilarious!)
reuben360
15
Years of Service
User Offline
Joined: 1st Oct 2009
Location: USA (IN)
Posted: 3rd Oct 2009 08:35
Here is a notepad with the source code copyed and pasted

Attachments

Login to view attachments
jaykav99
15
Years of Service
User Offline
Joined: 30th Jul 2009
Location:
Posted: 7th Oct 2009 16:19
Not sure where you are getting the project info, but i have the entire lesson on cd from my dark basic 2nd edition book. Let me try to attach it to the message, im still new so dont know if it will let me.

Attachments

Login to view attachments
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 24th Oct 2009 07:43
Hi, I had a look at your souce code and noticed that you forgot to call your run_game() function. Try calling this function after your init_game() function.

For example,
init_game()
run_game()
end

A clever person solves a problem, a wise person avoids it - Albert Einstein
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 24th Oct 2009 08:37 Edited at: 24th Oct 2009 14:35
Edit - sorry, typed the same thing twice. Lol

A clever person solves a problem, a wise person avoids it - Albert Einstein

Login to post a reply

Server time is: 2024-11-25 02:12:09
Your offset time is: 2024-11-25 02:12:09