Skip to content

2026 · Game design and engineering

Candle Cross

Candle Cross is a browser dirt-bike game where nobody draws the terrain: it's generated from real weekly Bitcoin candles pulled from Binance.

Stack

  • Vanilla JS
  • Canvas 2D
  • Binance API
  • Vercel

Links

The problem

Market data is jagged: candles are steps, and steps aren't a track — a bike simply jams on every corner. The challenge was turning a real time series into continuous, fun-to-ride terrain without losing the relationship to the underlying data, and still fitting the size budget of web game portals.

The approach

Catmull-Rom spline interpolation over the closes, which passes exactly through the original points while producing smooth curves between them — the chart stays the chart, and becomes a track. I chose plain JavaScript over Unity: Unity web builds are too heavy for Poki and CrazyGames, and a 2D game with simple physics doesn't justify a whole engine. Physics, collision and rendering are mine, with every constant centralized in a single config file for fast balancing.

What happened

Version 0.2 is running, with combo multipliers and perfect-landing detection, Hill Climb Racing-style air control, and a package light enough for portal submission. The project also became the visual seed of my portfolio: the 3D scene on this site's home page uses the same idea of turning candles into relief.

Project facts

Terrain generated from real weekly BTC candles (Binance)

Catmull-Rom spline turning steps into a rideable track

Vanilla JS instead of Unity, due to web portal build size

Hand-written physics, collision and rendering; constants in one file

v0.2 with combo multipliers and perfect-landing detection

Tell me what you want to build.

A 30-minute conversation about the problem usually settles more than three email threads about technology. If it isn't for me, I'll say so right away.

andre@andrebordignon.dev · Brasília, Brasil

Candle Cross — the Bitcoin chart became a dirt track