Clone of the Stack Ball game
Unity version: 2021.3.6f1
Used plugins:
Navigation:
- Preview
- Shortcomings and unrealized things
- How to add more skins?
- How to add more color templates?
- How to add more platform templates?
- 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.
DefaultBallSkin
IN NEXT STEP
- Go to
\_Project\Materials\Skins\
- Create a new material and select
Custom/BallSkin
shader - Customize your material
- Go to
\_Project\Templates\Ball Skins\
- Right click => Create => Ball Skin
- С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 materialfalse
- take color from level color palette
- Is Unlocked
true
- you can pick this skin in storefalse
- you can't
- Store Order - order in the store
- Set Addresable checkbox enabled
- In the navigation bar, click Window => Asset Management => Addresables => Groups
- Find your skin, right click => Simplify Addresable Names
- In label column select
Ballskin
- Move skin to
BallSkins
group
- Go to
_Project\Templates\Color Palettes
- Right click => Create => Color Palette
- 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.
- Set Addresable checkbox enabled. Сonfigure to use Addresables as in step 3 of adding the skin
- Add your model to
_Project\Models
folder. - Drag your model in scene. Then work with this prefab.
- Add to all child objects collider component and set
Is Trigger
enabled. If it is aMesh collider
, then setConvex
enabled. - To parent object attach
Platform
script. It is located in_Project\Sources\Platform
folder. - Drag your prefab from scene to
_Project\Templates\Platforms
folder in project browser. - Set Addresable checkbox enabled. Сonfigure to use Addresables as in step 3 of adding the skin