Skip to content

Edward-Khaymanov/Stack-Ball

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stack Ball

Build project


Clone of the Stack Ball game


Unity version: 2021.3.6f1

Used plugins:


Navigation:

Preview

❌ Shortcomings and unrealized things

  • The collision point is calculated ambiguously. Because of this, footprints do not remain at every jump.
  • Footprints are not removed from the last platform after the restart.
  • No achievement system to unlock skins.
  • No animation of the destruction of the ball when losing.
  • No animation of the expansion and compression of the platform next, after the end of the movement.
  • "Touch to restart" does not pulse on the lose screen.

How to add more skins?

STEP 1. Create material for your skin

⚠️ YOU CAN SKIP THIS STEP AND PICK DefaultBallSkin IN NEXT STEP

  1. Go to \_Project\Materials\Skins\
  2. Create a new material and select Custom/BallSkin shader
  3. Customize your material

CreateMaterial

STEP 2. CREATE AND SETUP SKIN

  1. Go to \_Project\Templates\Ball Skins\
  2. Right click => Create => Ball Skin
  3. Сustomize your skin
    • Skin - pick mesh for your skin
    • Material - pick DefaultBallSkin if you dont create you own
    • Store icon - icon which represent your skin in store
    • Use Material color
      • true - take color from material
      • false - take color from level color palette
    • Is Unlocked
      • true - you can pick this skin in store
      • false - you can't
    • Store Order - order in the store
  4. Set Addresable checkbox enabled

CreateSkin

STEP 3. SETUP ADDRESABLES

  1. In the navigation bar, click Window => Asset Management => Addresables => Groups
  2. Find your skin, right click => Simplify Addresable Names
  3. In label column select Ballskin
  4. Move skin to BallSkins group

SetupAddresables

STEP 4. Play

Play

How to add more color templates?

  1. Go to _Project\Templates\Color Palettes
  2. Right click => Create => Color Palette
  3. Customize:
    • Main - color for skin and trail, which use default material. Also progress bar color.
    • Platform - gradient for platforms. Sets colors from bottom to top.
    • Background - gradient for skybox. Sets colors from top to bottom.
  4. Set Addresable checkbox enabled. Сonfigure to use Addresables as in step 3 of adding the skin

How to add more platform templates?

⚠️ New platforms should have the same structure as this one:

PlatformStructure

  1. Add your model to _Project\Models folder.
  2. Drag your model in scene. Then work with this prefab.
  3. Add to all child objects collider component and set Is Trigger enabled. If it is a Mesh collider, then set Convex enabled.
  4. To parent object attach Platform script. It is located in _Project\Sources\Platform folder.
  5. Drag your prefab from scene to _Project\Templates\Platforms folder in project browser.
  6. Set Addresable checkbox enabled. Сonfigure to use Addresables as in step 3 of adding the skin