← Back to Catalog
🏎️
ACCELERATOR

Fabric Racing Game

HTML5 multiplayer racing game for 4 drivers with real-time telemetry streaming

Difficulty ⭐⭐ Intermediate
Deploy Time ~3 min
Complete Time ~30 min
Status ✅ Available

📋 Overview

Race against 3 AI drivers in an HTML5 game while streaming real-time telemetry to Microsoft Fabric. Learn how to build Custom Endpoints, configure JSON mapping, and create live dashboards - all while having fun!

🔧 Workloads

Real-Time Intelligence

📦 Fabric Items Deployed

🏠 Eventhouse RacingEventhouse
📊 KQL Database RaceData
🌊 Eventstream RacingStream
📓 Notebook Racing_Game
📓 Notebook Race_Simulator
📓 Notebook Race_Dashboard

🎯 Scenarios

Streaming Gaming Real-Time Dashboard

🚀 Quick Start

Open a Fabric Notebook and run:

# Cell 1 - Install
%pip install -q fabric-arcade
# Cell 2 - Deploy
from fabric_arcade import arcade

arcade.install("fabric-racing-game")

That's it! A README notebook with complete instructions will be created automatically.

⚙️ Post-Deploy Configuration

1

Configure Eventstream

Open RacingEventstream in your workspace and click Edit.

  • Add a Custom Endpoint Source named TelemetryInput
  • Add a KQL Database DestinationRacingEventhouseRacingDBTelemetry
  • Connect Source to Destination
  • Click Publish
2

Copy Eventstream URL

After publishing, click on the Custom Endpoint Source and copy the Ingestion URL.

3

Start the Game

Open the RacingGame_Play notebook, paste the Eventstream URL, and run all cells.

4

Play! 🎮

  • WASD or Arrow Keys: Steer and accelerate
  • Space: Brake
  • Invite up to 4 players for multiplayer races!

✨ What You'll Learn

🏛️ Architecture

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│  HTML5 Racing   │────▶│   Eventstream   │────▶│   Eventhouse    │
│     Game        │     │  (Custom EP)    │     │  (KQL Database) │
└─────────────────┘     └─────────────────┘     └─────────────────┘
                                                        │
                                                        ▼
                                                ┌─────────────────┐
                                                │  Race Dashboard │
                                                │   (KQL Queries) │
                                                └─────────────────┘
                

📋 Prerequisites

▶ START NOW