By Lawrence
5 minutes
5 minutes
The pitch is lit, but nothing can step onto it yet. There is no player. The keyboard controls nothing.
In this lesson, WASD will drive a capsule across the grass, and the camera will follow it. Four components do this work, and none of them knows about the others. The keys turn into named intents. A bridge turns those into a move vector. A mover walks the capsule. The camera follows. Each one talks only over the bus.
Add the player to the scene
Add one entity, tagged player. It carries the whole chain, from input to camera:
src/scenes/soccer.json
Continue reading
Unlock the Full Course
Every lesson, the runnable examples, and the finished build — yours to keep.
$9one-time
=