Git Product home page Git Product logo

pacman-pwa's Introduction

Pacman PWA

Pacman game built as a Progressive Web App.

🎮 Play Game

Install & run:

Built files are stored in a dist folder. To run the game, a static server is needed.

  • With NodeJS:

    • Using yarn:
    yarn && npm start
    • Using npm:
    npm install && npm start

Webpack will run webpack-dev-server on localhost:3000 with BrowserSync on localhost:4000.

  • With Python, just run command inside dist folder:
python -m SimpleHTTPServer
  • With any static server, it should serve files from dist

Controls

Keyboard

  • SPACE - Start next level or restart game after win or game over.
  • UP - Move up
  • LEFT - Move left
  • DOWN - Move down
  • RIGHT - Move right

Touch screen

  • TAP - Start next level or restart game after win or game over.
  • SWIPE UP - Move up
  • SWIPE LEFT - Move left
  • SWIPE DOWN - Move down
  • SWIPE RIGHT - Move right

Technologies

  • Phaser game engine
  • TypeScript
  • Webpack
  • Service worker with resources caching

Features:

  • Support desktop & mobile devices
  • Works offline after resource cached
  • Support keyboard & touch controls
  • 3 levels
  • 8-bit music & sounds
  • Could be added on home screen on Android
  • Made with Love :)

pacman-pwa's People

Contributors

lpmi-13 avatar mikehodgson avatar vitaliy-bobrov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pacman-pwa's Issues

SWIPE does not work at the right time.

я установил эту игру в телефоне , но не очень хорошо работает . SWIPE не вовремя работает .

I installed this game on the phone, but it does not work very well. SWIPE does not work at the right time.

Add LICENSE.md

pacman-pwa is licensed as MIT in package.json. For proper attribution in GitHub, please add a LICENSE.md file.

MIME type ('text/html') is not executable

Hi,

I did npm install , then npm start and when I go to localhost:3000 I get a black screen, nothing happens.

In chrome console I have
Failed to load resource: the server responded with a status of 404 (Not Found)
localhost/:1 Refused to execute script from 'http://localhost:3000/pacman-pwa/pacman.bundle.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
:3000/pacman-pwa/favicon-32x32.png Failed to load resource: the server responded with a status of 404 (Not Found)
:3000/pacman-pwa/favicon-16x16.png Failed to load resource: the server responded with a status of 404 (Not Found)

Do you have any ideas on how to solve this?

Thank you in advance,

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.