Skip to content

pjfrontend/js-game-example

 
 

Repository files navigation

JS Game Example

A simple browser-based JavaScript game built with modern web technologies. This project serves as a foundational example for creating interactive games using JavaScript, HTML5, and CSS.

🎮 Live Demo

Play the game here: https://philjonas.github.io/js-game-example/

Note: This game is best experienced on desktop browsers with keyboard controls.

🚀 Features

  • Responsive canvas-based rendering
  • Keyboard input handling
  • Modular code structure with ES6 modules
  • Bundled using Webpack
  • Linting and formatting with Prettier
  • Unit testing setup with Jest([GitHub][1], [GitHub][2])

🛠️ Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/pjfrontend/js-game-example.git
    cd js-game-example
  2. Install dependencies:

    yarn install
  3. Start the development server:

    yarn start

The application will be available at http://localhost:8080.

🧪 Running Tests

To run unit tests:

yarn test

This will execute tests using Jest.

📦 Building for Production

To build the application for production:

yarn build

The optimized output will be in the dist/ directory.

📄 License

This project is open-source and available under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.6%
  • CSS 0.4%