Coder Social home page Coder Social logo

xxl's Introduction

Puzzling Potions

Open-source Match-3 game done in PixiJS. The goal of this project is to provide a simple and comprehensive example of professional game development using PixiJS technologies.

This project is built on top of the following PixiJS-based libraries:

Features

  • A simple Match-3 game with special powers and effects
  • Basic navigation system to organise screens and popups
  • Asset loading management using PixiJS assets bundles
  • Persistent user settings for sound volume and game mode
  • Save & load scores and best scores
  • Animations, transitions and visual effects
  • Desktop & mobile compatible

Prerequisites

Setup & Run The Game

# Clone the repository
git clone https://github.com/pixijs/open-games

# Enter the project folder
cd ./puzzling-potions

# Install dependencies
npm install

# Start the project for development
npm run start

Building The Game

# Compile the game for publishing, outputs to `dist/`
npm run build

# Build the game for publishing and preview it locally
npm run preview

Compiling Assets

Assets are compiled whenever you start or build the project, but they are not 'watched' (yet) like regular code while developing. If you add/modify/remove any assets while developing, you have to run npm run assets manually to recompile them and make the changes to take effect.

Project Structure

./src/main.ts file

Where everything starts. Sets up the PixiJS app and initialise navigation.

./src/screens folder

All screens displayed by the app.

./src/popups folder

Modal panels that shows up on top of screens.

./src/match3 folder

The game itself, with all Match-3 related code featuring gameplay logic and piece visuals.

./src/ui folder

All UI components shared across screens.

./src/utils folder

All the shared utility code.

./raw-assets folder

Uncompiled assets grouped in folders that will be translated into assets bundles for loading.

Open Source Figma Design

View the Figma file here

In addition to making the code for this game open source, we are also making the Figma design file used to create the game available to the community. It contains all the design elements, assets, and layouts used in the game.

By making the file open source, we hope to provide an even more comprehensive learning experience for developers. You can use this as a reference for your own design projects or to see how a professional designs games.

Please note that the design file is only available as a read-only version. This means you can view and inspect the file, but you cannot make changes or use any of the assets for your own projects.

Usage

Feel free to use this project as a reference for your own game development. Use the code comments to understand how the game works and experiment by making changes to the code to see how it affects the game. This project is designed to be a starting point for your own learning and development journey with PixiJS.

Contributions

We encourage you to fork the repository and improve the game in any way you see fit. Share your improvements with the community by submitting pull requests to the original repository.

License

This project is licensed under the MIT License.

GSAP

This game uses GSAP for its animations. You can use the free version of GSAP for some commercial projects. However please check the licensing options from GreenSock.


Author Mauro


xxl's People

Contributors

hwanboo 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.