For the complete documentation index, see llms.txt. This page is also available as Markdown.

Goal Legends

Multiplayer penalty shootouts with server-run matches, persistent leaderboards, phase-driven cameras, and synchronized ball animations.

Goal Legends preview

A multiplayer penalty shootout game. Duel another player or the GL-Bot: pick left, center or right to score or save. Every round ends with a replay in the style of a TV broadcast, with the crowd reacting live.

Project information

Maintained by: Community · carlosmu

View upstream source

License: Apache-2.0 notice. Check upstream terms before reuse; code and assets may have different terms.

Key features

  • Multiplayer Server runs the matches

  • Storage for daily/all-time PvP/PvE leaderboards, and each player’s country flag.

  • Scene emotes

  • Animator-synced ball props for kicks, dives, goals and saves.

  • Virtual cameras for the gameplay views and a winner cinematic everyone sees.

  • AvatarShape crowd NPCs that react to each goal and save.

  • Particles for the fireworks

  • A portal with lights and GltfNodeModifiers that takes you to another World.

Explore the code

These links point to a specific source snapshot so the explanations remain useful as upstream development continues. They are learning references, not a security assessment.

Switch cameras with match phases

initGameplayCamera selects gameplay, winner, or standard cameras from the client match snapshot. The winner camera orbits a pivot, while spectators can choose a free camera during play.

Project context: Follow this alongside clientSnapshot, the GameState enum, and the named scene camera pivot.

Source references:

Coordinate a prop animation with the game state

tickAnimationManager starts a ball clip when the phase changes, chooses goal/save animations from the shot direction, and briefly hides the prop while changing clips. This path is specific to the bot kicker; human kickers carry the ball in their emotes.

Project context: It depends on the scene's ball model and named animation clips.

Source references:

Last updated