.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   OT: One-color Lava Lamp (http://forum.shrapnelgames.com/showthread.php?t=23277)

NullAshton March 25th, 2005 02:55 PM

OT: One-color Lava Lamp
 
1 Attachment(s)
With C++, I made this near thingie that slowly changes color in full-screen. It requires DirectX 8.1. Press any color to exit. Tell me what you think http://forum.shrapnelgames.com/image...es/biggrin.gif

PvK March 25th, 2005 05:34 PM

Re: OT: One-color Lava Lamp
 
It's glowy! A nice no-nonsense screen saver or night light. http://forum.shrapnelgames.com/images/smilies/happy.gif

PvK

Fyron March 25th, 2005 08:05 PM

Re: OT: One-color Lava Lamp
 
You might want to have it detect mouse clicks as well as key presses.

NullAshton March 25th, 2005 08:06 PM

Re: OT: One-color Lava Lamp
 
Tried that, but it kept closing right after it started up.

narf poit chez BOOM March 26th, 2005 02:41 AM

Re: OT: One-color Lava Lamp
 
I could never figure out how to do those plasma thingies.

Instar March 26th, 2005 02:53 AM

Re: OT: One-color Lava Lamp
 
Not bad at all... I need to learn DX9. I've done openGL, before, and I wasn't too impressed.
Is it on a time controlled loop to prevent going faster or slower on different computers?

atari_eric March 26th, 2005 04:00 AM

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.

NullAshton March 26th, 2005 11:40 AM

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++...

kerensky March 27th, 2005 06:24 PM

Re: OT: One-color Lava Lamp
 
nifty..

Instar March 29th, 2005 12:21 AM

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.


All times are GMT -4. The time now is 01:36 AM.

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