All Projects â†’ apoorvlathey â†’ Crypto-Car-Battle

apoorvlathey / Crypto-Car-Battle

Licence: other
NFT (ERC721) based HTML5 game with Crypto Payouts to the Winner.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
solidity
1140 projects

Projects that are alternatives of or similar to Crypto-Car-Battle

Simple-Game-ERC-721-Token-Template
🔮 Very Simple ERC-721 Smart Contract Template to create your own ERC-721 Tokens on the Ethereum Blockchain, with many customizable Options 🔮
Stars: ✭ 83 (-7.78%)
Mutual labels:  nft, erc-721
use-nft
🍮 React hook to fetch metadata from any NFT.
Stars: ✭ 419 (+365.56%)
Mutual labels:  nft, erc-721
ethereum-dex
Decentralized exchange implementation for the 0xcert protocol on the Ethereum blockchain.
Stars: ✭ 18 (-80%)
Mutual labels:  nft, erc-721
Generator Phaser Plus
[🛑 DISCONTINUED] It has been a long journey but development of `generator-phaser-plus` is now over. I recommend you have a look and fork `yandeu/phaser-project-template` instead.
Stars: ✭ 148 (+64.44%)
Mutual labels:  phaser
Slither.io Clone
Learn how to make Slither.io with JavaScript and Phaser! This game clones all the core features of Slither.io, including mouse-following controls, snake collisions, food, snake growth, eyes, and more. Progress through each part of the source code with our Slither.io tutorial series.
Stars: ✭ 168 (+86.67%)
Mutual labels:  phaser
Phaser3 Typescript Project Template
A quick-start project template that uses Phaser 3, TypeScript and Rollup for bundling
Stars: ✭ 201 (+123.33%)
Mutual labels:  phaser
SecretNetwork
𝕊 The Secret Network
Stars: ✭ 466 (+417.78%)
Mutual labels:  nft
Phaser Project Template Es6
Phaser 3 - Starter Template with ES6 (ESNext features included) and webpack.
Stars: ✭ 142 (+57.78%)
Mutual labels:  phaser
atomic-markets
Generalized atomic swap marketplaces for ERC-777(advanced token standard) and ERC-721 (non-fungible tokens)
Stars: ✭ 30 (-66.67%)
Mutual labels:  erc-721
Navmesh
A plugin for path-finding in JS using navmeshes, with wrappers for Phaser 3 and Phaser 2
Stars: ✭ 186 (+106.67%)
Mutual labels:  phaser
Phaser Project Template
🕹ī¸ Phaser 3 - Starter Template with TypeScript and webpack.
Stars: ✭ 186 (+106.67%)
Mutual labels:  phaser
Phaser State Transition
State transition plugin for Phaser.js
Stars: ✭ 169 (+87.78%)
Mutual labels:  phaser
website
Loot Project website
Stars: ✭ 413 (+358.89%)
Mutual labels:  nft
Ion Phaser
A web component to use Phaser Framework with Angular, React, Vue, etc 🎮
Stars: ✭ 152 (+68.89%)
Mutual labels:  phaser
phaser-manifest-loader
Phaser Manifest Loader
Stars: ✭ 28 (-68.89%)
Mutual labels:  phaser
Phaser Collection
phaser h5å°æ¸¸æˆéĄšį›Žé›†é”Ļ
Stars: ✭ 147 (+63.33%)
Mutual labels:  phaser
MetaplexMetadata-js
Get the Metaplex Metadata from NFTs with Metaplex standard
Stars: ✭ 48 (-46.67%)
Mutual labels:  nft
Phaser Ui Tools
Functions for creating a UI in Phaser. Rows, columns, viewports, scrollbars, stuff like that.
Stars: ✭ 187 (+107.78%)
Mutual labels:  phaser
Slick Ui
Lightweight Phaser UI plugin
Stars: ✭ 184 (+104.44%)
Mutual labels:  phaser
Phaser Input
Adds input boxes to Phaser like CanvasInput, but also works for WebGL and Mobile, made for Phaser only.
Stars: ✭ 191 (+112.22%)
Mutual labels:  phaser

Crypto Car Battle

NFT (ERC721) based HTML5 game with Crypto Payouts to the Winner.

(Demo deployed on Rinkeby Network)

Try it out: Web Demo Link

Game Walkthrough

  1. Login via Metamask

  2. i) a. New Users get to Mint new Cars token. b. Confirm Metamask Transaction

ii) View your ERC-721 Cars collection

New Cars Minted start from Level 1. With each win, their level increases by 1. (Max. level: 7)

Higher Level corresponds to Higher Speeds

  1. Click on your desired car to get to the following menu:

  2. Let's Create New Battle! The Main Game Loads up: The Aim of this game is quite simple, the player has to complete the lap in minimum time possible. (Here you may observe that the car that we chose above is being used as player here.) As soon as the user cross the start line, the timer starts. User has to pass through checkpoint, so no cheating is possible. On crossing the finish line, game ends.

  3. After completing the level, we are greeted with the following screen:

  4. On clicking the "Challenge Others" button, our score gets saved in the Smart Contract. We have to deposit 0.001 Eth into this match (Explainatory figure below)

After transaction goes through, we get Battle Id:

PLAYER 2

Say some other player wants to compete in an existing battle, so the second button is clicked.

We get a list of Battles available:

Click Battle button and Deposit 0.001 Eth into the Match Pool.

After transaction confirmation, the Game Starts. Goal? To finish faster then the opponent!

After game ends:

Click the Button and Confirm Contract Interaction, to get this (in case you win) :

If we now view our cars, we observe increased level as well as new color!

TRANSFER CARS TO ANOTHER USER

Being the ERC-721 standard NFT tokens, the Cars can be traded with players and change ownership.

  1. Click on the Transfer button:

  2. Just fill-up the "Transfer To" address field and click Transfer.

  3. Confirm the Metamask popup

  4. And the token has been success fully transferred!

  5. Login to that account to view your new Car:

Project Setup

  1. Clone the Repository
  2. Deploy contracts via Remix. Save the abi and contract address in './assets/js/web3setup.js'
  3. Use live-server or any custom server (js, python, php) to serve the HTML5 Phaser Game.
  4. Visit ./index.htmlin browser to start the game.

Stack Used

  1. Phaser
  2. Web3.js
  3. HTML5, Vanilla Javascript
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].