BSD 2307 MOBILE GAMING PROGRAMMING.

UNIVERSITY EXAMINATIONS: 2021/2022
EXAMINATION FOR THE DEGREES OF BACHELOR OF SCIENCE IN
APPLIED COMPUTING/ BACHELOR OF SCIENCE IN SOFTWARE
DEVELOPMENT
BSD 2307: MOBILE GAMING PROGRAMMING
FULLTIME
DATE: DECEMBER, 2021 TIME: 2 HOURS
INSTRUCTIONS: QUESTION ONE IS COMPULSORY, CHOOSE TWO OTHER
QUESTIONS

QUESTION ONE (20 Marks) Compulsory
a) Define the term game object. (1 Mark)
b) Describe a scene as used in game in game programming. (2Marks)
c) State any three components of a scene in a game. (3 Marks)


d) Explain the activities that take place in the following phases of game development.
(3 Marks)
i. Pre Production
ii. Production
iii. Post Production
e) A student has downloaded the image below from Unity Asset Store. He intends to create
with it a game terrain of a wall with holes through which a rat can go in and out.
Describe how the above image will be prepared in terms of pixel dimensions required to
make this image suitable for use in a Unity terrain. (3 Marks)
f) Assume that the holes will be at the middle section of the wall separated by a small
distance and that the rat will move in and out of each hole, all the time moving in a
horizontal direction parallel to the ground. The game ends when the rat false to the
ground.
i. Explain the procedure of getting the rat as a player on the terrain. (3 Marks)
ii. Which two attributes will you set to ensure that the rat falls to the ground.
(2 Marks)
iii. Write code snippet (in C#) to implement the falling of the rat. (3 Marks)
QUESTION TWO (15 Marks)
a) Explain the effect/impact of each of the following attributes on a game object.(4 Marks)
i. Collider
ii. Rigidbody
iii. Audio source
iv. Audi Listener
b) Explain how each of the following controibute towards the building of a game.(6 Marks)
i. Scene
ii. Game Object
iii. Components
c) A student building a terrain in Unity is seeking help on how to build a background for the
terraine. Outline the steps involved for this student. (5 Marks)
QESTION THREE (15 Marks)
a) Consider the scene below in which there is a wall with some vegetation on it. The player
is supposed to jump up and down as the space bar key is pressed on the keyboard.


i. Provide a C# code that will enable the player to move 10, 15 and 3 units along the x,y
and z dimensions respectively. The code should initially print the words “game starting”
on the console. (6 Marks)
ii. Explain the steps of ensuring that the background appears behind the wall when the game
is played. (6 Marks)
b) Briefly explain how games relate with software and movies. (3 Marks)
QUESTION FOUR (15 Marks)
a) Define the term Sprite. (2 Marks)
b) Explain any three roles of a Sprite Renderer (3 Marks)
c) Explain four types of internal assets usable in unity environment. (4 Marks)
d) Explain the role of start() and update() methods in a game script. (4 Marks)
e) Explain the role of physics in transforming game objects. (2 Marks)

(Visited 192 times, 1 visits today)
Share this:

Written by