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.

Author
Message
Xzeleous Software Imagineer
15
Years of Service
User Offline
Joined: 6th Feb 2009
Location:
Posted: 29th Nov 2009 06:05
Hi!
I bought DBC 3 short months ago and have made a few games (a text game, a hunting simulator based off the Monster Hunt tutorial) and now want to make something more complicated, namely an RTS.

I havent been able to find much about a tutorial for this, mostly people linking to game engines like Spring, which doesnt help me because Im here to learn DarkBasic. I found a tutorial or two for DBP, and one for DBC that unfortunately gives be a 404 error.

Any thoughts? What should I be looking into in order to do this?

Thanks in advance!

____________________________________________________________
Your Genius is only a pawn in my diabolical plot for world domination.
Dragon Knight
17
Years of Service
User Offline
Joined: 10th Jan 2007
Location: Newcastle
Posted: 29th Nov 2009 17:15
Here would be a perfect time for you to make a full project or tutorial yourself , plenty of people will give you advice if desired.

1st step, create a design doc
http://www.runawaystudios.com/articles/chris_taylor_gdd.asp <-- every time i do a project, i usually start from this template.

Make sure you've got every detail of what you want in it! that includes units, buildings, how much power they should have etc..

next step
compile a list of things to do with your game. What are the core components, then you can worry about making it look shiny and polished after you've finished the core parts to the game.

e.g. simple list:
HUD - with building menu
Terrain
be able to place building / check for places cannot be placed
do check if enough money
reduce money when baught
place building
update building in your array / database for that player
be able to click/highlight buildings
select building to do x task

building to make unit
texture unit with correct image
unit clickable/highlighted, so you can move them


The most boring part of this will be the database part, storing all the units information and building information in a nicely accessible database / (array) / struct


The Database information:
It's up to you what to decide to put in here. For example for ease of use, what i did for my first RTS was compiled a list of attributes for troopers / tanks etc.. it would have an array like this


Power[troopers][level] = 10;
Health[troopers][level] = 1000;
Speed[troopers][level] = 2.2;

Power[tank][level]=40;
Health[tank][level]=2000;
... and so on

The troopers/tank = an enum previously set, the level is depending on what level you want to set your troop to have these stats, in my game they were able to go up to level 5.

I'd love to create a full tutorial right now but I've got a compiler to write and I must get back to work. If you require any help you can always post what part you're stuck in, but just give it a try . If you don't believe you're experienced enough yet i suggest building a tower defense game with the use of stats for each building etc.. that will give you the necessary experience without the project being too big. Estimated time for tower defense (1 month)

Xzeleous Software Imagineer
15
Years of Service
User Offline
Joined: 6th Feb 2009
Location:
Posted: 29th Nov 2009 18:01
Thanks ! That was an amazing help, Ill get on that right away!

Ill probably do the tower defense clone first, as there seems to be some readily available help for that if I get stuck.

Thanks also for the link to the design document.

____________________________________________________________
Your Genius is only a pawn in my diabolical plot for world domination.
Ashingda 27
16
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 30th Nov 2009 00:07
Wow that link sure is awsome, very useful stuff!
Yodaman Jer
User Banned
Posted: 30th Nov 2009 00:18
That link is very good! I always layout my design docs in the most inefficient way. But now this will help me out in the long run!

Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 30th Nov 2009 01:01
Quote: "Power[troopers][level] = 10;
Health[troopers][level] = 1000;
Speed[troopers][level] = 2.2;"


I think you have been dabbling in c++ too much

that is a great link though!

New Site! Check it out \/
Dragon Knight
17
Years of Service
User Offline
Joined: 10th Jan 2007
Location: Newcastle
Posted: 30th Nov 2009 04:51
yay, I feel appreciated

Caleb, heh busted

Xzeleous, try and beat my tower defence game

I'm currently one month into development, http://www.youtube.com/watch?v=QNja2cstKXM

I've also uploaded the design doc i'm currently using / updating for my tower defense. It might help you have some ideas, and remember place holders are great, get the core of the game done, then worry about graphics.

Side tip (Make your menu interactive )

Attachments

Login to view attachments
Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 30th Nov 2009 06:48
Quote: "Caleb, heh busted"


It's ok. it's allowed because it's c++ lol

New Site! Check it out \/
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 30th Nov 2009 16:11
My tutorial is hardly complete and in desperate need of a rewrite (something I've been thinking about doing recently), but it might give you some direction.
http://dbchallenge.com/?page=tutorials

I have no idea how old or out of date the DBC version is, but should have something useful I hope.


> SELECT * FROM users WHERE clue > 0
> 0 rows returned

Login to post a reply

Server time is: 2024-04-26 12:04:22
Your offset time is: 2024-04-26 12:04:22