1. เตรียมโปรเจ็กส์
2. สร้าง Player
3. สร้าง Enemy
4. ใส่ Simple AI ให้ Enemy
Category Archives: Unity
[Unity3D] การควบคุม Player
1. เตรียมโปรเจ็กส์
2. ควบคุม Player ด้วย Keyboard
3. ควบคุม Player ด้วย Accelerator
4. ควบคุม Player ด้วย Touch
Continue reading
[Unity3D] การเปลี่ยน Scene
1. เตรียมโปรเจ็กส์
2. กดปุ่ม R แล้วโหลด Scene อื่น
3. เมื่อลูกบาศก์ตกพื้น ให้โหลด Scene อื่น
4. การโหลดซีนสลับกันไปมา
Balloon Bomb
1. Setting up the project
2. Player
3. Enemy
4. Boundary
5. Game Controller
6. Displaying the Score and Text
TANKS TUTORIAL
1. Scene Setup
2. Tank Creation & Control
3. Camera Control
4. Tank Health
5. Shell Creation
6. Firing Shells
7. Game Managers
การปรับแต่ง Pivots และการหมุน
สร้าง Cube ที่หมุนแบบปกติ
สร้าง Cube ที่หมุนรอบ Pivot
Note: กด v ค้างไว้เพื่อเข้าสู่ snapping mode
คำสั่งเริ่มเกมใหม่
การเริ่มเกมใหม่เดิมทีใช้คำสั่ง
Application.LoadLevel(Application.loadedLevel);
แต่ใน Unity เวอร์ชันใหม่ ให้ใช้คำสั่ง
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
Space Shooter
1: GAME SETUP, PLAYER AND CAMERA
1. Setting up the project
2. The player GameObject
3. Camera and lighting
4. Adding a background
5. Moving the player
6. Creating shots
7. Shooting Shots
Note: หลังจากเอา Mesh Collider ที่ VFX ออก ให้ใส่ Capsule Collider ที่ Bolt แต่ใน VDO ใส่ผิดที่ ไปใส่ที่ VFX
2: BOUNDARIES, HAZARDS AND ENEMIES
8. Boundary
9. Creating hazards
10. Explosions
11. Game Controller
12. Spawning Waves
3: SCORING, FINISHING AND BUILDING THE GAME
13. Audio
14. Counting points and displaying the score
15. Ending the game
4: EXTENDING SPACE SHOOTER
5. Mobile Development
- Accelerator
- Touch
ROLL-A-BALL TUTORIAL
INTRODUCTION TO ROLL-A-BALL
1. ENVIRONMENT AND PLAY
1.1 SETTING UP THE GAME
1.2 MOVING THE PLAYER
2. Camera and Play Area
2.1 Moving the Camera
2.2 Setting up the Play Area
3. Collecting, Scoring and Building the game
3.1 Creating Collectable Objects
3.2 Collecting the Pick Up Objects
3.3 Displaying the Score and Text
3.4 Building the Game