Skip to content

SpaceOz is a community-led online "play-and-earn" gaming platform created by CodeDecoders

Notifications You must be signed in to change notification settings

Code-Decoders/spaceoz-cronos

Repository files navigation

SpaceOz

SpaceOz is a community-led online "play-and-earn" gaming platform created by CodeDecoders for Gaming Metaverse Hackathon 2022.

Shoot asteroids and enemy ships to increase your score. The more you score the more tokens you will earn. With your earned SPT tokens, upgrade your ship, buy new ships and buy extra accessories for your ship.

Features

  • Ability to buy new ships and bullet upgrades
  • All modern browsers supported
  • Utilized the Tezos network for the In Game Token management
  • Simple and fun to play Game
  • Multi-Ownership of NFTs
  • Light/Dark Mode Available
  • Search for specific upgrades
  • Sort the upgrades based on their popularity, strengths and price

Deployed Smart Contracts

Demo

Live Website (https://spaceoz-cronos.netlify.app/)

Youtube Video Demo

Youtube Video

Tech Stack

Client: NEXT.JS, Moralis, Unity, WebGL, web3.js, Covalent API

Server: Solidity (Cronos Mainnet), RockX Node API

Sponsor Use Case

  • RockX: We used the RockX Access Node API to deploy and query on the Cronos Mainnet.
  • Covalent: We have used two Covalent API Endpoints, one for fetching the balances of the users (CRO & SPT) and the other for fetching all the token_ids of our Inventory NFT Contract.

Roadmap

  • Player To Earn
  • Multiple Owner Ownership
  • Multiplayer Support like a open-world a arena
  • External NFT Marketplace(crosea.io) integration
  • Security Enhancements/ Auditing in the Smart Contract
  • More upgrades and abilities
  • Improve gaming expereince
  • Improve UI/UX for the Inventory

Run Locally

Clone the project

  git clone https://github.com/Code-Decoders/spaceoz-cronos

Go to the project directory

  cd spaceoz-cronos

Install dependencies

  yarn install

Start the server

  yarn dev

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

NEXT_PUBLIC_MORALIS_APP_ID

NEXT_PUBLIC_MORALIS_DAPP_URL

NEXT_PUBLIC_ROCKX_RPC_URL

NEXT_PUBLIC_ADMIN_PRIVATE_KEY

NEXT_PUBLIC_COVALENT_API_KEY

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch
    git checkout -b feature/AmazingFeature
  3. Commit your Changes
    git commit -m 'Add some AmazingFeature'
  4. Push to the Branch
     git push origin feature/AmazingFeature
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE.md for more information.

Feedback & Contact

If you have any feedback or contact, please reach out to us at [email protected]

Authors