Important alert: (current site time 7/16/2013 3:11:03 AM EDT)
 

winzip icon

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

Email
Submitted on: 3/24/2011 2:22:12 PM
By: JYoder 
Level: Advanced
User Rating: By 44 Users
Compatibility: VB 6.0
Views: 26065
(About the author)
 
     Two programs in one!

1) The Easter Egg...
What's an Easter Egg? It's a hidden program within a program. I created this Easter Egg, which I'm calling Pac-MANager, with sound and everything. It's basically PacMan, but you can use your 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 an actual 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? :)

2) The Tutorial...
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!)

 
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.


Other 2 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

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 PMJosh

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!
(If this comment was disrespectful, please report it.)

 
9/6/2001 3:25:04 PMJonas

WOW! That game-walkthrough was the best I've ever seen! Great help for newbees! GREAT WORK!
(If this comment was disrespectful, please report it.)

 
9/6/2001 8:21:17 PMJYoder

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?
(If this comment was disrespectful, please report it.)

 
9/6/2001 8:29:47 PMNISCO

Great!!! Bout time a pac man game with a point. 5's *!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
(If this comment was disrespectful, please report it.)

 
9/7/2001 2:49:21 AMAlex

Excellent. But how to make movement of the pacman is more realistic (smoothly)?
(If this comment was disrespectful, please report it.)

 
9/7/2001 7:15:57 AMJYoder

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.
(If this comment was disrespectful, please report it.)

 
9/7/2001 7:48:05 AMeasfw

now that is cool .. and the sounds are icing on the cake
(If this comment was disrespectful, please report it.)

 
9/7/2001 8:16:30 AMBlade 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.
(If this comment was disrespectful, please report it.)

 
9/7/2001 8:18:32 AMJYoder

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.
(If this comment was disrespectful, please report it.)

 
9/7/2001 9:22:23 AMMark Klamm

Excellent job. Well commented and love the sound effects!
(If this comment was disrespectful, please report it.)

 
9/7/2001 9:38:42 AMEshaq Amir

that's really cool .. you have all 5 from me! keep it up
(If this comment was disrespectful, please report it.)

 
9/7/2001 6:07:10 PMJared Bruni

this game is extermly funny 5 globes
(If this comment was disrespectful, please report it.)

 
9/9/2001 1:40:11 PMXiaohua

hehe, that's not bill gates :)
great program! but i think my missile command story line beats your ;)
(If this comment was disrespectful, please report it.)

 
9/9/2001 4:58:16 PMJYoder

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. :(
(If this comment was disrespectful, please report it.)

 
10/29/2001 4:27:21 PMtwig

too basic. the 5 globes are only for bill gates. he's a *@%$£.
(If this comment was disrespectful, please report it.)

 
12/18/2001 8:17:29 PMKen 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.
(If this comment was disrespectful, please report it.)

 
2/16/2002 5:58:59 PMDean 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 ?
(If this comment was disrespectful, please report it.)

 
2/18/2002 3:54:47 PMJYoder

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.
(If this comment was disrespectful, please report it.)

 
2/19/2002 11:27:30 AMDean M.

thnx again for help :).. ill try to tweak the code... but at the moment im working on a level editor for it :)..
(If this comment was disrespectful, please report it.)

 
9/10/2002 3:50:12 PM

An excellent game! Thanks for the tutorial, it's very usefull for newbies like me.
(If this comment was disrespectful, please report it.)

 
3/25/2011 2:36:23 AMSaeed AbuRoken

Thanks

Good work
(If this comment was disrespectful, please report it.)

 
3/30/2011 10:30:12 AMPaul Bahlawan

Why is this showing as an update? None of the files have been modified since 1999
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.