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.
- Vite
- React
- Kaboom.js
- Firestore
- Firebase Cloud Functions via Express
All components are built using TypeScript.
This project uses Firebase, with built-in key management.
To run this project, you'll need:
- Node.js
- Firebase account
- Telegram bot (for setting up the mini app)
-
Clone the Repository:
git clone https://github.com/your-username/ton-hackathon-2d-platformer.git
-
Install Dependencies:
cd ton-hackathon-2d-platformer yarn install
- 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
.firebaserc
to point to your new project.
- Update
tonconnect-manifest.json
with your frontend URL and information. - Update
API_BASE_URL
insrc/api/index.ts
with your backend URL.
- Update the Telegram bot tokens in
functions/middleware.ts
andfunctions/src/telegram/index.ts
. - Store the tokens safely. I left the token exposed here because my bot is already deleted.
For detailed instructions on setting up a TON Mini App, please refer to the TON Mini App setup documentation.
I welcome contributions! This app is not fully complete; it was developed over a weekend and has several areas that can be improved.
- 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.
This project is licensed under the Apache-2.0 license. See the LICENSE file for details.