Giter Site home page Giter Site logo

ethdubai2024's Introduction

Survival Bird

image

A short fun project build at ETHDubai 2024 to explore different L2 chains and their ability to support web3 gaming integrations.

About

โ›ˆ๏ธ In April 2024 Dubai experienced the craziest weather it has seen in 75+ years. The city experienced a day of intense winds and rain that led to intense disruption. For those not 'lucky' enough to be in Dubai for Token2049 and ETHDubai during this time, they can experience the next best thing with the ETH Dubai survival Simulator called Survival Bird!

๐Ÿฆ To experiment with the economics and practicalities of different L1 and L2 tech being showcased in Dubai, we build a a Flappy Bird clone that puts you in the seat of a plucky Emirates plane navigating between the skyscrapers of Dubai and the storms battering the city.

Experience winds, rain and compete to get the high score and a commemerative NFT.

The game is supported on Sepolia / XDC / Base and Morph.

๐Ÿช™ Players should deplosit 0.01 ETH / TXDC and the highest scoring player will get the entire prize pool periodically. Each 100 blocks all the entry fees will be redistributed to the highest scoring player.

How it works

image

The game front end is build in simple React and CSS, it queries via RPCs whether a player has paid to play and keeps the game state in sync with the chain by background txs. Aside from the initial deposit of funds to play, the player doesn't have to sign any other transactions. At the end of the game, the final game state is recorded directly in the game state contract and the player is minted an NFT with their score.

The background state updates occur via a quick and dirty AA like interaction with the game wallet paying for the txs on the behalf of the user while they focus on avoiding the obsticles within the game.

After a short time (set to 100 blocks as an example), the winning player can withdraw the pool of funds.

Deployed contracts

Sepolia

XDC Apothem

image

Morph

image

Base Sepolia

image

Example game end state https://sepolia.basescan.org/tx/0xacc829a11b9ba11b9e403e7453a92e450ac43a43f62ecda86eff4c36e5fef835

Deployment

ethdubai2024's People

Contributors

konradstrachan avatar saratangajalaoffl avatar

Stargazers

Homayoon Ahmadi avatar

Watchers

 avatar  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.