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 / RTS fog of war

Author
Message
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 30th Jun 2006 14:38 Edited at: 2nd Jul 2006 15:36
As far as I know this is the first Fog of War snippet
Maybe you need this. Its for DBP


Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 1st Jul 2006 20:18
pretty cool, except for the 25fps and it's a little choppy whenever it refreshes.

Same basic code, only this will use a memblock to draw the image. Much smoother and you have control over the alpha. So its solid black when unexplored, and semi-transparent after you've gone over it once.



"Using Unix is the computing equivalent of listening only to music by David Cassidy" - Rob Pike
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 2nd Jul 2006 11:16 Edited at: 2nd Jul 2006 11:18
You have alot of grey lines, and the semi transparent color doesn't seem to be a circle though.

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 2nd Jul 2006 15:36
Try This code:


Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 2nd Jul 2006 18:59
I see the mistake and why the semi-transparent wasn't a circle, but not sure why it caused the lines.

"Using Unix is the computing equivalent of listening only to music by David Cassidy" - Rob Pike

Login to post a reply

Server time is: 2024-11-23 03:53:06
Your offset time is: 2024-11-23 03:53:06