Why Nostr? What is Njump?
2023-07-05 18:08:20

izzi on Nostr: A Proof of Concept game that uses nostr to reacts to events that happens there ...

A Proof of Concept game that uses nostr to reacts to events that happens there (reactions, group channels created) and let players occupy positions in a empty space and shoot others.

The world is done using Enable3d and Phaser

Everything in the game uses nostr to send messages and react to it. The NIPs are used to define what event game must render.

Kind 0 (Profiles) loads profile’s base, the npub is converted to bytes to have its position defined;

Kind 12301 (Replaceable): It is tagged with ‘nostr-space-position’ to allow player change his base’s position;

Kind 7 (Reactions): Any reaction to a post in nostr will render “antimatter” particles (red small sphere moving in high velocity) that kills players if touches him;

Kind 40 (Group Channel Creation): Groups created in nostr are rendered as a very big black sphere that represents black holes (player dies if touches it);

Kind 29211 (Ephemeral): This is tagged with ‘nostr-space-movement’ to show current player’s position to others players in the game or tagged with ‘nostr-space-shoot’ to trigger shoot from player that sent message;

When player log in with nostr, a message is sent to https://www.nostrchat.io/channel/6afddc25a8ed486b0c1e6e556077a9eef3e0d7236014b891495ae20d557a2346 to show that player entered the game.

There are no 3d assets to represent objects in the game yet, at the moment they are all simple cubes, 2d squares (players) or spheres but in future a game designer can join the team to help doing it.

The main idea of this project is to explore nostr usage in a game, in future taproot assets (taro) can also be explored (regtest).

Github: https://github.com/bongatores/nostrSpace

Author Public Key
npub1a7n602h0lar70n6as3avvha6wz2zg5ydq0vy9mv9mw8nupfjvqjqdygthj