https://github.com/bugramurat/haxball-video-player-bot
Haxball video player bot
https://github.com/bugramurat/haxball-video-player-bot
haxball haxball-bot haxball-game haxball-headless haxballbot haxballjs javascript nodejs
Last synced: 6 months ago
JSON representation
Haxball video player bot
- Host: GitHub
- URL: https://github.com/bugramurat/haxball-video-player-bot
- Owner: bugramurat
- Created: 2025-01-23T22:43:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-23T23:48:37.000Z (over 1 year ago)
- Last Synced: 2025-04-13T00:53:23.943Z (over 1 year ago)
- Topics: haxball, haxball-bot, haxball-game, haxball-headless, haxballbot, haxballjs, javascript, nodejs
- Language: Handlebars
- Homepage:
- Size: 504 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Haxball Video Player Bot
Haxball video player bot with Haxball Headless API
You can upload **your video** to *project-folder/set-up-video* as *video.mp4* file but videos longer than 2 minutes take longer to process in the *frames2txt.js* file *(There is an example video at *project-folder/set-up-video*)*
Use **farthest camera angle** for *the best experience* (***1 key** on the keyboard*). Because of *Haxball's variable limit for stadium elements (max 255 discs)*, video player has **19x13 resolution (247 pixels)**
## Preview

## How to run
Run this to **download** this project: *(or download manually and go to your project-folder path)*
```
git clone https://github.com/bugramurat/haxball-video-player-bot.git
cd haxball-video-player-bot/set-up-video
```
Install dependecies for *frames2txt.js*:
```
npm install
```
Run the script before bot for setting up video:
```
node frames2txt.js
```
Return to *project-folder* path and install dependecies for *video-player-bot.js* too:
```
cd ..
npm install
```
**Paste your token** here in *video_player_bot.js* file to run this bot *(https://www.haxball.com/headlesstoken)*
```
const HEADLESS_TOKEN = "insert_your_headless_haxball_token_here"
```
Run the bot:
```
node video_player_bot.js
```
(You can adjust your room's name and other settings in *video_player_bot.js* file)
## Usage
Simply **start** the game to **start** *video player* and **stop** the game to **stop** *video player*
## Libraries
- haxball.js
*For further information: bugramurat4444@gmail.com or discord: buggyraz*