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.
Play the game here: https://philjonas.github.io/js-game-example/
Note: This game is best experienced on desktop browsers with keyboard controls.
- 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])
-
Clone the repository:
git clone https://github.com/pjfrontend/js-game-example.git cd js-game-example
-
Install dependencies:
yarn install
-
Start the development server:
yarn start
The application will be available at http://localhost:8080
.
To run unit tests:
yarn test
This will execute tests using Jest.
To build the application for production:
yarn build
The optimized output will be in the dist/
directory.
This project is open-source and available under the MIT License.