.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

winSPMBT: Main Battle Tank- Save $6.00
winSPWW2- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old March 26th, 2005, 04:00 AM
atari_eric's Avatar

atari_eric atari_eric is offline
Sergeant
 
Join Date: Jan 2003
Location: Southern California
Posts: 210
Thanks: 0
Thanked 0 Times in 0 Posts
atari_eric is on a distinguished road
Default Re: OT: One-color Lava Lamp

Put a one-second delay before it tests for a mouse press.
That should work.

IF you're testing for a mouse move, test to see if it has moved MORE that x pixels (x about 5 or 10), and not just if it moved at all.
Reply With Quote
  #2  
Old March 26th, 2005, 11:40 AM
NullAshton's Avatar

NullAshton NullAshton is offline
Major General
 
Join Date: Nov 2004
Location: Floating in space.
Posts: 2,297
Thanks: 0
Thanked 0 Times in 0 Posts
NullAshton is on a distinguished road
Default Re: OT: One-color Lava Lamp

I just had it to where if the program was sent a WM_MOUSEMOVE event, it posted the quit message.

The program uses SetTimer() in order to keep it at a steady pace. SetTimer() calls TimerProc() every 25 milliseconds to change the global color values.

This isn't that advanced, it just clears the screen in a slowly shifting color.

On another note, I never knew that all these people on these fourms programmed in C++...
__________________
Hey! I found squirrels!

Vala - "The last time I was this bored, I took hostages!"
Reply With Quote
  #3  
Old March 27th, 2005, 06:24 PM

kerensky kerensky is offline
Second Lieutenant
 
Join Date: Mar 2004
Location: Somewhere out there...
Posts: 432
Thanks: 0
Thanked 0 Times in 0 Posts
kerensky is on a distinguished road
Default Re: OT: One-color Lava Lamp

nifty..
__________________
I hear voices in my head... and they're not the ones I normally hear.

A-- Se GdY $ Fr! Csc Cst Ai++ Au M++ MpD MpT MpM S- Ss++++ RY Pw- Fq Nd Rp+ G++ Mm++ Bb
Reply With Quote
  #4  
Old March 29th, 2005, 12:21 AM
Instar's Avatar

Instar Instar is offline
Major
 
Join Date: Aug 2000
Posts: 1,246
Thanks: 0
Thanked 0 Times in 0 Posts
Instar is on a distinguished road
Default Re: OT: One-color Lava Lamp

Quote:
NullAshton said:
I just had it to where if the program was sent a WM_MOUSEMOVE event, it posted the quit message.

The program uses SetTimer() in order to keep it at a steady pace. SetTimer() calls TimerProc() every 25 milliseconds to change the global color values.

This isn't that advanced, it just clears the screen in a slowly shifting color.

On another note, I never knew that all these people on these fourms programmed in C++...
C++ is an easy language to get started with, so I'm sure people here know a bit. Most people here probably don't do programming as a job, I'd bet.
I'm a Java programmer at the moment, but my favorite language is by far C#. I also do C/C++, COBOL, FORTRAN, Perl, SQL, JCL, and things like HTML, Javascript, databases, web programming, XML, etc..
Yay programming.
__________________
When a cat is dropped, it always lands on its feet, and when toast is dropped, it always lands with the buttered side facing down. I propose to strap buttered toast to the back of a cat. The two will hover, spinning inches above the ground. With a giant buttered cat array, a high-speed monorail could easily link New York with Chicago.
Reply With Quote
  #5  
Old March 29th, 2005, 10:15 AM
NullAshton's Avatar

NullAshton NullAshton is offline
Major General
 
Join Date: Nov 2004
Location: Floating in space.
Posts: 2,297
Thanks: 0
Thanked 0 Times in 0 Posts
NullAshton is on a distinguished road
Default Re: OT: One-color Lava Lamp

C++ is easy? It's a whole lot harder than Visual Basic.
__________________
Hey! I found squirrels!

Vala - "The last time I was this bored, I took hostages!"
Reply With Quote
  #6  
Old March 29th, 2005, 04:25 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: OT: One-color Lava Lamp

Compared to languages like COBOL, FORTRAN, LISP, etc., C++ is quite easy to work with. A huge number of modern languages (Java, Python, C#, PHP, Delphi, etc.) are based off of C++, so you get the advantage of getting a head start on them as well...
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #7  
Old March 29th, 2005, 04:35 PM
NullAshton's Avatar

NullAshton NullAshton is offline
Major General
 
Join Date: Nov 2004
Location: Floating in space.
Posts: 2,297
Thanks: 0
Thanked 0 Times in 0 Posts
NullAshton is on a distinguished road
Default Re: OT: One-color Lava Lamp

C++ in concept is very simple. You set varibles, then do various operations on them with functions. In practice, however, it can get complex. The hardest part I believe is remembering the functions, as well as 'thinking' in C++. There are many functions to interact with the user, and those can be difficult to work with at times. Also, programming forces you to think in other directions than you're used to. It took a bit of work to get that program to cycle the colors. I had a varible that told the program what colors it needs to decrease or increase.
__________________
Hey! I found squirrels!

Vala - "The last time I was this bored, I took hostages!"
Reply With Quote
  #8  
Old March 29th, 2005, 05:23 PM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 5 Times in 2 Posts
geoschmo is on a distinguished road
Default Re: OT: One-color Lava Lamp

I just started a C++ class. Had my first class Monday. Yay me.
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
  #9  
Old March 30th, 2005, 06:47 PM
Slynky's Avatar

Slynky Slynky is offline
General
 
Join Date: Jan 2003
Location: Atlanta, GA
Posts: 3,499
Thanks: 0
Thanked 0 Times in 0 Posts
Slynky is on a distinguished road
Default Re: OT: One-color Lava Lamp

Quote:
Imperator Fyron said:
Compared to languages like COBOL, FORTRAN, LISP, etc., C++ is quite easy to work with. A huge number of modern languages (Java, Python, C#, PHP, Delphi, etc.) are based off of C++, so you get the advantage of getting a head start on them as well...
I think I got ruined along the way somewhere. Started in Fortran IV, then Cobol, CICs Command level (MF stuff), JCL (and all that crap). Then began dabling in Basic on a Honeywell and then on an IBM PC. That evolved to Borland's Pascal and Clipper. Then, I got tired of languages and started messing with graphics. Now, all the object-oriented stuff confuses me. You know, old dog, new tricks (yada, yada, yada).
__________________
ALLIANCE, n. In international politics, the union of two thieves who have their hands so deeply inserted in each other's pocket that they cannot separately plunder a third. (Ambrose Bierce)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 08:30 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2026, Shrapnel Games, Inc. - All Rights Reserved.