PACMANCODE

PACMANCODEPACMANCODEPACMANCODE
  • Home
  • Start
    • Vectors
    • Stacks
    • Blank Screen
    • Basic Movement
  • Level 1
    • Nodes
    • Node Movement (Part 1)
    • Node Movement (Part 2)
    • Node Movement (Part 3)
  • Level 2
    • Maze Basics
    • Pacman Maze
    • Portals
    • Pellets
    • Eating Pellets
  • Level 3
    • Ghosts Intro
    • Ghost Setup
    • Ghost AI
    • Modes
    • Ghost Home
    • Freight Mode
    • Spawn Mode
  • Level 4
    • More Ghosts
    • Start Positions
    • Fruit
    • Pausing
    • Level Advancing
    • Death to Pacman
    • Node Restrictions
  • Level 5
    • Text
    • Sprites
    • Life Icons
    • Graphical Mazes
    • Graphical Mazes Part 2
    • Animate Pacman
    • Animate Ghosts
  • Final
    • Pacman Death
    • Level Flash
    • More Fruit
    • More Mazes
    • The End
  • Contact
  • More
    • Home
    • Start
      • Vectors
      • Stacks
      • Blank Screen
      • Basic Movement
    • Level 1
      • Nodes
      • Node Movement (Part 1)
      • Node Movement (Part 2)
      • Node Movement (Part 3)
    • Level 2
      • Maze Basics
      • Pacman Maze
      • Portals
      • Pellets
      • Eating Pellets
    • Level 3
      • Ghosts Intro
      • Ghost Setup
      • Ghost AI
      • Modes
      • Ghost Home
      • Freight Mode
      • Spawn Mode
    • Level 4
      • More Ghosts
      • Start Positions
      • Fruit
      • Pausing
      • Level Advancing
      • Death to Pacman
      • Node Restrictions
    • Level 5
      • Text
      • Sprites
      • Life Icons
      • Graphical Mazes
      • Graphical Mazes Part 2
      • Animate Pacman
      • Animate Ghosts
    • Final
      • Pacman Death
      • Level Flash
      • More Fruit
      • More Mazes
      • The End
    • Contact

PACMANCODE

PACMANCODEPACMANCODEPACMANCODE
  • Home
  • Start
    • Vectors
    • Stacks
    • Blank Screen
    • Basic Movement
  • Level 1
    • Nodes
    • Node Movement (Part 1)
    • Node Movement (Part 2)
    • Node Movement (Part 3)
  • Level 2
    • Maze Basics
    • Pacman Maze
    • Portals
    • Pellets
    • Eating Pellets
  • Level 3
    • Ghosts Intro
    • Ghost Setup
    • Ghost AI
    • Modes
    • Ghost Home
    • Freight Mode
    • Spawn Mode
  • Level 4
    • More Ghosts
    • Start Positions
    • Fruit
    • Pausing
    • Level Advancing
    • Death to Pacman
    • Node Restrictions
  • Level 5
    • Text
    • Sprites
    • Life Icons
    • Graphical Mazes
    • Graphical Mazes Part 2
    • Animate Pacman
    • Animate Ghosts
  • Final
    • Pacman Death
    • Level Flash
    • More Fruit
    • More Mazes
    • The End
  • Contact

The End?

At this point you have a pretty decent Pacman game if I say so myself.  From here you can add to it to your hearts content.  Add more levels as mentioned in the previous section, for example.  So what are some of the things we did not do or cover?  


  1. Sound effects/music:  I didn't add any sound effects or music so the game is completely silent.  I'm sure it isn't that hard to add, I just didn't want to.  Maybe it'll be a section in a future update.  I tend to play games with the sound off for the most part, so maybe that's why I didn't think of adding this.  
  2. Difficulty ramp:  In Pacman, the difficulty ramps up as you progress in the levels.  For example, the ghosts may get a bit faster and their FREIGHT time will be shorter in higher levels.  I didn't do that here, but think of it as extra credit for your game.
  3. Start screen:  You may want to add a start screen in your game rather than just starting from the first level.  This site was just how to make a Pacman game, but you can add any other bells and whistles that you want.
  4. Saving:  You may want to be able to save your high score.  You can do something simple like save it to a text file and load it from a text file.  You can also add more text objects to show your high score in the game.  There's enough space in the middle of the top 2 rows to do that.  


Those are the main 4 things I can think of of things that I did not do in this game.  But again, maybe I'll add them in a future update to this site, depending on how much they are requested.  Another thing you can do is add your own sprites to the game.  As long as they follow the same format as the spritesheet that we use you'll be fine.  Below are a couple examples of different sprites to use.  You can download them and replace the spritesheet with these.  Just make sure to either change the names of these sheets to "spritesheet.png" or change the name in the Spritesheet class to whichever spritesheet you want to use.  


Anyways, thanks for reading this far and hopefully you learned a thing or two and had fun doing it.  If you did enjoy it then let me know so that I know there are people out there reading this.  Thanks!

Additional Spritesheets

spritesheet_mspacman (png)Download
spritesheet_pacman2 (png)Download

Copyright © 2024 Pacmancode - All Rights Reserved.


Powered by GoDaddy Website Builder