Giter VIP home page Giter VIP logo

pacmen-factory's Introduction

pacmen-factory

'Pacmen-factory' is a fun project to make number of Pac-Man images move continuously on the screen.

What I Learned

  • Using setTimeout() for continuous movement of Pac-Man
  • Detecting screen edges
  • Stopping setTimeout()

PacMan

Description

  • It Generates one or more Pac-Man images.When the game was started each Pac-man starts to move continuously from random positions in random velocity. When it detect the screen edges it chages its direction and starts to move again.At any point in time one can stop the Pac-Man movement by clicking Stop button.

Installation

  • Download this project in your working directory through,
    git clone https://github.com/vanisbala/pacmen-factory
  • Open pacman-factory project in VScode, go to index.html, right click and select 'open in default browser'.
  • The project output will open in your browser.
  • Click on Add pacman button to add one or more pacman images
  • Click on start game button to make them move
  • Click on stop button to stop the movement of Pac-Man images

pacmen-factory demo

Built with

Deployed Link

Roadmap

  • Getting inputs from the user about how many pacman(with size and velocity) to generate and how long to sustain.
  • Making a wall and if any of the pac-man hits the wall while moving then it disappears.

Support

License

Credits

Thanks to MITxPRO for giving me the opportunity to work on this project.

pacmen-factory's People

Contributors

vanisbala avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.