logo

Babylon.js Market

$9.00

E-mail it

Build an AI Soccer Game with Arcade ECS

A code-along course that builds a playable AI soccer game from the real BabylonJS Market arcade components. You start with an empty pitch and add a physics ball, two AI teams that chase and shoot, goals that score, and a match director that runs kickoffs.

What We Will Cover

  • Assemble a real, running web game one component at a time
  • Every code block is the actual published arcade component source
  • Physics collisions, a possession model, and goals that update the score
  • AI that chases the ball and strikers that attack the right net
  • Ends in a playable game identical to the library scene

This code-along course rebuilds the real SoccerPitch scene from the BabylonJS Market library, one lesson at a time. Instead of writing a soccer engine, you place a pitch, a ball, two goals, and a set of AI capsules into a scene file and add a few published components to each. The components communicate over the EventBus. Across nine short lessons you render the pitch, drive your player, add physics so objects collide, track who has the ball, score in the nets, field two AI teams, teach them to chase the ball and attack the goal, and add a match director that runs kickoffs. Every code block is a verbatim slice of a published, tested arcade component. When you finish, you have a playable AI soccer match whose scene file matches the one in the library.

Was this page helpful?

We read every note — tell us what's working and what isn't.

↑↓ NavigateEnter SelectEsc CloseCtrl+K Open Search