Page 1 of 2
Fireworks Screensaver v1.0 Beta 3
Posted: Wed Jun 07, 2006 9:24 am
by Joakim Christiansen
About:
------
A nice screensaver showing some amazing fireworks!
Secret keys:
- : Faster
+ : Slower
I : Show info
Version history:
----------------
1.0 Beta 2:
Added: Preview is now displayed
Added: A new explosion type
Fixed: Any other key closes it
1.0 Beta 3:
Changed: I did some tweaking here and there to make it look bether
Added: XP skin support for the config window
I guess this will be the last beta?

<-- crappy images... it looks much bether
Click to download
Fireworks Screensaver 1.0 Beta 3 - "100% CLEAN" AWARD
I'm gonna use this one myself, I love it! ;D
BTW: It would be nice if you would report your FPS, i'm getting 48 at default settings, and 800-1000 on 0 delay.
And does the preview and config work on all windows versions?
Posted: Wed Jun 07, 2006 10:55 am
by mskuma
Hi Joakim, I'm getting 44 FPS on a Toshiba P4 3GHz laptop (graphics: NVidia GeForce FX Go 5200). Thanks alot for showing.
Posted: Wed Jun 07, 2006 7:26 pm
by benny
One of the best 2D Plot()-only fireworks I have seen

Looks fascinating ... N1
[edit]a screensaver should exits when any key is pressed (except the keys which
are used of course) - just my opinion :roll: [/edit]
Posted: Wed Jun 07, 2006 7:30 pm
by netmaestro
Very nice job, JLC! I like it. But it isn't playing in the preview window? Just in main saver mode.
Posted: Wed Jun 07, 2006 7:50 pm
by dracflamloc
That preview mode is hit or miss with screensavers.
Posted: Wed Jun 07, 2006 7:56 pm
by netmaestro
That preview mode is hit or miss
No, it isn't. Implemented correctly it is completely reliable. But there are a couple (very easy) bases you have to cover or you'll have problems.
Posted: Wed Jun 07, 2006 8:11 pm
by Joakim Christiansen
I didn't implement a preview mode yet, if there was a easy way where I could just scale the screen or something then it would be cool.
a screensaver should exits when any key is pressed (except the keys which
are used of course) - just my opinion :roll:
I'll try to make it that way then!
Posted: Wed Jun 07, 2006 8:47 pm
by dracflamloc
Yea I always tap the "windows" button when i deactivate teh screensaver. I rarely touch the mouse.
Posted: Wed Jun 07, 2006 9:09 pm
by Joakim Christiansen
Dracflamloc, done!
Now any other key closes it, just download it again!
Now I have to pounder with the preview stuff, booooring...
Posted: Wed Jun 07, 2006 9:16 pm
by dracflamloc
Cool stuff. Pretty similar to the one most linux distros have!
Posted: Wed Jun 07, 2006 9:16 pm
by Trond
Terrific.
Posted: Wed Jun 07, 2006 9:18 pm
by dracflamloc
A request though: Can you please have it not change the screen resolution and also work with dual monitors?
Posted: Wed Jun 07, 2006 9:29 pm
by netmaestro
How to do the screensaver preview window
===============================
1. Get your DisplayHwnd from the ProgramParameter
2. Open a window with the #WS_CHILD style and set parent to DisplayHwnd
3. OpenWindowedscreen with AutoStretch set to 1.
4. Set your WindowCallBack to the proc shown
Code: Select all
Procedure PreviewCallback(hWnd, Message, wParam, lParam)
Select Message
Case #WM_CLOSE
End
EndSelect
Result = DefWindowProc_(hWnd, Message, wParam, lParam)
ProcedureReturn Result
EndProcedure
; Once you've determined that it's preview mode and you
; have the PreviewHwnd, do this:
GetClientRect_(DisplayHwnd, @PSize.RECT)
OpenWindow(0,0,0,PSize\right,PSize\bottom,"",#WS_CHILD,DisplayHwnd)
OpenWindowedScreen(WindowID(0),0,0,width,height,1,0,0)
SetWindowCallback(@PreviewCallback())
Then just run your display code normally.
IMPORTANT:
Screen width and height
are the same for preview and main display. You will get automatic scaling with the Autostretch parameter
set to true in your OpenWindowedScreen() command, so if your main saver window is 1024*768, open the windowed screen that same size.
Note that you're not processing PureBasic Events in the callback, you must ProcedureReturn the DefWindowProc.
Posted: Wed Jun 07, 2006 9:42 pm
by Joakim Christiansen
Thank you netmaestro, i'll see what I can do!
Posted: Thu Jun 08, 2006 6:36 am
by Joakim Christiansen
Beta 2 is out:
Added: Preview is now displayed
Added: A new explosion type
Fixed: Any other key closes it
Now I will try to tweak the fireworks and make it even nicer
