Skip to content

vibestorming/fruit-slicer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fruit Slicer

Fruit Slicer is a lightweight Unity project that implements a simple fruit-slicing mechanic similar to popular mobile arcade games. Fruits are spawned and the player slices them by dragging a blade across the screen. Bombs appear occasionally and must be avoided!

Project screenshot

Features

  • Swipe-based slicing using a Blade controller.
  • Fruit spawning and variety (Spawner).
  • Simple game state management (GameManager).
  • Fruit and bomb behaviors with collisions and effects.
  • Prefabs and materials for fruits, bombs, and the background.

Requirements

  • Unity 2020.3 or newer.

Project Structure

  • Assets/Scenes/ — Unity scenes (MainScene).
  • Assets/Scripts/ — Core gameplay scripts: Blade.cs, Fruit.cs, Bomb.cs, Spawner.cs, GameManager.cs.
  • Assets/Prefabs/ — Fruit, bomb, and base prefabs.
  • Assets/Materials/, Assets/Textures/, Assets/Models/ — Visual assets used by prefabs.

Quick Start

  1. Install Unity.
  2. Open Unity Hub and add the project folder: the root of this repository.
  3. Open the MainScene located in Assets/Scenes/MainScene.unity.
  4. Press Play in the editor to run the game.

Controls / How to Play

  • Click and drag the mouse to move the blade and slice fruits.
  • Avoid slicing bombs.

Important Scripts

  • Blade.cs — Handles user input, blade movement and slicing trail visuals.
  • Fruit.cs — Fruit behavior, splitting logic and score events.
  • Bomb.cs — Bomb behavior and explosion handling.
  • Spawner.cs — Controls spawning frequency, types, and spawn patterns.
  • GameManager.cs — Tracks score, lives, and overall game state.

Building

  1. Open File > Build Settings in Unity.
  2. Add Assets/Scenes/MainScene.unity to the Scenes in Build.
  3. Choose a platform and configure player settings as desired.
  4. Click Build or Build and Run.

About

Fruit Ninja clone made with Unity.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages