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 / Newbie's Guide To Creating Games In DarkBASIC

Author
Message
Colonel Cool
19
Years of Service
User Offline
Joined: 3rd Aug 2005
Location: Somewhere
Posted: 11th Aug 2005 15:27
If you've searched the internet and found nothing. Can't get help anywhere well I did when I started until my dad bought a expensive 700+ book on DarkBASIC. So I decided to make this one to free!

Sections:

Section 1: Making Text Games
Section 2: BASIC 2D Games
Section 3: 2D Games and the Dark Tile Tool
Section 4: BASIC 3D Games
Section 5: Your Final Game

Through this 5 tutorials I hope to teach everybody some quailty tutorials. Please keep in mind that I am using DarkBASIC Classic
and it will take time to compelete this tutorials as I am working
on my own project.

Section 1: Making Text Games

Okay text is boring, but It's a darn good start. I'll take this slow
and teach you lots of stuff hopefully. At the end of each chapter
you'll get 3 tasks to complete 1 done is good, 2 done is great and
3 done is perfect. 0 done you have failed and I think you should try
harder.

~Commenting~
Okay commenting is like a blank space only it allows you to note and
keep tabs on your programming.

Rem My Game Name: Blasting Aliens To Putrid Chunks of Debris
Rem By: Some Guy

There is of course faster ways to everything just look below

` Add Some Code Here

I'll be using the ` for rem from here on out.

To start a group of comments use Remstart, and to end use Remend

remstart
Hello My Name Is Joe
remend

Type all of these code examples in and run it. That's right it's nothing the editor skips all comments.

!Quick Quiz!

1. What command is for commenting?
A) Comment B) Comm C) Rem

2. What can you use for a quick comment?
A) ` B) ; C)/

3. How do you start and end a group of comments?
A) Commenstart/Commentend B)Remstart/Remend

~Text Output~
Okay prinint text on screen is very important to some degree. Basically it all depends on what type of game you are making.

Here's How to Do It

Print "Hello World!"
Set Cursor 120,100
Print "Hello To You Too!"
text 320,200,"Hi Hi Hi!"

Please run this example.

You can also manuiplate text like so

set text opaque (Text With Background Or Something)
ink rgb(red,blue,green),desiredcolornum (Colors text and among other
things) red is 255,blue is 255,green is 255 in each section
set text size textsize (Desired Text Size)
set text font "font" (Desired Text Font)

This should be straight foward.

Your Tasks:

This Code As Something Wrong With It:
Can you fix it?

pinrt "Hello"world

And Can You Put Text With a Size of 13, at 320,200 Cordinates
With the string "AAAAAAAAAAAAAAAAAAAAA" And have it colored
red?

And finally have the text hello world on the screen anywhere.

~Variables - Strings,Integers,Reals~
We'll make a Text Guessing Game and Things Under Here
But That's For Later.

Peace Out,

Ogre Software

Ogre Software - RPGs and Tools Made In DBC
Release Date For Mystic I: November 2005
Cameron
19
Years of Service
User Offline
Joined: 7th Aug 2005
Location: In Your Closet...
Posted: 11th Aug 2005 22:12
Wow Thanks Help Sharpen My Memory
Good Job
Do Some More


My Website With Some Of My Games: www.freewebs.com/actiongamestudios

Login to post a reply

Server time is: 2024-09-24 01:21:50
Your offset time is: 2024-09-24 01:21:50