Professional Documents
Culture Documents
Game Programming Journal
Game Programming Journal
Index
Sr. No. Date Project Title Signature
1
Game Programming Name: Aditya Rajguru
2022 - 2023 Roll No. 29
Practical 1
2
Game Programming Name: Aditya Rajguru
2022 - 2023 Roll No. 29
3
Game Programming Name: Aditya Rajguru
2022 - 2023 Roll No. 29
Practical 2
4
Game Programming Name: Aditya Rajguru
2022 - 2023 Roll No. 29
Practical 3
Aim: Implement Collision Detection in Unity
5
Game Programming Name: Aditya Rajguru
2022 - 2023 Roll No. 29
6
Game Programming Name: Aditya Rajguru
2022 - 2023 Roll No. 29
Practical 4
Aim – Create a Terrain
7
Game Programming Name: Aditya Rajguru
2022 - 2023 Roll No. 29
Practical 5
Aim – Adding movement (C# Script) to an object
8
Game Programming Name: Aditya Rajguru
2022 - 2023 Roll No. 29
W – Forward
S – Backwards
D – Right
A – Left
Code –
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
9
Game Programming Name: Aditya Rajguru
2022 - 2023 Roll No. 29
Practical 6
Aim – Create Triangle in Unity
Create Empty from Hierarchy and name it Triangle then
create another create under the first and name it.
Code –
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
10
Game Programming Name: Aditya Rajguru
2022 - 2023 Roll No. 29
void Update () {
}
}
OUTPUT-
11
Game Programming Name: Aditya Rajguru
2022 - 2023 Roll No. 29
Practical 7
Aim - Create a game for collision detection , movement
and adding the game objects in Unity
Conditions - Ball should move with keys ABCD
Scene -
Code -
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
12
Game Programming Name: Aditya Rajguru
2022 - 2023 Roll No. 29
if (Input.GetKey(KeyCode.A))
{
transform.Translate(0.1f, 0f, 0f);
}
if (Input.GetKey(KeyCode.B))
{
transform.Translate(-0.1f, 0f, 0f);
}
if (Input.GetKey(KeyCode.C))
{
transform.Translate(0.0f, 0f, -0.1f);
}
if (Input.GetKey(KeyCode.D))
{
transform.Translate(0.0f, 0f, 0.1f);
}
}
Output -
13