← All work
Tinkeroll app iconMobile Game · Marble puzzle

Tinkeroll

Tinkeroll is an iOS puzzle game in two halves: first you drop a few missing pieces into a level, then you tilt the phone and roll a weighted marble along the road you built.

RoleDesign, level design, programming and release
PlatformiPhone and iPad, iOS 18 or later
Built withSwift, SwiftUI and RealityKit
ListingApp Store ↗
Overview

A puzzle you solve with your hands and then with your wrists

The project started as Bilye (Turkish for marble) with one question written at the top of its README: is tilting the phone and placing pieces actually enjoyable? Everything after that prototype was built to keep both halves honest.

Build

A handful of pieces

Every level is a grid of floor, cliff and empty slots. You get a small inventory, such as one Path and one Bridge, and every piece in it is needed. Placing the wrong one is allowed; the marble will show you why.

Roll

Weight you can feel

When you press Go the camera lowers, your current grip becomes flat, and gravity starts following the phone. Heavy and light marbles fall at the same rate in real physics, so weight is sold through inertia, impact sound, pitch and haptics instead.

Collect

Three coins, one run

Each level hides three coins. The design rule for every world is that all three can be taken with the same build in the same run, so a three-star clear is a planning problem, not a grind.

Share

Your own levels

The Workshop gives players the same pieces used to build the game. A map can only be shared after its author clears it with all coins, and it travels as a short code or a tinkeroll:// link.

In numbers

What is in the box.

67levels in four worlds (52 at launch)
17race tracks in five styles
30marbles in the shop, plus 5 trophy marbles
11languages
Development

Six stops on the track.

From the first tilt test to online races in version 1.1. Pick a stop.

Testing one question

The first build was a technical test with a single goal: find out whether tilting and placing pieces felt good. It already had the decisions that stayed. The board never rotates; only the direction of gravity does, and the camera tilts slightly the other way to sell it. Gravity is added to velocity, so behaviour does not depend on frame rate. Three test marbles (steel, glass, cast iron) differed in mass, friction, bounce and pitch, and every feel value sat in an on-device tuning panel. A parallel design note listed track pieces, from brake pads and ice to ramps and tunnels, as an idea pool rather than a feature list.

  • One 3D scene for building and rolling; a narrow camera makes the build view read as 2D
  • Adjacent floor cells merged into larger colliders so the marble does not hop on seams
  • Touch-drag fallback for the simulator, where there is no tilt
  • Rolling sound and impacts synthesized in code until real recordings existed
Rolling: tilt to steer, Recenter to reset what counts as flat
Rolling: tilt to steer, Recenter to reset what counts as flat

Worlds checked by solvers

Levels are plain ASCII grids, which made it possible to check them with code. Small Python solvers enumerate every way to place the given pieces and confirm three things: there is exactly one intended slot choice, every piece in the inventory is needed, and all three coins can be taken in one run. The Isles taught paths and brakes in 20 levels. The second world went to two floors with ramps, lifts, funnels and a ferris wheel, and became Air Mail. The third, the Night Record Shop, added helper marbles that move by fixed rules through chutes, levers and a turning record.

  • Isles: 20 levels; Air Mail: levels 21 to 40; Night Record Shop: 12 machine levels
  • Air Mail solver models two floors, ramps, lifts, funnels and door buttons
  • Record Shop levels written first as design text (P01 to P12), each with the idea it teaches
  • A purple 'Nota Çarkı' theme was tried on world two on 20 October and then dropped
Air Mail: lifts, wheels and two floors
Air Mail: lifts, wheels and two floors
Theme test, build view of level 24 in the dropped Nota Çarkı palette
Theme test, build view of level 24 in the dropped Nota Çarkı palette
Same level in play view, camera lowered
Same level in play view, camera lowered

Workshop, share codes and a counting server

A growth plan dated 20 October ranked the next steps: main levels, then a free workshop, a save shelf and a marble test table, with sharing later. Sharing arrived sooner. A workshop map is encoded as JSON, zlib-compressed and turned into a URL-safe code, and it only gets a code once its author has cleared it with every coin. Community data lives in a CloudKit public database. Players never write totals; a small Bun script on a Hetzner server recounts likes, plays, solves, reports and best times every five minutes and writes them back.

  • Two map modes: Track (finished course, just roll) and Puzzle (pieces handed to the solver)
  • A verification hash removes approval as soon as the map or inventory changes
  • CloudKit roles let only the server identity write MapStats
  • Server set up 22 October with SSH-key access only and automatic security updates
Workshop: paint a board, place start, goal and coins, share
Workshop: paint a board, place start, goal and coins, share
The Parts box section of the website, showing the lift piece in a 3D scene
The Parts box section of the website, showing the lift piece in a 3D scene

Store page and launch

Store art went through twelve numbered versions between 21 October and 5 November. Screenshots are real simulator captures from a separate capture copy of the game, with headlines laid over the top bar, and the notes for each set record what was and was not changed. The layernative.com/tinkeroll page was built with three.js so the marble rolls down the page as you scroll, with sections for worlds, a parts box, tournaments and FAQ. Tinkeroll launched on 31 October with three worlds and 52 levels in eleven languages.

  • iPhone 6.9 inch, iPhone 6.3 inch and iPad sets, each in English and Turkish
  • Separate header and search-result art for App Store creative slots
  • Tournament screenshot revised to add a trophy badge (before and after kept)
  • Site ships three.js locally; only fonts load from Google Fonts
Build view: a few pieces, three coins, one hint
Build view: a few pieces, three coins, one hint

The first weekend tournament

Tournaments reuse the workshop format: each one is a list of ten share codes, plus a marble, a control level, an entry fee and a penalty. The first opened on Friday 6 November at 18:00 Turkish time and closed Sunday night. Everyone plays the same ten tracks with the starting marble on Normal controls, gets one entry for 10 gold, and every fall adds five seconds. Results are counted by the same server script, which also writes the leaderboard and each player's prize when the event closes.

  • Rewards: 40 gold for first, 25 for the top 10 percent, 15 for the top 25 percent, 10 for finishing
  • The champion receives a gold marble that cannot be bought
  • Leaving the app mid-run burns the entry
  • Tournaments whose id starts with test- never reach the production database
App Store in-app event card for the weekend tournament
App Store in-app event card for the weekend tournament

Version 1.1: new physics, a fourth world, racing online

The launch build leaned on RealityKit physics bodies with continuous collision detection. For 1.1 the marble got its own physics step: no RealityKit body, just up to eight substeps per frame and short raycasts in fourteen directions that push the marble out of whatever it touches. Bounces became crisper and falls off edges became real. The same update added Tick-Tock Workshop, 15 levels where dominoes set machines going, a rewind for 5 gold, achievements that award trophy marbles, and a race mode with Game Center leaderboards and online cups for up to eight players.

  • Every marble got its own material, sound, touch and squash
  • Tick-Tock dominoes follow cell-by-cell rules, so the same build always gives the same result
  • Online cups: three random tracks, scored across all three, host migrates if the host leaves
  • Bot cup when nobody is online; bots brake, crash, fall and use items
Tick-Tock Workshop world card
Tick-Tock Workshop world card
Online race screenshot, captured from a bot cup with six racers
Online race screenshot, captured from a bot cup with six racers
Baked texture atlas for the Tick-Tock Workshop room props
Baked texture atlas for the Tick-Tock Workshop room props
Before and after

One small fix, side by side.

The tournament screenshot before and after the v10 revision: a trophy badge was added above the board. Drag to compare.

Tournament screenshot, before the v10 revisionTournament screenshot, after: trophy badge added above the boardAfterBefore
On screen

Build it your way.

App Store screenshots from version 1.1.

Rolling on the Isles
Rolling on the Isles
Build view with a three-piece inventory
Build view with a three-piece inventory
Air Mail, two floors
Air Mail, two floors
Online race
Online race
World select
World select
Workshop editor
Workshop editor
Weekend tournament board
Weekend tournament board
Marble shop
Marble shop
What we built

What we built.

Tilt that forgives a shaky hand

Core Motion runs at 100 Hz through a One Euro filter, a 2.5 degree dead zone and a response curve. Recalibration averages the last 20 readings, and a retry quietly re-levels only if the phone is held still.

Three control levels

Easy, Normal and Expert change max tilt angle, sensitivity, gravity, top speed and how strongly counter-tilt brakes. The old Easy tested best with players, so it became Normal.

Marbles that play differently

Thirty shop marbles in four groups (starter, natural, mechanic, flow) each change grip, acceleration or braking. The rule: every level can be beaten with the starting marble, and expensive does not mean stronger.

Machines without randomness

Helper marbles in the Record Shop and dominoes in Tick-Tock Workshop move by cell rules, not physics. A correct build works every time, and timing puzzles keep wide margins.

Seventeen race tracks

Candy, neon, ice and volcano tracks (four each) plus a workshop rally, each roughly 500 to 620 m of sampled centreline with bumpers, hammers, sweepers, holes, fans and conveyors, plus a set piece and a risky shortcut.

Shared levels with guard rails

Maps are verified before sharing, carry their own marble so nobody needs to buy one, can allow remixes with the original author credited, and can be reported.

Under the hood

How it runs.

SwiftSwiftUIRealityKit (scene, particle trails)Custom marble physics on RealityKit raycastsCore MotionCore HapticsAVAudioEngine (synthesized effects)GameKit (matchmaking, leaderboards, achievements)CloudKit public databaseBun + TypeScript counter on HetznerRevenueCat purchases-iosGoogle Mobile Ads + UMPBlender (baked lighting)Python level solversthree.js (website)
  • Only gravity moves. The physics floor never rotates; tilt changes the gravity vector, gravity is added to velocity rather than applied as a force, and the camera rotates slightly against the tilt to show it. This keeps results independent of frame rate.
  • Since 1.1 the marble is not a RealityKit physics body. Each frame splits movement into up to eight substeps (at most half a radius each) and casts rays along six axes, four diagonals and the velocity direction, pushing the marble out of anything closer than its radius plus a 2 mm skin.
  • Record Shop rooms and race tracks use lighting baked in Blender into textures, loaded from a small binary mesh format and drawn unlit, so the phone does no shadow work while moving parts are still built in code.
  • The codebase is 85 Swift files and about 38,600 lines. Levels are ASCII grids in Swift, and Python solvers (for example w2.py for Air Mail) check unique solutions, required pieces and one-run coin routes before a level is written out.
What comes next

The road after launch.

Planned

Next race theme sketched on 5 November

a tabletop Tower Set with hex-grid floor, thin double-rail bridges, spinning funnels that drop the marble a floor, and a flipper that switches lanes