A production-ready Unity game template with Firebase integration, featuring authentication, leaderboard system, and save functionality. Perfect for kickstarting your next mobile or desktop game project.
- 🔐 Firebase Authentication - Anonymous sign-in system
- 🏆 Leaderboard System - Real-time score tracking and rankings
- 💾 Cloud Save System - Firebase Firestore integration
- 🎯 Score Management - Built-in scoring system
- 📱 Multi-Platform - Android & Desktop support
- 🎨 UI Framework - Pre-built UI scenes and components
- ⚙️ Environment Config - Easy configuration management
- Unity 2021+ - Game development platform
- C# (.NET 4.x) - Primary programming language
- TextMeshPro - Advanced text rendering
- Firebase Authentication - User authentication
- Firebase Firestore - NoSQL cloud database
- Firebase Storage - Cloud file storage
- Singleton Pattern - GameManager & Firebase managers
- Scene Management - Multi-scene workflow
- Prefab System - Reusable UI components
GameProject/
├── Assets/
│ ├── Prefabs/ # Reusable game objects
│ │ └── UI/ # UI prefabs (ScoreRow, etc.)
│ ├── Resources/ # Runtime loadable assets
│ │ └── env.txt # Environment configuration
│ ├── Scenes/ # Game scenes
│ │ ├── Welcome.unity # Entry scene
│ │ ├── MainGame.unity # Main gameplay
│ │ └── LeaderBoard.unity # Leaderboard display
│ ├── Scripts/
│ │ ├── Core/ # Core game systems
│ │ ├── Firebase/ # Firebase integration
│ │ ├── Player/ # Player-related scripts
│ │ └── UI/ # UI controllers
│ └── UI/ # UI assets and layouts
├── Backend/
│ └── Firebase/ # Firebase configuration
│ ├── firebase.json
│ ├── firebase.rules
│ └── storage.rules
└── Packages/ # Unity package dependencies
- Unity 2021 or higher
- Firebase account
- .NET 4.x runtime
-
Clone the repository
git clone <your-repo-url> cd GameProject
-
Open in Unity
- Launch Unity Hub
- Click "Add" and select the project folder
- Open the project
-
Configure Firebase
- Create a Firebase project at Firebase Console
- Download
google-services.json(Android) orGoogleService-Info.plist(iOS) - Place in
Assets/folder - Update
Backend/Firebase/serviceAccountKey.jsonwith your credentials
-
Setup Environment
- Configure
Assets/Resources/env.txtwith your Firebase settings - Update
.envfile in root directory
- Configure
-
Build & Run
- Open
Assets/Scenes/Welcome.unity - Press Play or build for your target platform
- Open
Singleton managing game state, player data, and scoring.
- FirebaseInitializer - Initializes Firebase services
- FirebaseAuthManager - Handles authentication
- FirebaseLeaderBoardManager - Manages leaderboard data
- FirebaseSaveSystem - Cloud save functionality
- WelcomeUI - Entry screen
- ScoreUI - In-game score display
- LeaderBoardUI - Leaderboard interface
Firestore security rules are configured in Backend/Firebase/firebase.rules:
- Public read access for leaderboard
- Authenticated write access for user scores
- Default Resolution: 1080x1920 (Mobile Portrait)
- API Compatibility: .NET 4.x
- Supports: Standalone, Android
{
"com.unity.textmeshpro": "3.0.6",
"com.unity.analytics": "4.5.0",
"com.unity.collab-proxy": "2.3.4"
}We welcome contributions! Follow these steps:
-
Fork the repository
- Click the "Fork" button at the top right
-
Clone your fork
git clone https://github.com/rodrigomarcelo643/GameProject.git cd GameProject -
Create a branch Use this naming convention:
feature/your-feature-name- For new featuresbugfix/issue-description- For bug fixeshotfix/critical-fix- For urgent fixesdocs/documentation-update- For documentation
git checkout -b feature/your-feature-name
-
Make your changes and commit
git add . git commit -m "feat: add your feature description"
-
Push to your fork
git push origin feature/your-feature-name
-
Create a Pull Request
- Go to the original repository
- Click "New Pull Request"
- Select your branch
- Provide a clear description of your changes
This project is available as a template for game development.
Perfect for:
- Mobile casual games
- Arcade-style games with scoring
- Multiplayer leaderboard games
- Prototyping game ideas quickly
- Learning Unity + Firebase integration