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 / Getting started?

Author
Message
PsychoMuffin
11
Years of Service
User Offline
Joined: 21st Oct 2013
Location: United States
Posted: 23rd Oct 2013 04:32
I need help getting started with creating games on DB Pro, I don't want to do any game tutorials because I'm afraid that I'll only learn how to copy down other people's code, is there anywhere I code learn how to code for games by learning how each command works and how to implement it into the coding system?
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 23rd Oct 2013 22:07
Realize that if you really want to enjoy programming it will require time and effort to dig in and learn. If tutorials won't work for you, you might want to consider whether or not this is for you, as that is typically how many people learn the language. It's good that you don't want to copy/paste stuff to get a game going quickly, but the idea is that copying/pasting is not all you do; it is just the start. Looking at code from others is a great help if you take the time to see what they are doing and what they are accomplishing with it.

An alternative is to buy a book and learn from it. Here is one I used years ago and it was a big help to me. It might work for you:
http://www.thegamecreators.com/?m=view_product&id=2000&page=Hands

So many games to code.....so little time.
AncientGamer
14
Years of Service
User Offline
Joined: 10th Jan 2010
Location: United States
Posted: 24th Oct 2013 20:18
I also have used the Hands on DarkBASIC Pro books and really like them. They're a Good way to get you started. Sounds like it might be what you need and commands are described in detail with examples given. Good luck!
Derek Darkly
13
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 25th Oct 2013 18:47 Edited at: 27th Oct 2013 16:00
When I started I just looked through the help index and tried different experiments.

Some of the most basic commands are things like:

DIM ArrayName(number,etc,etc,etc,etc)
LOAD IMAGE/SAVE IMAGE
GET IMAGE/PASTE IMAGE
INKEY$/SCANCODE/KEYSTATE
PRINT/TEXT/CENTER TEXT

2D:
SPRITE
CREATE ANIMATED SPRITE
PLAY SPRITE
PASTE SPRITE
ROTATE SPRITE
LINE
BOX
DOT
POINT


3D:
MAKE OBJECT/MAKE OBJECT CUBE/MAKE OBJECT SPHERE/etc.
LOAD OBJECT/SAVE OBJECT
TEXTURE OBJECT
POSITION OBJECT
MOVE OBJECT
SCALE OBJECT
ROTATE OBJECT
POINT OBJECT
PLAY OBJECT
MOVE CAMERA/POSITION CAMERA/CONTROL CAMERA USING ARROWKEYS
AUTOMATIC CAMERA COLLISION
OBJECT HIT/INTERSECT OBJECT


Advanced Terrain:
C:\Program Files\The Game Creators\Dark Basic Professional\Editor\Keywords\keywordsAT.ini
MAKE OBJECT TERRAIN==
SET TERRAIN TEXTURE==
SET TERRAIN SCALE==
SET TERRAIN SPLIT==
SET TERRAIN TILING==
SET TERRAIN HEIGHTMAP==
SET TERRAIN LIGHT==
GET TERRAIN GROUND HEIGHT==
LOAD TERRAIN==
SAVE TERRAIN==
GET TERRAIN X SIZE==
GET TERRAIN Z SIZE==
DESTROY TERRAIN==
BUILD TERRAIN==
UPDATE TERRAIN==


D.D.

Login to post a reply

Server time is: 2024-11-23 15:30:55
Your offset time is: 2024-11-23 15:30:55