Code Monkey home page Code Monkey logo

jit-gaming's Introduction

JIT (Just-in-Time) Gaming

Welcome to JIT Gaming, where we introduce Royale, a fully on-chain PvP (Player vs. Player) game that brings competitive gaming directly to the blockchain. In Royale, players navigate characters across a dynamic map, engaging in battles when paths cross. Victorious players are rewarded with points, enhancing the competitive spirit of the game.

Game Map Example

To keep the competition fierce and engaging, Royale introduces NPC (Non-Player Character) players through Aspect, a novel extension layer developed by Artela for EVM (Ethereum Virtual Machine). This innovation ensures the game remains challenging and fun by adding NPCs each time a new game started. Aspect, acting as a coprocessor to the EVM, manages the NPC players' data and movement calculations seamlessly on-chain, without relying on off-chain components.

Explore Royale: Live Demo

Experience Royale firsthand and dive into the action at: https://jit-gaming-wje9.vercel.app/.

Build and deploy the game on your local network

Follow these steps to set up and run the game:

Step 1: Build the Contract

To compile the Royale game smart contract, execute the following command. This process generates the necessary artifacts in the contracts/build/contract directory.

npm run fcontract:build2

Step 2: Build Aspect and Deploy the Contract

This step involves building the NPC player Aspect and deploying both the game contracts and Aspects to your chosen network.

npm run aspect:build && node tests/test_tx.cjs

Upon successful execution, the output will display both the contract and aspect addresses in the console, indicating that the game is ready to play.

jit-gaming's People

Contributors

cpppppp7 avatar dumbeng avatar

Forkers

lukeninjax

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.