Qbasicnews.com

Qbasic "like" compilers/interpreters => FB Projects => Topic started by: NovaProgramming on December 07, 2006, 01:38:33 PM



Title: Rain Simulation for $20
Post by: NovaProgramming on December 07, 2006, 01:38:33 PM
Hello there everyone.  I have created a rain simulator.  It's not the greatest thing in the world, but all of my computer-illiterate friends think that it's absouletely amazing.  Here's how it went down:  Eric was asking me, nay, begging me:  "Make rain!!"  I kept telling him I didn't have time or whatever other excuse I could come up with, until finally I broke down and did as he asked.  Here is the finished result, in .SCR format so that it can be inserted into WINDOWS/SYSTEM32 to use as a screensaver.  Yep.  So basically it took me one hour to make.. and Eric gave me $20 for it.  So that means I just made $20 an hour.  That's pretty sweet.

http://fileanchor.com/83585-d


Title: Rain Simulation for $20
Post by: Radical Raccoon on December 07, 2006, 08:54:22 PM
Cool


Title: Rain Simulation for $20
Post by: axipher on December 08, 2006, 01:01:57 AM
That is pretty sweet.  Do you have the source though, I'd like add a few things and maybe actually use it as a screensaver.  I'm thinkin variable wind, strength and a background.


Title: Rain Simulation for $20
Post by: Skyler on December 08, 2006, 03:34:52 PM
1. Your link isn't working.

2. How do you make a .scr screensaver?

3. Can you make a screensaver play an AVI?
I'm into Blender, and I'd like to make a screensaver out of some of my anims.


Title: Rain Simulation for $20
Post by: TheDarkJay on December 08, 2006, 05:09:15 PM
I can answer 2 and 3:

2) Rename the .exe to .scr and use -s gui to remove the command prompt
3) Look for ways to play .avi's using FreeBASIC. Since a .scr is a renamed .exe that's all they is too it :D


Title: Rain Simulation for $20
Post by: NecrosIhsan on December 10, 2006, 02:42:31 AM
There's more to it than just renaming the exe to scr, although that is one step...might wanna look this stuff up. :D


Title: Rain Simulation for $20
Post by: TheDarkJay on December 10, 2006, 04:33:50 AM
It'll work as a screensaver if just renamed :P

It's just if you wanna get it to preview that you have to do a bit (read lot) more :)


Title: Rain Simulation for $20
Post by: barok on December 11, 2006, 06:50:43 AM
heh... reminds me when i created a particle engine last year and made it make rain, snow, fireworks and a fountain.  They were shocked. :P

it's a bit flickery, but the lightning and puddles are a very nice touch. :)


Title: Rain Simulation for $20
Post by: Skyler on December 13, 2006, 04:10:41 PM
I tried a while ago to get a QB program to work as a screensaver. It didn't work when I renamed it.


Title: Rain Simulation for $20
Post by: NovaProgramming on December 14, 2006, 02:21:17 PM
Um... it IS my laptop's screensaver, and all I did was go into command prompt and say "rename rain.exe rain.scr"  and then copy it into windows/system32 and it works....

I know it's a bit flickery; but that's okay with me.  I have the source on my laptop, so I'll post it sometime when I'm on my laptop again ;).  Overall, it was a pretty easy $20.


Title: Rain Simulation for $20
Post by: spaz_man2 on December 17, 2006, 06:43:55 AM
You're supposed to use the Windows API to make a program a screen saver, which is pure hell to learn or use.


Title: Rain Simulation for $20
Post by: Skyler on December 18, 2006, 03:55:52 PM
I right-clicked and selected "rename" then changed the extension to .scr. but it didn't work.


Title: Rain Simulation for $20
Post by: TheAdventMaster on December 20, 2006, 10:43:43 PM
Quote from: "Skyler"
I right-clicked and selected "rename" then changed the extension to .scr. but it didn't work.
Well apparently you can't brain today.

Quote
You're supposed to use the Windows API to make a program a screen saver, which is pure hell to learn or use
The windows API is like, child's play.


Title: Rain Simulation for $20
Post by: Torahteen on December 20, 2006, 11:31:54 PM
You do NOT have to use the WinAPI to make a screensaver ;). Just ask Rattrapmax6.


Title: Rain Simulation for $20
Post by: spaz_man2 on December 20, 2006, 11:36:15 PM
I said you're supposed to, doesn't mean you have to.


Title: Rain Simulation for $20
Post by: BadMrBox on December 27, 2006, 06:41:48 PM
It's way easy to make a .src with freebasic. I dont really remember how to do, it wasn't yesterday I tested it (I tend to forget things quite fast) but I think that one line of code has to be added in your .bas file and then compiled as TheDarkJay said.
Hell, now I got interesting in how this really works again  :d


Title: Rain Simulation for $20
Post by: Antoni Gual on December 31, 2006, 03:14:35 PM
Jofers did a year ago a screensaver lib that handled all the WinAPI stuff. You just did all graphics stuff using gfxlib, and linked in the lib. Then renamed the .exe to .scr and that was all.
 Unfortunately it was some versions ago and it may not work today. You can find it at the FB official forums. Perhaps if someone asks him...


Title: Rain Simulation for $20
Post by: Skyler on December 31, 2006, 04:56:01 PM
I found some references to it during my searches for screensavers in the Challenges forum. I haven't look it up, though. Oh- I got a program to work as a .scr, but I couldn't use it as a screensaver.