The best way for beginners to learn a programming language is through simple tutorials that get them to use and understand basic commands by making simple . TDK_Man’s Dark Basic Programming for Beginners Part 1 – Variables This is the first of an intended series of tutorials aimed at teaching the newcomer to. The following tutorial is assuming that you have just purchased Dark Basic, and will go over everything needed to start you off. This tutorial is.

Author: Nimuro Tucage
Country: Belarus
Language: English (Spanish)
Genre: Career
Published (Last): 26 September 2017
Pages: 424
PDF File Size: 1.95 Mb
ePub File Size: 6.73 Mb
ISBN: 767-5-80148-163-8
Downloads: 13981
Price: Free* [*Free Regsitration Required]
Uploader: Zolor

Remember the sync rate 60 command we used earlier? If you think you got it, then great job! Now, to increase and decrease the health.

DarkBASIC Pro Tutorials

We get to learn a new command. So here is the code. The r stands for red, b stands for blue, and g stands for green. Go directly to the list of top sellers. I suppose,it would be possible to require a float for such a variables as “health” in the scenerio of a duration effect such as “potions”,”spells” etc and stack effects.

After the ‘endif’ in turning right, add this command: Making great video games while you learn how to program If you want to learn how to make video games and you think that you want to learn how to program then there is an excellent opportunity for you to do both.

So lets use both ways.

Make Video Games If you are not sure you want to learn how to program. To name a real number variable, you must add a hash character as the last character of the variable name. Let him continue or adjust his tutorial. So right now, the mouse hasn’t been clicked at all, there for pressed is once again 0. I bet your willing to make your game making dreams come true, aren’t you? You may want to explain how to code a time function.


So what do you want to do when you click the button?

Dark Basic Guides

But this is only a ground for now. The up arrow would be ‘upkey ‘, the left arrow would be ‘leftkey ‘, down arrow would be ‘downkey ‘, tutoral right arrow would be ‘rightkey ‘. This is very handy, as you can set parameters for when it should stop looping! This is our first program: For example, health would be not be stated as ‘ health ‘ in the code, but as ‘ health ‘.

As you are thinking, changing the r g and b inside the parenthesis change the red green and blue value of the text color. Your camera code should look like this: Lets start with arrow keys first. Now, to tell if one of these are prp, you need an IF darkkbasic. This one is also a little more complicated then the Do-Loop, but you will manage.

The Code shall be setup like this: Compile it, and it should look like: There is also a way to make it an amount of time to wait for. I have a youtube channel with over Project Videos! Your New Game code should look like this: They are called Mousex and simply Mousey.

Types of Projects

Now I bet your thinking that health can’t always be attaren’t you. Use the tutorrial ‘ Ink rgb r,g,brgb r,g,b ‘. Books on Programming Amazon.


The next two are the actual speeds we find out by doing a little math. For a variable, all float variables should end with a ‘ ‘. Well, do signifies the beginning of a loop.

So how about we just make it 3rd Person? Making great video games while you learn how to program. But Did you ever wonder, how to make a button with this text? Dark Basic is perfect for you. Now, to make it actually exit is simple. And its vice-versa for the ‘rightkey ‘.

Mess around with everything I’ve taught you so far, its enough to even make a small text game.

The main point is that you only use real variables when you need them as integer variables are much faster in calculations. It should look like this: Desert conflict fps wip board http: We are gonna need the parameters of the mouse.

Dec a ,2 But as you see that is only for the left turning. It goes the same way with decreasing, you would just change the plus sign to a minus sign darkbasicc – wala! Uttorial the start of we decided to open source DarkBasic Professional and give it to the community to evolve and control. Do you think you could put the tut in a single file or multiple files tuorial diffrent tutorials and submit them to my site?

I think that explains it, does it not? I think it confuses them, so just let it be until later in the tutorials, k?