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.

Code Snippets / Advanced RTS Features

Author
Message
Syncaidius
19
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: United Kingdom
Posted: 13th Sep 2006 16:46 Edited at: 13th Sep 2006 21:32
I've been working on a few features for my RTS game (which I am not reveiling ) which I thought might be useful to a few other people too.

I've put them all into a project so you can see what they do.

The code Demonstrates how to fade the edges of an RTS map (simple) and shows how you can implement a camera system which can rotate and zoom, and stay within the borders of a map while doing so.

MEDIA IS ATTACHED WITH PROJECT!



I will be adding to this code as I progress with my game, so you will eventually be able to get hold of more RTS code. :p

I Would appreciate some feedback (good or bad) on this.

WORLD - A free World editor, capable of creating the most complex of worlds (including physics, skies, water, shaders, terrain editing and more). Best of all, it's FREE!

Attachments

Login to view attachments
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Sep 2006 19:25
Smooth camera, but I didn't see any fading edges.

"Using Unix is the computing equivalent of listening only to music by David Cassidy" - Rob Pike
Syncaidius
19
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: United Kingdom
Posted: 13th Sep 2006 20:35 Edited at: 13th Sep 2006 21:30
Does it not appear as it is in the attached shot, or is it that it just doesnt look to good?

If its the first reason then I dont know what could be wrong, becuase I tried it again and the shaded edges shown up ok.

If its the second reason (doesnt look good), then i'll try and improve it.

I've attached the screenshot of it running on my computer:



WORLD - A free World editor, capable of creating the most complex of worlds (including physics, skies, water, shaders, terrain editing and more). Best of all, it's FREE!

Attachments

Login to view attachments
Soroki
18
Years of Service
User Offline
Joined: 26th Jan 2006
Location: United States
Posted: 13th Sep 2006 21:06
Nice screenie, very good. I will have to try the code out.

Downfall:Arena by A Squared Software is currently in development. Features full online or AI multiplayer maps, with 35 online maps and 15 AI maps. Demo release date will be somtime in October.
Syncaidius
19
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: United Kingdom
Posted: 13th Sep 2006 21:09
Quote: "Nice screenie, very good. I will have to try the code out.
"


Thanks Soroki.

I forgot to mention the controls for those who dont know, You have to hold the middle mouse button down to rotate the camera, and scroll the mouse wheel to zoom in and out.

WORLD - A free World editor, capable of creating the most complex of worlds (including physics, skies, water, shaders, terrain editing and more). Best of all, it's FREE!
Soroki
18
Years of Service
User Offline
Joined: 26th Jan 2006
Location: United States
Posted: 13th Sep 2006 21:13
Okay, TY.

Downfall:Arena by A Squared Software is currently in development. Features full online or AI multiplayer maps, with 35 online maps and 15 AI maps. Demo release date will be somtime in October.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 14th Sep 2006 01:33
Might have something to do with my monitor being very dark. (it's like 7 years old) It appears to match your screenshot, but I don't really notice any faded edges.

"Using Unix is the computing equivalent of listening only to music by David Cassidy" - Rob Pike
Syncaidius
19
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: United Kingdom
Posted: 14th Sep 2006 13:42
Hmm.. I'll try and improve on it.

I'll post the results when I get round to updating the code, which will probably be sometime today.

WORLD - A free World editor, capable of creating the most complex of worlds (including physics, skies, water, shaders, terrain editing and more). Best of all, it's FREE!
Alquerian
18
Years of Service
User Offline
Joined: 29th Mar 2006
Location: Reno Nevada
Posted: 15th Sep 2006 01:31
Quite nice, good start DBKing

"We are what we repeatedly do. Excellence, therefore, is not an act, but a habit." - Aristotle
fire
20
Years of Service
User Offline
Joined: 30th Jul 2004
Location: israel
Posted: 16th Sep 2006 11:51
wow, very cool
waiting for updates
Syncaidius
19
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: United Kingdom
Posted: 16th Sep 2006 21:32 Edited at: 16th Sep 2006 21:36
I'll try getting an update to the code done when I get a spare moment.

Im working on a fairly big project at the moment, A free world/level editor called WORLD. Here's the thread if you want to take a look at it:

http://forum.thegamecreators.com/?m=forum_view&t=88385&b=8

For the RTS code im thinking of adding a better camera scroll, where it will scroll at different speeds, depending on how far the cursor is from the edge of the screen.

I may also add some units, buildings and a small AI to play against, eventually.

WORLD - A free World editor, capable of creating the most complex of worlds (including physics, skies, water, shaders, terrain editing and more). Best of all, it's FREE!

Login to post a reply

Server time is: 2024-11-23 03:15:47
Your offset time is: 2024-11-23 03:15:47