https://github.com/lcanady/crypto-astroids
A Crypto Astroids game!
https://github.com/lcanady/crypto-astroids
Last synced: 2 months ago
JSON representation
A Crypto Astroids game!
- Host: GitHub
- URL: https://github.com/lcanady/crypto-astroids
- Owner: lcanady
- Created: 2024-12-10T14:40:47.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-11T06:08:46.000Z (6 months ago)
- Last Synced: 2025-02-09T19:19:32.286Z (4 months ago)
- Language: TypeScript
- Size: 3.28 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🚀 Crypto Asteroids
A blockchain-integrated Asteroids game with mobile-optimized controls and responsive scaling.
## Features
- 🎮 Classic Asteroids gameplay reimagined
- 📱 Mobile-optimized controls and display
- Responsive scaling for different screen sizes
- Touch controls optimized for mobile devices
- Tap-to-shoot mechanics for asteroids
- 🔗 Blockchain Integration
- Farcaster Frames integration
- Web3 wallet connectivity
- On-chain transactions## Getting Started
This is a [NextJS](https://nextjs.org/) + TypeScript + React app with blockchain integration.
### Prerequisites
- Node.js (>=18.0.0)
- Yarn or npm### Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/crypto-astroids.git
cd crypto-astroids
```2. Install dependencies:
```bash
yarn
# or
npm install
```3. Run the development server:
```bash
yarn dev
# or
npm run dev
```4. Open [http://localhost:3000](http://localhost:3000) in your browser to play the game.
## Game Controls
### Desktop
- Arrow keys to move
- Spacebar to shoot
- Enter to start game### Mobile
- Touch and drag anywhere to move
- Tap asteroids to shoot them
- Tap screen to start game## Technical Details
### Mobile Optimization
- Dynamic scaling based on screen size
- Minimum scale of 1.5x for mobile devices
- Optimized base size (800) for better relative sizing
- Touch-friendly controls with intuitive mechanics### Architecture
- React components for game elements
- Canvas-based rendering
- Collision detection system
- Physics engine for movement
- Mobile-specific optimizations
- Enhanced friction for better control
- Adjusted velocity limits
- Touch-based targeting system## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## License
This project is licensed under the MIT License - see the LICENSE file for details.