NIT3213 Assignment 1
NIT3213 Assignment 1
This assignment will test your Python Mobile Application using the Kivy Framework
skills and is worth 10% of your overall unit mark.
This is a group assignment. You can form a team of 2 members.
Application Description
Develop a simple playable Pong Game using Kivy Framework. You suppose to draw the Pong
background and scores by defining how the Pong Game widget looks.
NIT3213 Mobile Application Development
Task Requirements
1. Getting Started - Create a directory for the game and a file named main.py and declare two classes
PongGame and PongApp
2. Add Simple Graphics - Creation of pong.kv – you can use a .kv file to define the look and feel of
the PongGame class. Since the App class is called PongApp, you can simply create a file called
pong.kv in the same directory that will be automatically loaded when the application is run. So
create a new file called “pong.kv” and the first block inside the <PongGame> rule is to have
a canvas block.
3. Add the Ball – Once the basic pong arena to play in was created, you can add the players and a ball
to hit around. Add a new PongBall class to create a widget that will be our ball and make it bounce
around.
4. Add Ball Animation – Once the ball is created, schedule functions on the Clock to make the ball to
be moved regularly.
5. Connect Input Events - Adding Players and reacting to touch input.
6. Reference – You can refer the following link for the source code.
https://kivy.org/doc/stable/tutorials/pong.html
Submission Requirements
What do you have to hand in?
Assignment 1
Student name: Student ID:
Presentation 10
Viva Voce 10
Total 100