0% found this document useful (0 votes)
52 views19 pages

Game Programming

This document contains details of 11 game programming practicals completed by Atharva Chavan in 2022-2023. It includes procedures and outputs for creating 3D objects and applying textures in Unity, implementing collision detection, creating terrains with landscapes, adding movement to objects with C# scripts, creating lights and skyboxes, and more. Each practical is summarized with the aim, steps followed, and results obtained by Atharva Chavan in developing game elements in the Unity game engine.

Uploaded by

Vikrant Mayekar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views19 pages

Game Programming

This document contains details of 11 game programming practicals completed by Atharva Chavan in 2022-2023. It includes procedures and outputs for creating 3D objects and applying textures in Unity, implementing collision detection, creating terrains with landscapes, adding movement to objects with C# scripts, creating lights and skyboxes, and more. Each practical is summarized with the aim, steps followed, and results obtained by Atharva Chavan in developing game elements in the Unity game engine.

Uploaded by

Vikrant Mayekar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 19

Game Programming Atharva Chavan

2022-2023 Roll No- 06

Index
Sr. Date Title Sign
No

1 28/07/2022 Create 3D Objects in Unity

2 28/07/2022 Apply Texture, Shader Material to the


Objects in Unity

3 03/08/2022 Implement Collision Detection in Unity

4 04/08/2022 Create Terrain, Add Soil, Water, Stone, Trees,


House and Make a Beautiful Scene

5 18/08/2022 Giving Movement (C# Script) to an object

6 18/08/2022 Create a triangle in unity

7 29/08/2022 Create a game for collision detection,


Movement & adding the game object in unity

8 08/09/2022 Types of light

9 08/09/2022 Create a Terrain and Adding Skybox in Unity

10 08/09/2022 Create a form using UI in unity


(Canvas. Text, Button, Scroll, Bar)

11 12/09/2022 Write Step for Creating Animation

Practical 1
ATHARVA CHAVAN 1
Game Programming Atharva Chavan
2022-2023 Roll No- 06

Aim: -Create 3D Object in Unity

Procedure: -
How to change Background Color of Main Camera

Insert Object in Unity

Translation, Scaling, Rotation of the object

ATHARVA CHAVAN 2
Game Programming Atharva Chavan
2022-2023 Roll No- 06
Output: -

Practical no 2
ATHARVA CHAVAN 3
Game Programming Atharva Chavan
2022-2023 Roll No- 06

Aim: - Apply Texture, Shader Material to the Objects in Unity

Procedure: -
Adding Offline Color

Click & Hold the created material and drag it to the object you want to apply to

Adding Online Texture


First download the image you want to apply from the internet and then follow
the steps

Click and drag similarly to the material previously created

ATHARVA CHAVAN 4
Game Programming Atharva Chavan
2022-2023 Roll No- 06

Output: -

ATHARVA CHAVAN 5
Game Programming Atharva Chavan
2022-2023 Roll No- 06

Practical 3
Aim: - Implement Collision Detection in Unity

Procedure: -
Select the object you want to give Collision
Go to inspector then go to add components

Click on use gravity to make object fall or click on is Kinematic to keep it fixed

Output: -

Practical 4
ATHARVA CHAVAN 6
Game Programming Atharva Chavan
2022-2023 Roll No- 06
Aim: - Create Terrain, Add Soil, Water, Trees and Make a Beautiful Scene

Procedure: -
Insert Terrain

Adding mountain, soil, water and trees to the terrain

Add trees through the asset store

Output: -

ATHARVA CHAVAN 7
Game Programming Atharva Chavan
2022-2023 Roll No- 06

Practical 5
ATHARVA CHAVAN 8
Game Programming Atharva Chavan
2022-2023 Roll No- 06
Aim: - Giving Movement (C# Script) to an object

Procedure: -
Create the script

Write the code below in Visual Studio, Save It and Attach

ATHARVA CHAVAN 9
Game Programming Atharva Chavan
2022-2023 Roll No- 06
Output: -

Practical
Aim: - Create a Triangle in Unity

ATHARVA CHAVAN 10
Game Programming Atharva Chavan
2022-2023 Roll No- 06
Procedure: -
Create Empty from Hierarchy and name it Triangle then create another
create under the first and name it.

Then Create a C# script And write the code below

Output: -

ATHARVA CHAVAN 11
Game Programming Atharva Chavan
2022-2023 Roll No- 06

Practical 7
Aim: - Create a game for collision detection, movement and
adding the game objects in Unity

ATHARVA CHAVAN 12
Game Programming Atharva Chavan
2022-2023 Roll No- 06
Procedure: -
- Ball should move with keys WSAD

Scene: -

Code: -

Output: -

ATHARVA CHAVAN 13
Game Programming Atharva Chavan
2022-2023 Roll No- 06

Practical 8
AIM: - Show Types of Lightning in Unity

ATHARVA CHAVAN 14
Game Programming Atharva Chavan
2022-2023 Roll No- 06
Procedure: -
Create a Terrain and paint mountains on the terrain

Change the lightning from Hierarchy


1. Directional Light with yellow color

2. Point Light

3. Spotlight

ATHARVA CHAVAN 15
Game Programming Atharva Chavan
2022-2023 Roll No- 06

4. Area Light

Practical 9
ATHARVA CHAVAN 16
Game Programming Atharva Chavan
2022-2023 Roll No- 06
Aim: - - Create a Terrain and adding Skybox in Unity

Procedure: -
Steps to add Skybox
1) Import image.jpeg you want to apply to skybox
2) From Inspector change texture shape to Cube

3) Change Max Size to 4096 from Inspector Click Apply


4) Create a new Material
5) Change Shader to Cube map like shown

6) Go to Lightning Settings

ATHARVA CHAVAN 17
Game Programming Atharva Chavan
2022-2023 Roll No- 06

8) Select your Cube Map like below and your cinema will be uploaded to your
Skybox

Output: -

ATHARVA CHAVAN 18
Game Programming Atharva Chavan
2022-2023 Roll No- 06

ATHARVA CHAVAN 19

You might also like