Skip to content

thiagosrpt/MIT-pacman-exercise

Repository files navigation

Move Pacman

MIT's Full Stack Development Course Assignment: Assignment Proposal is to move pacman across the screen within the Browser's window boudaries.

  • In addition to the proposed extercise I implemented the following:
  • Pacman will be limited to Browser's window limites (height and width).
  • Pacman will go around the window borders in loop.

<<<<<<< HEAD

>>>>>>> 605123295b67659d0448fae0788bd58f3cf38e42

Description

The highlights of this exercise are:

  1. To animate PacMan the fuction setInterval() was used by leveraging the images that are stored in a 2 dimentional array.

  2. window.innerWidth and window.innerHeight are used to determine the current height and width of the Browser's window - This will get updated and pacman will obey the new dimentions as the user resises the windoe.

Getting Started

  • Download and open index.html on Chrome, Edge, Firefox, or Safari.

How to Run

  • Download files
  • Open index.html on the browser of your choice.

Roadmap of future improvements

  • Make pacman move based on uses input (arrow up, down, left, right).
  • Make pacman detected objects on the screen.

License information

MIT License - Copyright (c) 2020 John Williams License link

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published