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 🙏

© 2026 – Pkg Stats / Ryan Hefner

blast-game-sdk

v1.0.6-beta

Published

<p align="left"> <img alt="Blasteens" src="public/images/blasteens.png" width="450" > </p>

Readme

Blasteens SDK

Blasteens SDK is tailored for game developers, streamlining integration with the Blast Chain and smart contracts seamlessly. Specifically designed for talented game developers unfamiliar with crypto wallet connections and smart contract deployment, it simplifies the process. Blasteens SDK aims to empower game developers to explore the potential of blockchain gaming, fostering inclusivity within the GameFi community.

Want to know more about Blasteens? visit us !!!

Table of Contents

Arcade SDK

Overview

The Blasteens Arcade module leverages Redux for efficient state management, automating leaderboard maintenance and simplifying player score handling. It ensures a smooth end-to-end gaming session, encouraging developers to embrace a recommended design pattern for consistent score integration. Following a carnival-inspired rule of providing a ticket with limited chances, each tryout concludes by showcasing the player's score and the highest score of their round.

For those pursuing more ambitious projects, the Indie-Game SDK provides enhanced flexibility and customization options within the Blasteens ecosystem.)

The following usage example is created using Phaser, a recommended tool for crafting arcade games on Blasteens Arcade.

Features

  • Designed to interact with Redux store for state management.
  • Integrates with the Blasteens Arcade system for ticketing, leaderboard, and game flow.
  • Suitable for incorporation into game development projects.
  • updateLives(): Decreases the number of lives in the game.
  • startGame(callback): Initiates the game, checks lives, and triggers a callback if lives are available; shows the ticket window otherwise.
  • endGame(callback): Ends the game, allows leaderboard sync, shows the ticket window, and triggers a callback.
  • updateHighScore(score): Updates the game's high score in the leaderboard.
  • resetGameScore(): Resets the game score in the leaderboard.
  • getLives(): Retrieves the current number of lives in the game.

Usage

The main menu is crafted for the pre-game menu experience.

// MainMenu.js
import { createGameSDK } from "blast-game-sdk"; // import the Blasteens SDK package

export default class MainMenu extends Phaser.Scene {
  constructor() {
    super("MainMenu");
    this.sdk = createGameSDK("snowmanDefender"); // use sdk to build the game
  }

  /* ...rest of the code...*/

  this.input.on("pointerdown", () => {
    this.sdk.startGame(() => { // use sdk to start the game
      this.scene.start("MainGame");
    });
  });
}

The MainGame.js file serves as the primary scene for gameplay in the game.

// MainGame.js
export default class MainGame extends Phaser.Scene {
  constructor() {
    super("MainGame");

    this.player = null;
    this.tracks = null;

    this.score = 0;
    this.infoPanel = null;

    this.scoreTimer = null;
    this.scoreText = null;
    this.sdk = createGameSDK('snowmanDefender') // SDK build the game
  }

  /* ...your game design... */

  create() {...}

  gameOver() {

    /* ...finish this round... */

    this.sdk.updateLives(); // SDK would count the remaining chances for the player
    this.sdk.updateHighScore(this.score); // SDK would also store the high score
    this.sdk.endGame(() => { }); // let SDK to handle ending the game

    this.input.once("pointerdown", () => {
      this.scene.start("MainMenu"); // the game would back to menu
    });
  }
}

Config

There should be a main file serving as a configuration file for the game. Kindly adhere to the provided format below.

// main.js
export const config = {
  title: 'Snowman Defender', // set up your game name
  type: Phaser.AUTO,
  backgroundColor: '#3366b2',
  physics: {
    default: 'arcade',
    arcade: { debug: false },
  },
  scale: {
    parent: 'gameDisplay', // ensure the parent is "gameDisplay"
    mode: Phaser.Scale.FIT,
    width: 1024,
    height: 768,
  },
  scene: [Boot, Preloader, MainMenu, MainGame], // load the game scenes
};

Ensure proper setup of the asset URL by using: this.load.setPath("../../assets/games/{your_game_key}/"); If you encounter any issues, don't hesitate to get in touch with us.

Deploy

Once your game development is complete, please compress your files into a zip archive and send it to us. The zip file should contain two folders: one for the game itself and another for assets, encompassing elements like images, fonts, music, etc. The folder should have the similar structure as shown below:

game.zip
├── game
│   ├── main.js
│   ├── Boot.js
│   ├── MainMenu.js
│   ├── Game.js
│   └── (_other components_)
└── assets
    ├── images
    │   ├── (_image files_)
    ├── sounds
    │   ├── (_sounds files_)
    └── (_other asset folders_)

Additionally, please include a game description, and remember to incorporate the game logo located in /assets/images.

Indie-Game-SDK

Stay tuned, coming soon!

License

Developed By

  • The SDK is developed by Scorpion Studio.
  • Also, special thanks to Blast !