Skip to content

czapata08/pacmanGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pac Man Game

This game is based on the classic Pac-man video game, where the goal is to eat all pellet and avoid getting eaten by the ghosts. This application combines CSS, DOM, HTML and javascript in order to create this game and add functionality.

Usage

  • Move the pac-man image thruough the gameboard with your keyboard arrows
  • Don't let the ghosts catch up to you
  • Eat the power pellet to allow you to eat the ghosts
  • After power pellet is eaten, ghosts are vulnerable and you can eat them for a few seconds
  • To win the game eat all pellets
  • Roadmap

  • Ghost responsive behavior to chase pac-man
  • Mobile responsive layout
  • Change pac-man image base on direction
  • Project Goals

  • Create a grid container and add images dynamically
  • Allow user to manipulate the movement of pac-man image in the grid with the arrow keys
  • Randomly move ghosts within the grid container
  • Key Learnings

  • Work with mutiple CSS techniques to create and display game
  • Extensive DOM manipulation to dynamically create game in browser
  • Structure javascript logic to bring functionality to the game
  • Use of keycode and conditionals to allow user to move pacman with keyboard
  • Languages

  • JavaScript
  • CSS
  • HTML
  • DOM
  • Authors

    This code was inspired by Ania Kubo's Pac Man game repo, multiple parts of this code were copied from the original repo.

    Carlos Zapata

    MyGitHub

    MIT License

    Copyright (c) 2020 Ania Kubow x Carlos Zapata

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    Thanks for reading!

    About

    No description, website, or topics provided.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published