TikTok Live Interactive Battle Game - Complete Tutorial & Documentation
A real-time battle arena game that integrates with TikTok Live. Viewers can spawn heroes by sending gifts, and watch them battle against monsters and bandits!
Before installing Battle Arena, make sure your system meets the following requirements.
| Package | Version | Description |
|---|---|---|
Flask |
2.0+ | Web framework for the game server |
Flask-SocketIO |
5.0+ | Real-time WebSocket communication |
Flask-CORS |
3.0+ | Cross-origin resource sharing |
TikTokLive |
Latest | TikTok Live connection library |
python-socketio |
5.0+ | Socket.IO client/server |
Follow the instructions below based on your operating system.
Download and install Python from python.org. Make sure to check "Add Python to PATH" during installation.
# Verify Python installation
python --version
pip --version
Extract the Battle Arena files to your desired location (e.g., C:\Games\BattleArena).
Open Command Prompt or PowerShell in the game directory and run:
# Navigate to game directory
cd C:\Games\BattleArena
# Install required packages
pip install -r requirements.txt
# Or install TikTok connector separately
INSTALL_TIKTOK.bat
Start the game server:
# Start the server
python app.py
# Or use the batch file
START_WEB.bat
# Update package list
sudo apt update && sudo apt upgrade -y
# Install Python and pip
sudo apt install python3 python3-pip python3-venv -y
# Verify installation
python3 --version
pip3 --version
# Extract files
unzip battle-arena.zip -d ~/BattleArena
# Navigate to directory
cd ~/BattleArena
# Create virtual environment
python3 -m venv venv
# Activate virtual environment
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Make sure venv is activated
source venv/bin/activate
# Start the server
python3 app.py
# For CentOS 8/Stream/RHEL 8+
sudo dnf install python3 python3-pip -y
# For CentOS 7
sudo yum install epel-release -y
sudo yum install python3 python3-pip -y
# Verify installation
python3 --version
# Extract files
unzip battle-arena.zip -d ~/BattleArena
cd ~/BattleArena
# Create virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Allow port 5000
sudo firewall-cmd --add-port=5000/tcp --permanent
sudo firewall-cmd --reload
source venv/bin/activate
python3 app.py
# Update system
sudo pacman -Syu
# Install Python
sudo pacman -S python python-pip
# Verify
python --version
# Extract and navigate
unzip battle-arena.zip -d ~/BattleArena
cd ~/BattleArena
# Create venv and install
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
source venv/bin/activate
python app.py
Kali Linux usually comes with Python pre-installed.
# Update system
sudo apt update && sudo apt upgrade -y
# Install pip if not present
sudo apt install python3-pip python3-venv -y
# Verify
python3 --version
# Extract files
unzip battle-arena.zip -d ~/BattleArena
cd ~/BattleArena
# Setup virtual environment
python3 -m venv venv
source venv/bin/activate
# Install requirements
pip install -r requirements.txt
source venv/bin/activate
python3 app.py
Learn how to configure and use Battle Arena effectively.
Open the Control Panel at http://localhost:5000/admin and enter your TikTok username to connect.
Access the game at http://localhost:5000 and use it as a browser source in OBS.
Configure which heroes spawn for each gift in the Gift Mapping Editor.
Customize hero stats, monster stats, audio, and more from the Control Panel.
Reset heroes, trigger events, control music
Spawn heroes manually for testing
Test gift spawns without TikTok
Explore all the features available in Battle Arena.
Ninja, Medieval, Arabian, Samurai, Spartan, Persian, Templar, and Mongolian warriors.
Periodic monster waves that heroes must defeat. Kill monsters to tame them!
Bandit attacks that challenge your heroes. Defeat them for bonus points!
Real-time leaderboard showing top viewers by damage and kills.
Upload your own background music and sound effects.
Instant synchronization between TikTok gifts and game spawns.
Battle Arena Mini Game
Copyright © 2024-2026 Arizu Studio. All rights reserved.
By using this software, you agree to the following terms:
Battle Arena is an independent project and is not affiliated with, endorsed by, or sponsored by TikTok or ByteDance. TikTok is a trademark of ByteDance Ltd. Use of TikTok Live features is subject to TikTok's own terms and policies.
This project uses the following open source libraries:
If you need help or have questions:
Contact Support