![]() |
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
|
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 |
Re: OT: One-color Lava Lamp
You might want to have it detect mouse clicks as well as key presses.
|
Re: OT: One-color Lava Lamp
Tried that, but it kept closing right after it started up.
|
Re: OT: One-color Lava Lamp
I could never figure out how to do those plasma thingies.
|
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? |
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. |
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++... |
Re: OT: One-color Lava Lamp
nifty..
|
Re: OT: One-color Lava Lamp
Quote:
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.