Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Screen Saver
#1
I need to make a Screen Saver for a school project. The problem is the book we are useing in school doesn't have anything about screen savers in it, so the teacher told us to find the information on the web and to use any and all help we can find. We will be graded on being honest about weather we did it on our own or if we had help. Right now I could use some help, haven't been able to find any screen savers that I can look at the code. Please Help
oseph L. Gelsomino
Reply
#2
http://www.thegeekery.org/gfx.php
A few screensavers/gfx demos are there.
A screensaver can be anything - generally, it's a combination of shapes moving around in a cool way. Read up on QB's intrinsic graphics controls (SCREEN, LINE, CIRCLE, PSET).
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#3
First of all; What do you mean with "screensaver"?

-The stuff that shows up in windows after x minutes, of not using
the computer

or

-A nice graphical effect
/post]
Reply
#4
After X minutes after not useing the computer.
oseph L. Gelsomino
Reply
#5
Well... here's a nice example for a screen saver (a graphical thing, not the one that turns n in x minutes)...
Before I show this PLEASE MAKE YOUR OWN!!! THIS IS JUST A EXAMPLE!!!!!

Code:
SCREEN 12       'Sets Up Screen 12
CLS                  'Clears the Screen
RANDOMIZE TIMER     'This makes it so there's a different random # everytime.
DO                             'Starts the DO LOOP
X = INT(RND * 319) + 1        'Make X equal a random #1-320
Y = INT(RND * 199) + 1        'Make Y equal a random #1-200

FOR Radius = 1 TO 100        'Starts the FOR loop...
CIRCLE (X, Y), Radius, 15    'This make a circle at X, Y.
  FOR Pause = 1 TO 100: NEXT Pause    'This Delays the program for a bit.
NEXT Radius                         'Tells it to keep going back up to the  
                                             'FOR statement until Radius gets to
                                             '100.

FOR Radius = 100 TO 1 STEP -1        'Starts the FOR loop...
CIRCLE (X, Y), Radius, 0    'This makes a black colored circle.
  FOR Pause = 1 TO 100: NEXT Pause    'This Delays the program for a bit.
NEXT Radius                         'Tells it to keep going back up to the  
                                             'FOR statement until Radius gets to
                                             '100.
LOOP    'Makes the prog. go back to DO

I'm not sure if it works because my computer broke down, and I don't have qbasic on this one Cry . This example makes a circle appear on the screen getting bigger, then it gets smaller. After that a new circle in a diff. place does the same thing. I made this in my HTML class... yup qbasic in HTML... wierd :???: .


Quote:The problem is the book we are useing in school doesn't have anything about screen savers in it, so the teacher told us to find the information on the web and to use any and all help we can find.

You got a book???? All I had for my qbasic course is the teacher and annoying DATA assainments (but the course was SOOO easy).


*EDIT* Oh just saw the post about it being x minutes after the comp turns on.... don't know how to do that....
Reply
#6
I think for that you'll need to make a TSR app (meaning the app is memory resident), and that activates itself.
That's pretty much impossible to do with QB.
And the Windows ones are something built into an OS - DOS apps can't be .scrs.
So you're stuck. Your teacher couldn't have meant to make a "startup after x-minutes of inactivity" screensaver - probably just a graphics demo, that exits when you press a key.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#7
If you needed a key Pressed to exit this then....

Code:
SCREEN 12       'Sets Up Screen 12
CLS                  'Clears the Screen
RANDOMIZE TIMER     'This makes it so there's a different random # everytime.
DO                             'Starts the DO LOOP
Press$ = INKEY$     'This make Press$ = Anything that's pressed on the keboard.
X = INT(RND * 319) + 1        'Make X equal a random #1-320
Y = INT(RND * 199) + 1        'Make Y equal a random #1-200

FOR Radius = 1 TO 100        'Starts the FOR loop...
CIRCLE (X, Y), Radius, 15    'This make a circle at X, Y.
  FOR Pause = 1 TO 100: NEXT Pause    'This Delays the program for a bit.
NEXT Radius                         'Tells it to keep going back up to the  
                                             'FOR statement until Radius gets to
                                             '100.

FOR Radius = 100 TO 1 STEP -1        'Starts the FOR loop...
CIRCLE (X, Y), Radius, 0    'This makes a black colored circle.
  FOR Pause = 1 TO 100: NEXT Pause    'This Delays the program for a bit.
NEXT Radius                         'Tells it to keep going back up to the  
                                             'FOR statement until Radius gets to
                                             '100.
LOOP UNTIL Press$ <> ""    'Makes the prog. go back to DO until Press$ equals something
'other then nothing.

Wow! Your teacher wanted you to do I screen saver???? Mine didn't even teach us the PSET command (I taught it to my classmates :wink: ).
Reply
#8
Quote:I think for that you'll need to make a TSR app (meaning the app is memory resident), and that activates itself.
That's pretty much impossible to do with QB.
And the Windows ones are something built into an OS - DOS apps can't be .scrs.
So you're stuck. Your teacher couldn't have meant to make a "startup after x-minutes of inactivity" screensaver - probably just a graphics demo, that exits when you press a key.

Actually it isn't impossible. PDQ comes with instructions on how to do it. Only one problem. PDQ is expensive. Sad

This, http://www.filelibrary.com:8080/cgi-bin/...rinbas.zip, however might help you. I don't know how good it works because I have yet to actually make a TSR. But if I did I'd use PDQ (cause I already have it).
Reply
#9
http://rel.betterwebber.com/junk.php?id=17
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#10
Quote:I think for that you'll need to make a TSR app (meaning the app is memory resident), and that activates itself.
That's pretty much impossible to do with QB.
And the Windows ones are something built into an OS - DOS apps can't be .scrs.
So you're stuck. Your teacher couldn't have meant to make a "startup after x-minutes of inactivity" screensaver - probably just a graphics demo, that exits when you press a key.

What his teacher most likely meant was, when program is run it should start counting the no. of seconds of inactivity i.e. no key is pressed and after x seconds the screen saver code should automatically run =).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)