Game design
- Player character
- Stage
- Coin
- Obstacle
- Generator for coin and obstacle
- Game Controller
Create stage
- Create Cube and change Scale to (100, 1, 100)
- Change Position to (0, -0.5, 0)
- Add texture
-
Create Cube and change Position to (0, 0.5, 0)
- Create Directional Lights
- Create Directional Light
- Change Position to (0, 0, 0) and Rotation to (90, 0, 0)
- Change Intensity to 0.5
- Create Directional Light
- Change Position to (0, 0, 0) and Rotation to (-90, 0, 0)
- Change Intensity to 0.2
- Create Physic Material
- Create folder and change Name to
Physic Material
- Create Physic Material in the folder and change Name to
Default Physic Material
- Change Dynamic Friction to 0.2, Static Friction to 0.2 and Bounciness to 0
- Edit>Project Settings>Physics
- Open Physics Manager in Inspector View
- Drag and drop to
Default Physic Material
in Physics Manager
- Create folder and change Name to
- Set Camera
- Change camera Position to (0, 7, -10), Rotation to (30, 0, 0) and Field of View to 30
- Change Near to 0.3 and Far to 50 in Clipping Planes
- Organize name and hierarchy
Use character
- Import file
- Download
Character Pack: Free Samp
in Asset Store
- Download
- Deploy character
- Open DemoScene in character Asset folder
- Copy character and paste to game Scene
- Set Bounce Combine to minimum
- Change Jump Force to 6
Implement coin and obstacle
- Create coin and obstacle
- Download
Old Coin
in Asset Store
- Download
Ball Pack
in Asset Store
- Open Presentation Scene in
Old Coin
- Copy coin and paste to game Scene
- Change Scale and Rotation
- Open Material folder and change Color to yellow in Inspertor in Coin Object
- Open
Ball Pack
- copy
SpikeBall
and paste to game Scene - Change Scale and Position
- Download
ShortMoveController.js
- Add
ShortMoveController.js
toCoin
,SpikeBall
- Change Tag of character to Player
Create generator
Generator.js
- Create Empty Game Object and change Name to
Generator
- Drag and drop
Generator.js
toGenerator
- Prefab
Coin
andSpikeBall
- Drag and drop each prefabs to
coinPrefab
andspikePrefab
inGenerator.js
Messaging for getting coin and demage
- Set layer
- Create layer and change Name to
Character
andMoving Object
- Set Layer of character Game Object to
Character
- Set Layer of
Coin
andSpikeBall
Prefab toMoving Object
- Set Matrix to not collide
Charater
Layer andMoving Objects
Layer
- Check
Is Trigger
in Inspector ofC_man_1_FBX2013
Game Object of character
- Create layer and change Name to
- Create sender script
Coin.js
- Drag and drop
Coin.js
toCoin
Prefab SpikeBall.js
-
Drag and drop
SpikeBall.js
toSpikeBall
Prefab -
Create receiver script
PlayerStatus.js
Improve visual presentation
DamageEffector.js
- Drag and drop
DamageEffector.js
to character Game Object
Apply sound
- Import sound file
- Download
Sound Pack Free Pack
in Asset Store
- Download
- Click
C_man_1_FBX2013
Game Object and click Component>Audio>Audio Source -
Change Audio Clip to
buy
and uncheckPlay On Awake
in Audio Source in Inspector PlayerSoundEffector.js
- Drag and drop
PlayerSoundEffector.js
to character Game Object
PlayerSoundEffector.js
(change)
- Change demage sound