Skip to content

Recreation of dino game on chain, where it will stress the chain with live game data

Notifications You must be signed in to change notification settings

Ash20pk/breakchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dino Runner

A Chrome T-Rex Runner game (chrome://dino) clone built with Phaser 3 on Somnia Blockchain

Features

  • PWA support
  • Responsive design for both portrait and landscape modes
  • Touch and keyboard controls
  • Day/night cycle mechanics
  • Score tracking with current and high score displays
  • Game over screen with restart and share options
  • Modular UI components
  • Progressive difficulty system
  • Achievement system with score milestones

Project Structure

src/
├── scenes/
│   ├── game/        # Main game scene and UI management
│   └── ...          # Other game scenes
├── prefabs/
│   ├── ui/
│   │   ├── gameover/  # Game over UI components
│   │   ├── score/     # Score display components
│   │   └── ...        # Other UI components
│   └── ...          # Game object prefabs
└── config/          # Game configuration

Installation

Prerequisites

  • Node.js (v14 or higher)
  • npm (v6 or higher)

Running Locally

  1. Clone the repository
  2. Install dependencies:
    npm install
  3. Start development server:
    npm start

Building for Production

  1. Build the project:
    npm run build
  2. Serve the production build:
    npx serve dist

Technical Details

  • Built with Phaser 3 game framework
  • Uses ES6+ JavaScript
  • Modular component-based architecture
  • Event-driven game state management
  • Responsive UI scaling system
  • Progressive difficulty implementation

References

About

Recreation of dino game on chain, where it will stress the chain with live game data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published