Running Sheep is a simple browser-based game built using Pixi.js, GSAP, and TypeScript. The game features three main scenes: loading, menu, and game level. Players control a character, guiding it through obstacles to reach the finish line.
Project started from typescript pixi webpack configuration template.
https://github.com/ltruchot/seed-pixi-typescript.git
To run the game locally, follow these steps:
-
Clone the repository:
git clone https://github.com/andreypotkas/running-sheep-game.git
-
Navigate to the project directory:
cd running-sheep-game
-
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open your browser and navigate to
http://localhost:8080
to play the game.
- Pixi.js: A fast and lightweight 2D rendering library.
- GSAP (GreenSock Animation Platform): A JavaScript animation library.
- TypeScript: A statically typed superset of JavaScript that compiles to plain JavaScript.
The loading scene displays a progress bar while the game's assets are being loaded. Once the loading is complete, the game transitions to the main menu.
The menu scene provides options to start the game, toggle fullscreen mode, and view the best score.
In the game level scene, players control a character to navigate through obstacles and reach the finish line.
The game supports fullscreen mode, allowing players to enjoy an immersive gaming experience.