Coder Social home page Coder Social logo

0xfaeda's Introduction

0xfaeda

/ˈfādə/

A fully on chain farming game.

Demo on itch.io

Getting Started

Note: due to time constraints, the client is readonly to Starknet and does not initialize world, seed data, etc, so you have to do that manually via sozo execute.

Client

To start the client, run:

cd client && yarn && yarn dev

Engine

  1. cd engine
  2. katana --disable-fee
  3. (new terminal) sozo build && sozo migrate --name test
  4. (new terminal) torii
  5. sozo auth writer BankAccount initiate
  6. sozo auth writer BankAccount marketplace
  7. sozo execute initiate_system

Create more orders

Create demand in the market for crops (and soon to be other items). You set the price (e.g. 400) and the quantity (e.g. 5).

sozo execute create_order --calldata 400,5

Fill orders

As a farmer, you can fill orders for crops and get money in your bank account in return. In the future, you can use money to buy goods, lend to other players to gain interest, etc.

sozo execute fill_order --calldata 1

Game Objectives (prototype)

Farm crops

Screenshot 2023-09-03 at 12 45 59 PM

Using your initial plot of land, farm crops and fill orders on the marketplace. Try to make as much money as possible.

  1. Tap the grass to get started plowing the land.
  2. Tap again to plant corn seeds (more crops coming soon).
  3. Tap again to water the seeds.
  4. Watch your plant grow.
  5. Tap the grown plant to grab it.

Possible future features

  • Player avatars that move around.
  • Crafting using base crops and materials like corn and wood.
  • Live marketplace.
  • Sell different goods to other players with a live marketplace.
  • Get loans from the bank.
  • Lend money to other players and collect interest.
  • Hire other players or NPCs as farm hands.
  • Construct buildings.
  • Throw events.
  • Combat.
  • Buy, harvest, and sell livestock.

Credits

Artwork by Luis Perez, @millybiscuit_art

0xfaeda's People

Contributors

maxgiraldo avatar

Watchers

 avatar

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.