Hex Mining Game is an interactive web-based game where players can mine resources (ETH and TON) from a hexagonal grid. Players can purchase tools to improve their mining efficiency and manage their in-game balance.
This project was bootstrapped with Vite, React, and TypeScript.
- Hexagonal grid-based mining field
- Resource mining (ETH and TON)
- Tool shop with various mining tools
- User balance management
- Real-time balance updates via WebSocket
- Responsive design for various screen sizes
- React
- TypeScript
- Vite
- Zustand (for state management)
- Firebase (Firestore for database)
- Tailwind CSS (for styling)
- WebSocket (for real-time balance updates)
- Clone the repository:
- Install dependencies: npm install
- Set up your Firebase project and add your configuration to
.env
- Start the development server: npm run dev (Web Telegram t.me/App_Find_BTC_bot/FindBTC_App)
- Connect your wallet or authenticate with Telegram
- Explore the hexagonal grid and click on cells to mine resources
- Visit the shop to purchase mining tools
- Use tools to increase mining efficiency
- Monitor your balance in real-time
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level
parserOptions
property like this:
export default tseslint.config({
languageOptions: {
// other options...
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
});