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.

DarkBASIC Discussion / Strategy sources/tutorials?

Author
Message
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 3rd Jan 2004 18:40
Does anyone know anywhere that I can get free downloadable sources for Age of Empires type games or tutorials for making strategies because I want to learn to make them but haven't a clue where to start.

Am I the only one here who's really confused?
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 3rd Jan 2004 18:45
Hmm, is that an RTS? Search the web for RTS snippets. See if you can find one, in any langauge, and try and understand it that way.

When I hit a snag in an RPG agrothim, I search the web for whatever I hit. I can usually find an equation for something, then get the jist of what the code is doing and be like "So THATS how it determines that value"

RPGamer


We need help! Email us! [email protected]
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 3rd Jan 2004 21:56
age of empires (from what i understand of definitions of games) is not a Real time stratigy game...its like Warcraft 2 and such...but a wee bit differnt...so if you define WAR2 as a RTS then AoE is an RTS also

Sjakie
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: Netherlands - Delft
Posted: 4th Jan 2004 11:38
I'm building a RTS game here is how to do it

- build a test landscape (matrix is best i think)
- place a few test units (just cubes or something)
- program how to click on 3d units with the 3d mouse (this is a tricky part... if you can't figure it out, go to the code snippets forum and enter RTS in the search bar and you'll find what you need )
- Program unit movement whet clicking on a unit and the on the matrix (i did that with arrays, 1 for the Xtarget,1 for the Ztarget, and 1 for movestatus (if unit moves or not) and if you click on the matrix the unit points at Xtarget and Ztarget and moves toward it, works awfully good )
- Program building buildings (this isnt too hard)
- Program unit collision with buildings(you shouldn't use the object collision(BLABLABLA) function, because that crunches your machines power to almost zero , instead you should use positions, here's a snippet:

this means within a range of 50 the object will collide with the building
- Build the rest you like... im not there yet

I hope this brings you further

Juzt a dude who likez progging
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 4th Jan 2004 23:04
I've also been doing one. And I've been searching a lot for any info on RTS games.

This is about networking in AoE. What they did to overcome lag/spikes, unequal computers, etc. A good read, but some stuff might be hard to understand.
http://www.dannywartnaby.co.uk/rgt/index.php?board=5;action=display;threadid=1566

A brief article on unit control. More theory than code.
http://www.flipcode.com/articles/article_manageunits.shtml

I haven't really found much more than that so far.
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 6th Jan 2004 18:53 Edited at: 7th Jan 2004 21:30
thanx all. That AoE networking document is complicated...
@Sjakie: I got some help on loading health and saving health for characters, which you may want to look at if you are building a RTS...
http://darkbasic.thegamecreators.com/?m=forum_view&t=23196&b=10

Am I the only one here who's really confused?
Sjakie
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: Netherlands - Delft
Posted: 8th Jan 2004 22:15
Thnx demonsbreath... i'll keep that in mind

I'm currently working out resources in my RTS so Demonsbreath if you're interested...

Juzt a dude who likez progging

Login to post a reply

Server time is: 2025-06-06 16:05:48
Your offset time is: 2025-06-06 16:05:48