Game design
- Maze
- Background
- Ball
- Trap
- Goal
- Title
- Clear
Create maze and background
- Create floor
- Create Cube and change Name to
Floor
- Change Scale to (20, 1, 20)
- Create Physic Material and drag and drop to
Floor
- Change Dynamic Friction and Static Friction to 0.2
- Create Cube and change Name to
- Create Point Light
- Delete Directional Light, create Point Light
- Change Rosition to (0,12,0), Lange to 50
- Paint floor
- Save an image to
Assets
folder
- Drag and drop image to
Floor
object of hierarchy
- Save an image to
- Change position of Camera
- Change Position to (0,1,-10)
- Create background
- Chagne Position to (0,1,-10)
- Put black color on background
- Create Plane, Change name to
BG
, and change Scale to (6,1,6) and Position to (0,0,0)
Create walls and barriers
- Create outer walls
- Create Cube and change Name to
Wall
- Take same Material with
Floor
, and change Position to (0,1,-10) and Scale to (20,1,1)
- Create Prefab and chang Name to
wall
- Drag and Drop
wall
in hierarchy to Prefab
- Drag and Drop
wall
of Project to Hierarchy - Change Position
- Create barriers
- Create Prefab and change Name to
barrier
- Create Cube and change Position to (0,1,0)
- Make barriers
- Create Material
- Save a white image to
Assets
folder
- Put the texture to
barrier
- Change Color in Inspector
- Change background Position to (0,-100,0), and Scale to (100,1,100)
- Change Position of Main Camera
- Create Empty Game Object, and change Position to (0,0,0)
- Put
wall
s,floor
, andbarrier
s to under the Object
Create a ball
- Create ball
- Put Ball on start line
- Paint Ball
Create control script
GravityController.js
- Create empty game object and change Name to
Gravity Controller
-
Drag and Drop GravityController script to Gravity Controller object
Ball.js
Rig
- Tilt Rig
- Create Empty Game Object and change Name to
Tilt Rig
- Change Position to (0,0,0)
- Put Main Camera,
BG
, andPoint Light
to under theTilt Rig
- Create Empty Game Object and change Name to
TiltRig.js
-
Drag and Drop
TiltRig
Script toTilt Rig
Object -
Result
Create a trap
- Create warp zone
- Create Cube and change Name to
Trap
- Select
is Trigger
of Collider Componenet
- Create Cube and change Name to
- Create Tag
- Change Name to
ball
- Prefab
ball
and selectball
Tag in Inspector
- Change Name to
- Restart point
- Create Empty Game object and change Name to
Respawn Point
- Change Tag to
Respawn
- Create Empty Game object and change Name to
Trap.js
- Drag and Drop Script to
Trap
Object
Create a goal
- Create goal Trigger
- Create Cube and change Name to
Goal
- Select
is Trigger
of Collider in Inspector - Create Material to paint and change Name to
Goal
- Create Cube and change Name to
Goal.js
- Result
Show clear message
Goal.js
(add)
- Add font
- Drag and Drop
font
file on the Project
Goal.js
Add code in first line
- Drag and Drop
Edit OnGUI()
- Change color, font, size and alignment in Inspector
- Result
Create title scene
- Structure
- Save
Main
Scene- File>Save Scene
- Change Name to
Main
- File>Build Settings…
- Press
Add Current
- Create
Title
Scene- File> Save Scene As…
- Change name to
Title
- Add
Title
by PressAdd Current
to add inScene In Build
- Put
Title
in the Top
- Build
Title
Scene- Delete
Barrier
,Trap
andGoal
in Hierarchy View
TitleScreen.js
- Delete
- Create Empty Game Object and change Name to
Title Screen
- Drag and drop
TitleScreen.js
toTitle Screen
- Change action after game clear
Goal.js
(change)
Improve presentation
- Change lighting
Edit
>Render Settings
- Click
Ambient Light
- Set
Color
andBrightness
- Set ball Specular
- Choose
Specular
inShader
in Inspector ofBall
- Set
Shininess
- Choose
- Set flicker effect on
Trap
FlickerEffect.js
- Drag and drop
FlickerEffect.js
toTrap
prefab