Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
GamesNovember 22, 20265 min read

How to make a game like Fruit Ninja

A slicing game is a finger trail tested against flying circles. The hit test takes an afternoon; the launch arcs, waves and juice make it a game.

Startbase Team
Editorial ink illustration of paper lanterns tossed above a rooftop, one cut in half by a curved ink stroke, the stroke in ember orange

Key takeaways

  • Test the line between consecutive touch samples against each object, not just the touch points, or fast swipes pass straight through.
  • Launch objects from below with speeds chosen so they peak at a set height; designing waves is choosing heights, spreads and timing.
  • Slicing feels good because of the response: halves that fly apart, a splash, a sound and a combo count. Budget time for it.

Fruit Ninja is the classic swipe-to-slice arcade game: objects are tossed up from the bottom of the screen in arcs, you swipe your finger to slice them in half, slicing several in one stroke gives a combo, and touching a bomb or letting too many fall unsliced ends the round. The pieces to build are a swipe trail, a hit test that catches fast swipes, launch physics, a wave spawner and a lot of satisfying feedback. Fruit Ninja’s name, its characters, art, sounds and specific modes belong to its owner. The swipe-slicing genre is open, and a fresh object to slice plus one rule twist is enough to make it yours.

Why slicing feels so good

  • The gesture is physical. A swipe is a motion your arm already understands. The game rewards you for doing something that feels like cutting.
  • Instant, generous feedback. Every slice produces a split, a splash, a sound. Success is constant.
  • Greed versus safety. A long swipe through a crowd scores a combo but risks clipping a bomb. Every wave asks how greedy you will be.
  • Short rounds, a minute or two, ideal for a phone.

The swipe and the hit test

Record the touch position every frame (or every pointer event) into a short list of recent points, and drop points older than about 0.15 to 0.25 seconds. That list is both the visible trail and the blade.

  • Segment test: for each pair of consecutive points, test the line segment against each object’s circle (closest point on the segment to the circle’s center, compared with the radius). A fast swipe can move 100 pixels between frames; testing only points would miss objects in between.
  • Minimum speed: only cut when the finger is moving faster than a threshold (roughly 400 to 800 pixels per second as a starting point). Resting a finger on the screen should not slice anything.
  • Cut angle: remember the segment’s direction at the moment of the hit. The object splits along that line, so halves fly apart perpendicular to the swipe.
  • Multi-touch: track each finger as its own blade. Two-handed play is fun on tablets.

Draw the trail as a ribbon that tapers and fades from the newest point to the oldest. A bright core with a softer glow reads well over any background. The mobile touch controls guide covers pointer events and preventing the page from scrolling under the player’s finger.

Launch arcs and waves

Objects are launched from just below the bottom edge with an upward and slight sideways velocity, then fall under gravity. Choose the peak height you want and derive the launch speed: upward speed = √(2 × gravity × peak height). Peaks between 55% and 85% of the screen height keep objects in the comfortable slicing zone. Add a small random spin for life.

A wave is a short script: how many objects, launched over what interval, from where, aimed where, and whether one is a bomb. Example wave types:

  • Single: one object, center. Good for the opening seconds.
  • Fan: three to five objects launched together from the center, spreading outward. Built for combos.
  • Stagger: objects from alternating sides, 0.3 seconds apart.
  • Trap: a fan with a bomb in the middle, so a greedy straight swipe fails.

A spawner picks waves from a pool weighted by elapsed time: singles and pairs early, fans and traps later, with short gaps between waves for breathing. The enemy waves and spawners guide covers weighted wave tables.

Scoring, combos and failure

  • Base points: one per object sliced.
  • Combo: three or more objects in a single continuous stroke (count hits until the finger lifts or pauses) earn a bonus equal to the combo size, with a pop-up label. The score multipliers guide covers making combos readable.
  • Strikes: in an endless mode, each object that falls unsliced off the bottom is a strike; three strikes end the round. Bombs end it instantly, with a short slow-motion beat before the result.
  • Timed mode: 60 seconds, no strikes, bombs cost points instead of ending the round. A good second mode because it removes the fear and rewards pure speed.

Making each slice satisfying

This genre is about 80% feedback. When an object is cut:

  1. 01Replace it with two halves, each with half the object’s velocity plus a push apart along the cut normal and opposite spins.
  2. 02Burst particles in the object’s color, and leave a splash decal on the background that fades over a few seconds.
  3. 03Play a slice sound with slight random pitch variation (plus or minus about 10%) so rapid slices do not sound mechanical.
  4. 04For big combos, freeze the action for a few frames and shake the screen slightly.

The juice guide and the sound effects guide go deeper on hit-stop, shake and layered sounds.

Three twists that make it yours

  1. 01Direction matters. Each object shows an arrow and only splits when sliced in that direction. Wrong-way slices bounce off. Suddenly every swipe is a decision.
  2. 02Sort, do not just slice. Objects come in two kinds, and slicing a kind sends its halves to its side of the screen. Halves landing on the wrong side cost points.
  3. 03Slice to build. Halves fall into a basket at the bottom, and specific sets of halves (two blue and one gold) complete orders for bonus points, turning chaos into a light puzzle.

A brief for an original slicing game

A swipe slicing arcade game called Lantern Night, portrait, phones and desktop (mouse drag works too). Paper lanterns in five colors are tossed up from below a night-time rooftop, peaking between 55% and 85% of screen height, with a gentle spin. Swipe to cut them: the blade is the last 0.2 seconds of the finger trail, drawn as a tapering glowing ribbon, and cuts only count above a minimum swipe speed. Test each trail segment against each lantern’s circle so fast swipes never miss. Cut lanterns split along the swipe into two halves that drift apart, with a puff of colored sparks and a soft paper rip sound with random pitch. Twist: some lanterns carry a painted arrow and only split when cut in that direction; the wrong direction makes them bob away. Fireworks rockets are mixed in: cutting one ends the round after a short slow-motion beat. Three or more lanterns in one stroke is a combo worth its size in bonus points. Endless mode with three misses, plus a 60-second timed mode where rockets only cost points. Waves come from a weighted table (singles early, fans and traps later). Multi-touch supported. Best scores saved on the device.

Where slicing games go wrong

  • The page scrolls instead of slicing. Block default touch behavior on the game canvas, or phones will pan and zoom mid-swipe.
  • Objects launched off screen. Clamp sideways speed so every arc stays inside the visible area; an object that leaves the side and counts as a miss feels like cheating.
  • Bombs that are hard to read. A bomb must differ in shape and color from every sliceable object, not just carry a small icon.
  • Too much on screen too soon. Keep the first 20 seconds to singles and pairs so new players learn the gesture before the fans arrive.

Frequently asked questions

How do slicing games detect a swipe hitting an object?

They keep a short list of recent touch points and test the line segment between each pair of consecutive points against each object’s circle, so fast swipes that skip over an object between frames still hit it.

How do I make objects fly to the right height?

Pick the peak height, then launch with an upward speed equal to the square root of 2 × gravity × peak height. Add a small sideways speed for spread.

Can I make a fruit slicing game?

Slicing fruit as a general idea appears in many games, but do not copy the original’s name, characters, art, sounds or exact modes. A distinct theme and at least one new rule will make your game stand out more anyway.

Does a slicing game work on desktop?

Yes, with mouse drag as the blade. It plays best on touch screens, so test on a phone early and make sure swipes do not scroll the page.

On this page

  • Why slicing feels so good
  • The swipe and the hit test
  • Launch arcs and waves
  • Scoring, combos and failure
  • Making each slice satisfying
  • Three twists that make it yours
  • A brief for an original slicing game
  • Where slicing games go wrong

Keep reading

More in Games
Editorial ink illustration of a wooden toy figure jumping between two stone ledges, the coin above the gap in ember orange
GamesNovember 22, 2026

How to Make a Platformer Game with AI

A platformer lives or dies on its jump. Here are the numbers behind a jump that feels fair, how to build levels around it, and how to get an AI agent to build both.

7 min read
Editorial ink illustration of a tin wind-up runner on track pieces laid down ahead of it, the next track piece in ember orange
GamesNovember 22, 2026

How to Make an Endless Runner Game

An endless runner is a level generator with a character on top. Get the chunks, the speed curve and the controls right and the rest is art.

6 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.