Sagar Web Games

Home › Devlog

LiDAR wall games: how a thrown ball becomes a tap

2026-11-29 · Sagar Studio

A LiDAR wall game is made for events such as shopping centre activations and company days. A projector throws the game onto a wall, players stand a few metres back and throw soft balls at it, and a sensor in front of the wall reports where each ball lands. The crowd watches the wall, so the game has to be readable from across a room. We have 18 of these games, and every one of them also runs on an ordinary phone or computer.

A ball is just a touch

The key idea is that the sensor does not need a special language. A LiDAR wall sensor reports each ball impact as a short touch on the projected screen, through the same kind of touch driver a touch monitor uses. To a web page that arrives as a pointer press. A mouse click or a finger on a phone arrives the same way, so one input path serves the real wall, a laptop at a demo and a phone at home.

Our code listens for presses and turns each one into a hit with a few useful facts: the point on the screen, the matching point in the game world, a position from 0 to 1 across and up the wall, which half of the wall it landed on, and the time. A game asks for the hits since the last frame once per frame and gets back a list.

A soft ball squashes against the wall and can bounce, and the sensor may report several touches for what was one throw. So presses that arrive within 160 milliseconds of each other and within about 6 percent of the wall's width are merged into one hit. Presses on a button, such as the play button on a title screen, are left for the button, so a ball thrown at PLAY starts the game.

Because a thrown ball only lands, our wall games never rely on dragging, holding or swiping. Everything a player can do is a single point on the wall. There is also a small helper that injects a hit at a chosen position, which is how our tests throw balls without anyone at the wall.

Designing for a wall seen from five metres

The brief for these games sets the scene: a wall about 6 by 4 metres, a landscape 16:9 picture, players four to six metres away. That drives the design. Targets and text are large and high in contrast, the score and the timer must be readable from the back of the crowd, and nothing important sits at the very edge, where the projector picture can be cropped or covered.

Every ball leaves a marker where it lands, whether it hit a target or not, so a thrower learns where their throws go. A hit on a target gets a burst, a shake, a sound and a score pop. Each round starts with a 3-2-1 countdown and ends with a clear TIME! before the result screen. Rounds are short; a Balloon Burst round lasts 90 seconds. Sounds are synthesised and deliberately bold, because venues are loud.

Playing against the computer

Each game offers solo, versus the computer and two players. A wall has no second controller, so the two-player mode splits the wall: player one throws at the left half and player two at the right, and balls landing in the same instant on both halves count for both players.

The computer player does not cheat by reaching into the game. It throws drawn balls: a ball flies in from off-screen, lands at a chosen point and leaves the same impact marker as a real throw. Skill is how well it aims. The shared wall code picks a target point with a random error whose size shrinks from easy to medium to hard, and for moving targets it aims a little ahead of where the target is, with hard leading the target more accurately. Between throws it waits a randomised interval, so it does not fire like a machine.

When nobody is playing

At an event the wall is often left alone. After 40 seconds with no hits on the title or result screen, the game starts a demo round, computer against computer, behind a banner that reads THROW A BALL TO PLAY. Any hit ends the demo and returns to the title. Operators can also use the keyboard: Space or Enter to start or continue, Escape to pause, and R to go back to the title.

The event leaderboard

An activation usually runs on one computer all day, so the leaderboard is simple. After each round the score is added to a list of today's best for that game, kept in the browser's own storage on that machine and keyed by the game and the date. The title screen shows today's top five, and the result screen shows a line such as #2 TODAY when a score makes the board. Ties are ranked by who got there first.

That design has no accounts and sends nothing anywhere, which is what you want on a stranger's wall. The price is that the board lives in one browser: it does not travel between machines, and clearing the browser's data clears it.

Trying it on the web

On this site, a tap or a click stands in for the ball, and you can practise for an event or just play. Two good places to start are Balloon Burst and Hoop Shootout.

About Balloon Burst About Hoop Shootout