Quick Search for:  in language:    
ASM,Added,Fully,Functional,Screensaver,with,s
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,290,928. lines
 Jobs: 179. postings

 How to support the site

 
Sponsored by:

 
You are in:
 

Does your code think in ink?
Login





Latest Code Ticker for Visual Basic.
Check Placement of Form on Screen
By CubeSolver on 11/20


RT Full Duplex
By Brian Black on 11/20


C++ Template Hack
By OpcodeVoid on 11/20


Click here to see a screenshot of this code!DeskTop Generator
By Ziad Said on 11/20

(Screen Shot)

SQLMan
By Darwin H. de Leon on 11/20


Klik! CompareLib...Co mpare and synchronize schema differences in your Access databases...
By Özden Irmak on 11/20


listview000sher if
By Sherif Omran on 11/20


Using ComboBox instead of TextBox
By SMA Soft on 11/20


Click here to see a screenshot of this code!ColorFade
By SMA Soft on 11/19

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!

Affiliate Sites



 
 
   

Flickerless, Smooth Animation using pure VB with No OCXs, DLLs or ASM!

Print
Email
 
winzip icon
Submitted on: 12/19/2000 10:01:20 AM
By: Douglas J. Puckett  
Level: Advanced
User Rating: By 52 Users
Compatibility:VB 6.0

Users have accessed this code 14587 times.
 

(About the author)
 
     Added New - Fully Functional Screensaver with source using my animation technique! Also added one more new demo - Geometry. Flickerless, Smooth Animation using pure VB with No OCXs, DLLs, ASM or DriectX. Pure VB. This Entry gives you the code that I created and have used in all of my screen savers for years. The code included is pure VB code (with just a few APIs declared and utilized). Most of the code is in the "CodePage.Bas" module. This contains all of the initialization, variable definitions and declarations and animation code. If you like it, give me a vote or two. If I get votes, I'll know you are interested and I'll create a complete documentation package around this. Demos included are... Demo_BouncingBalls.exe - About 30 colored balls bouncing all around the screen (Source included). Demo_BouncingSantas.exe - Bunches of little Santas practicing thier jumping for the upcoming holiday season. Demo_Geometry.exe - Bunches of geometric images floating around the screen. Demo_UFO_ScreenSaver.Scr - Aliens have taken over your desk top. All Demos have full source code in zip format. UFOsaver.scr - A complete, fully functional screensaver using my animation techniques (source included)!!! Thanks. Doug Puckett ( dpuckett@thelittleman.com )

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

'**************************************
'Windows API/Global Declarations for :Fl
'     ickerless, Smooth Animation using pure V
'     B with No OCXs, DLLs or ASM!
'**************************************
All In the source download
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
12/19/2000 10:33:24 AM:JB
Cool! this is fast! 5 globes from me!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/19/2000 1:46:12 PM:TDS
Great example!  Would enjoy more!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/19/2000 2:08:43 PM:xXx_VipeI2_xXx
Very! Very! Sweet!
The demo is proof 
'nough.
5 earthly globes up!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/19/2000 2:47:59 PM:Paul Blower
Im yet to go thru this code, but thats 
seriously nice! Thats direct x qualtiy 
youve made there. 
NICE Job :)
(5 
Globes!!)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/20/2000 12:02:53 AM:Phillip O'Neal
Very smooth. Good job.
One small 
problen: when the screen is 1024x768 or 
lower works fine, at 1280x1024 or 
higher the sprites that bounce the 
highest(off the top of the screen) 
don't erase completely.
Like this: 
starting at the bottom of the screen 
the bottom half of the sprite is not 
erased, next higher postion a little 
less than half of the sprite remains 
and so on. On the way down the closer 
to the bottom of the screen it gets the 
more of the top of the sprite 
remains.
If you could please let me 
know why this happens.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/20/2000 12:56:18 AM:Robert Rayment
Excellent, thanks for sharing it!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/20/2000 1:31:40 PM:Simon Price
Very smooth! I guess we will need to 
learn this sort of stuff now, since the 
latest version of DirectX seems to have 
forgotton what 2D is :)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/21/2000 5:25:10 AM:Rik
Santa's bobbles sometimes stay on the 
screen. But I don't seem to have the 
high resolution problem the other guy 
does.  :-)  (I'm running 1280 x 1024).
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/24/2000 8:16:37 AM:MaSs
SWEEEEET
nice piece of work
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/24/2000 5:19:05 PM:---
Thats cool! 5!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/30/2000 10:08:53 AM:Doug Puckett
Anyone that may have had a prolem with 
resolutions of 1280 or higher can now 
download the code again.  Yhe code has 
been adjusted so the higher resolutions 
are fine in the demos.  I have also 
added another demo and a screensaver as 
extra examples.  Let me know if you 
need anything more.  Thanks to all for 
the interest. I will write a tutorial 
around this soon. Again, Thanks!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/11/2001 1:48:06 AM:Jason Brimblecombe
Excellent code! You've got my vote. 
Visit my website sometime: 
http://www.jbrimble.net
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/13/2001 1:28:29 PM:Freydaddy
Oh, sweetness!! I give it 5!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/13/2001 3:14:27 PM:Simon Cutler
Very ingeneous way to make .scr files. 
Appreciate the sharin of yer code man. 
We can all do our part in making open 
source programming, as this is the way 
that i've learnt alot of my programming 
techniques. CHEERS!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/5/2001 11:28:50 PM:Mike
Excellent code! You've got my vote.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/31/2001 8:54:58 PM:Mikey the Tool Maker
If I set the gravity number (-0.5) to 
any higher, the pieces leave bits of 
themselves on screen.  Maybe it is 
impossible to move an item more than 
1/2 it's size without leaving bits of 
it hanging about.  Is there a fix for 
this?
Excellent code!!!!  Lots to 
learn from this one.  I just need a 
couple of years or so...  yeah, right 
after I win the lottery!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/3/2001 1:06:50 AM:Rajinder Verma
Really Cool Code for a beginner. Thanks 
a lot for sharing it. Rating Ur Code as 
EXCELLENT.
Keep It Up ;))))
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/11/2002 4:00:56 PM:Happy Lobster
I love your code! Gave it excellent. 
But I have 1 question: I want to call 
mainform.show vbmodal, but when I do 
there is no animation.  How can I set 
it to be vbModal and have in 
working?
Thank you
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/24/2002 4:58:00 AM:Squimp
This is a fantastic piece of work, Very 
clever and as a beginner I have picked 
up so many tips.  Thanks for sharing, I 
rate this as excellent!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/8/2002 10:38:00 AM:Brian Matthew Anderson
I was just going over the code for the 
bouncyballs demo - Very clean and well 
written. I would highly recommend this 
to any beginner or intermediate 
programmer as a good example of well 
documented, solidly structured code. 
Thank you for this submission. 5 globes.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/21/2003 5:31:19 PM:
Excellent.  I could have used this a 
long time ago!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.