explaingit

neoxu954/animal-world-cup

Analysis updated 2026-05-18

83HTMLAudience · developerComplexity · 3/5LicenseSetup · moderate

TLDR

A browser football game where you pick an animal team, watch or control a 7v7 match, and play with friends over LAN or invite-only online rooms.

Mindmap

mindmap
  root((Animal Cup))
    What it does
      Pick animal team
      Set formation
      Watch or play 7v7 match
    Tech stack
      Next.js
      React
      Pixi.js
      Cloudflare Workers
    Play modes
      Local single player
      LAN with phone controllers
      Invite only online rooms
    Architecture
      Host authoritative simulation
      Frame streaming
      Durable Objects rooms
    Use cases
      Casual arcade football
      Party game with friends
      Multiplayer sync example

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Play a local single player match against an AI controlled animal team.

USE CASE 2

Host a same-room multiplayer match where friends' phones become wireless controllers.

USE CASE 3

Play a friend online in an invite-only room without needing an account.

USE CASE 4

Study a working example of host-authoritative multiplayer sync built on Cloudflare Durable Objects.

What is it built with?

Next.jsReactPixi.jsCloudflare Workers

How does it compare?

neoxu954/animal-world-cupisas1/forever-ai-componentselder-plinius/enthea
Stars838384
LanguageHTMLHTMLHTML
Setup difficultymoderateeasyeasy
Complexity3/52/51/5
Audiencedevelopervibe codergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Local play and LAN mode work out of the box with pnpm, but public online multiplayer requires deploying a Cloudflare Durable Object worker first.

Free to use, modify, and redistribute for any purpose, including commercial use, as long as you keep the copyright notice and state of changes.

In plain English

Animal Cup is a browser based football game where you pick your team from eight animal national squads, arrange a formation, and then either watch an AI simulate a 7 versus 7 match or take control yourself with a keyboard, touchscreen, or a phone used as a wireless gamepad. It draws inspiration from classic arcade football games, and it started as a remix of an existing project called Animal Cup on the HappySeeds platform before being rebuilt and open sourced with help from Claude Code. The game supports a few different ways to play. You can play locally by yourself, or set up a local area network match where the game runs on a shared big screen while friends' phones scan a QR code and become wireless controllers. There are also two invite only online modes for playing over the public internet: one where the host and opponent each control the match directly with keyboard or touch in their own browser, and another where both sides use a shared screen paired with a phone controller, similar to the LAN mode but working across the internet using six character room codes. Under the hood, the match simulation itself always runs on the browser of whoever created the room, described as host-authoritative, and the opponent's screen just receives a stream of match frames roughly 30 times per second rather than running its own simulation. The online room system is built on Cloudflare Workers using Durable Objects, while the web app itself is built with Next.js 15 and React 19, and the match rendering uses a pre-built Pixi.js runtime. Getting a local copy running is a matter of installing dependencies with pnpm and starting the dev server, which opens on port 13000. Separate commands exist for starting the LAN multiplayer mode or the online multiplayer mode locally, and deploying the online room service to Cloudflare requires setting an allowed origins value and pointing the built web app at the deployed Worker's URL. The README is explicit that the public online mode is meant for casual, invite only play and does not include user accounts, automatic matchmaking, leaderboards, or server-side anti-cheat protection. The project is licensed under the Apache License 2.0.

Copy-paste prompts

Prompt 1
Help me set up Animal Cup locally with pnpm and get the dev server running on port 13000.
Prompt 2
Walk me through hosting a LAN multiplayer match where phones join as controllers.
Prompt 3
Explain how Animal Cup's host-authoritative online room system works with Durable Objects.
Prompt 4
Show me the steps to deploy Animal Cup's online room service to Cloudflare Workers.

Frequently asked questions

What is animal-world-cup?

A browser football game where you pick an animal team, watch or control a 7v7 match, and play with friends over LAN or invite-only online rooms.

What language is animal-world-cup written in?

Mainly HTML. The stack also includes Next.js, React, Pixi.js.

What license does animal-world-cup use?

Free to use, modify, and redistribute for any purpose, including commercial use, as long as you keep the copyright notice and state of changes.

How hard is animal-world-cup to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is animal-world-cup for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.