Quick Search for:  in language:    
PSC,programs,Easter,Whats,hidden,program,with
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,011,557. lines
 Jobs: 115. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic.
Click here to see a screenshot of this code!A#vb Undernet suczs
By Xasan on 6/30

(Screen Shot)

CAPS Trigger
By Trevor Burley on 6/30


Auto clip picture
By Kenneth. Jakobsen on 6/30


Click here to see a screenshot of this code!Game of life clone (cool math)
By Johannes B on 6/30

(Screen Shot)

String to CHR()
By Nikhil Raj on 6/30


Encryption Decryption Demo
By Nikhil Raj on 6/30


Click here to see a screenshot of this code!Serial Registration
By Christian (eXonite Team) on 6/30

(Screen Shot)

Click here to see a screenshot of this code!Danger:Can pc kill me? interesting article
By Xasan on 6/30

(Screen Shot)

AniViewer
By Jerrame Hertz on 6/30


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



 
 
   

Work Easter Egg (Bill Gates as PacMan) And Graphic Tutorial on Sprite Animation

Print
Email
 
winzip icon
Submitted on: 9/6/2001 12:34:21 PM
By: JYoder 
Level: Advanced
User Rating: By 35 Users
Compatibility:VB 6.0

Users have accessed this code 6718 times.
 

(About the author)
 
     Two programs in one!<br> <br> 1) The Easter Egg...<br> What's an Easter Egg? It's a hidden program within a program. I created and added this Easter Egg to my program at work which I'm calling Pac-MANager with sound and everything. It's basically PacMan, but uses my managers/co-workers as the characters (though I used Bill Gates and his competition for this upload) and dollar signs for the pellets. So change the pictures to whatever you need in order to tell your own work story! However, you can also go with "normal" Pac-Man characters if you'd prefer. The whole thing is intentionally contained in one form so it's easy to add to your own work project except for some external files called "DataX.dat" which are actually wav files from the original PacMan game to distribute with your work app -- the user will never know! I'll also show you one way to activate the game through your project, but you can do that however you choose -- just be sure to be sneaky about it! Also, the game's AI increases for each level as well as speeds up -- can you help Bill conquer all five levels and beat the competition? Do you even want to? :)<br> <br> 2) The Tutorial...<br> This also comes with a Graphical Tutorial on sprite animation using BitBlt. I thought about making this a seperate entry on PSC, but thought it'd be much more helpful when combined with an actual game which utilizes what the tutorial has to teach. So for anyone interested in sprite animation, you should really check this out as I think it will be invaluable to you. Comments and votes are welcome, and I hope some people find this useful. (Both the tutorial, and Pac-MANager for silently venting against your co-workers/managers!)

 
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 Winzipto 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.


Other 2 submission(s) by this author

 

 
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
9/6/2001 2:33:26 PM:Josh
I tried to give you 5 stars, but it 
didn't increment the tally. So unless 
PSC can fix that, I'm sorry about that!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 3:25:04 PM:Jonas
WOW! That game-walkthrough was the best 
I've ever seen! Great help for newbees! 
GREAT WORK!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 8:21:17 PM:JYoder
Thanks for the votes and the comment! 
(As well as the attempted vote). :( So 
can anyone complete all 5 levels, 
without tweaking the code? The AI gets 
pretty tough. :)
But mainly, I 
really do hope the tutorial gives at 
least one person a nice jumpstart. So 
are there any newbies out there who 
actually find it helpful and learned 
something new?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 8:29:47 PM:NISCO
Great!!! Bout time a pac man game with 
a point. 5's 
*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 2:49:21 AM:Alex
Excellent. But how to make movement of 
the pacman is more realistic (smoothly)?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 7:15:57 AM:JYoder
Alex -- Not sure I understand what 
you're saying. Is the animation not 
smooth on your computer? I tested it on 
6 different computers, and they all had 
very smooth animation, so I'm sorry if 
yours doesn't. (Though I never tested 
it on a laptop). However, you can play 
with the MOVEINCR const and the FPS 
(set in the InitializeProgram 
procedure) and it may help your 
particular machine.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 7:48:05 AM:easfw
now that is cool .. and the sounds are 
icing on the cake
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 8:16:30 AM:Blade Pride
Nice Job!
You may want to make the 
ghost move faster than you, and then 
when you eat a big $ you move faster 
then then.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 8:18:32 AM:JYoder
Thanks -- PacMan just wouldn't be the 
same without those sounds of 
yesteryear! :)
And BTW, for anyone 
reading the Tutorial, I should mention 
that another reason to not use the 
SLEEP api command to slow down Game 
Loops, is even though you can use it to 
make the speed "look right" on your 
machine, it won't be consistent with 
other machines. However, using FPS, the 
speed will remain consistent for other 
computers as well.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 9:22:23 AM:Mark Klamm
Excellent job. Well commented and love 
the sound effects!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 9:38:42 AM:Eshaq Amir
that's really cool .. you have all 5 
from me! keep it up
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 6:07:10 PM:Jared Bruni
this game is extermly funny 5 globes
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/9/2001 1:40:11 PM:Xiaohua
hehe, that's not bill gates :)
great 
program! but i think my missile command 
story line beats your ;)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/9/2001 4:58:16 PM:JYoder
Xiaohua -- Actually, it really is Bill 
Gates, taken from the book cover image 
on Amazon.com of "Hard Drive : Bill 
Gates and the Making of the Microsoft 
Empire." I had to shrink it, and of 
course remove some pixels from his 
mouth area to give him the PacMan look. 
But maybe shrinking took away too much 
detail, though I thought he was still 
quite recognizable. :(
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/29/2001 4:27:21 PM:twig
too basic. the 5 globes are only for 
bill gates. he's a *@%$£.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/18/2001 8:17:29 PM:Ken Bass
Awesome!  5 stars without a doubt.  By 
far the best example of animation on 
the net that I've run across, and I've 
been looking.  Your tutorial is second 
to none as well.  Completely impressed, 
keep up the good work!  I'll be looking 
for further work from you in the future.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/16/2002 5:58:59 PM:Dean M.
hi,
anyone tried 2 change the levels 
? when i do that then the ghosts can 
walt trough the wall but the pacman 
cant.. whys that ? and how can i fix 
that ?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/18/2002 3:54:47 PM:JYoder
In working with Dean, I found a couple 
no-nos with mazes which I'll mention 
here. First, a maze must always have 1 
one empty space -- that's where PacMan 
starts.
And second, there can be no 
dead ends. Or put another way, every 
pellet must have at least 2 directional 
paths to reach it. If you really want 
dead ends, you'll need to tweak the 
ghosts' pathfinding algorithm.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/19/2002 11:27:30 AM:Dean M.
thnx again for help :).. ill try to 
tweak the code... but at the moment im 
working on a level editor for it :).. 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/10/2002 3:50:12 PM:
An excellent game! Thanks for the 
tutorial, it's very usefull for newbies 
like me.
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.