npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@phaser-plus/core

v0.1.8

Published

Set of tools and utils built on top of PhaserJS

Downloads

92

Readme

@phaser-plus/core

GitHub npm version npm downloads Visit website Check examples


🚀 Getting started

npx @phaser-plus/cli init my-awesome-game
cd my-awesome-game
npm install
npm start

🔰 Features

  • GameObjectPool - Manage the memory of your game by reusing all of the objects needed to draw your scene. @phaser-plus/core provides an API for object reuse. (example)

  • GameObject - GameObject is a subclass of Phaser.GameObjects.Container that has its own lifecycle and is useful for developing game objects that can be used with GameObjectPool. (example)

  • Feature - Feature is a class used to implement your game features in a way that allows them to be reusable in all of your games. (example)

  • HTMLFeature - HTMLFeature is a subclass of Feature used for implementing UI using HTML and CSS. (example)

  • Layer - @phaser-plus/core#Layer is a subclass of Feature. It has its own camera and container. The container of the layer is only visible to the camera of the layer. (example)

  • Scene - @phaser-plus/core#Scene extends Phaser.Scene and adds APIs for managing game features, object pool, service registry, and logger. (example)

  • Flow - Efficiently manage your game events, separate your collision logic, chain the events, and avoid using setTimeout or setInterval in your game. (example)

  • FeatureRegistry - Divide your game features into separate files and develop them independently. By following this API, you will be able to reuse the game features in all of your games. (example)

  • ServiceRegistry - Integrate any external service or API using the service registry and reuse the same instance of the service class in multiple scenes. (example)

  • LoggerFactory - LoggerFactory is a factory for creating fancy loggers. (example)

License

The project is licensed under MIT License