TonStory
TON Hackathon - 2D platformer game Telegram Mini App, farm airdrop points via fighting monsters
Install / Use
/learn @bicced/TonStoryREADME
TON Hackathon - 2D Platformer Game Telegram Mini App
2D platformer game developed for the TON Hackathon. In this game, players can farm airdrop points by fighting monsters. The game is designed to run as a Telegram Mini App.
Technologies Used
Frontend:
- Vite
- React
- Kaboom.js
Backend:
- Firestore
- Firebase Cloud Functions via Express
All components are built using TypeScript.
Environment Variables
This project uses Firebase, with built-in key management.
Getting Started
To run this project, you'll need:
- Node.js
- Firebase account
- Telegram bot (for setting up the mini app)
Installation
-
Clone the Repository:
git clone https://github.com/your-username/ton-hackathon-2d-platformer.git -
Install Dependencies:
cd ton-hackathon-2d-platformer yarn install
Setup
Firebase:
- Go to Firebase and create a new project.
- Add Firestore and set up Cloud Functions.
- Download the service account key from Firebase and save it to
functions/credentials/service-account.json. - Update
.firebasercto point to your new project.
Endpoints:
- Update
tonconnect-manifest.jsonwith your frontend URL and information. - Update
API_BASE_URLinsrc/api/index.tswith your backend URL.
Telegram Bot:
- Update the Telegram bot tokens in
functions/middleware.tsandfunctions/src/telegram/index.ts. - Store the tokens safely. I left the token exposed here because my bot is already deleted.
TON Mini App Setup
For detailed instructions on setting up a TON Mini App, please refer to the TON Mini App setup documentation.
Contributing
I welcome contributions! This app is not fully complete; it was developed over a weekend and has several areas that can be improved.
Please follow these steps to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch - Make your changes and commit:
git commit -m 'Add some feature' - Push to the branch:
git push origin feature-branch - Open a pull request.
License
This project is licensed under the Apache-2.0 license. See the LICENSE file for details.
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
