Farm Moles Android Game

22
An-Najah National University Computer Engineering Department Software Graduation Project (66581) 2013-2014 Supervised By: Dr. Luai M. Malhis Examiners Committee: Dr. Raed Al-Qadi & Dr. Hanal Abu-Zant By: Farouq Mousa & Abdullah Jaradat 1

description

Farm Moles Game is 2D entertainment game. Simply, the one who is playing the game will try to save the farm carrots from being damaged by the harmful moles by clicking on those moles by touching them. Three lives are given for each level, such that if the player missed a mole, he will lose one of his lives. As the player goes on the next levels of the game, he will face challenges; less time, more moles, wild bomb explosions and others

Transcript of Farm Moles Android Game

Page 1: Farm Moles Android Game

1

An-Najah National UniversityComputer

Engineering Department

Software Graduation Project (66581)

2013-2014

Supervised By: Dr. Luai M. MalhisExaminers Committee: Dr. Raed Al-Qadi

& Dr. Hanal Abu-ZantBy: Farouq Mousa & Abdullah Jaradat

Page 2: Farm Moles Android Game

2

Introduction Why Android ? Why Cocos2d-x ? Previous Work Constraints Tools Implementation Future work Demo time

OUTLINE

Page 3: Farm Moles Android Game

3

INTRUDUCTION

FARM MOLES is a 2D Game

with Two Skins: Farm Moles skin Space Invaders skin

Goal: Create a full-fledged Android game using Android platform & Cocos2d-x framework.

Page 4: Farm Moles Android Game

4

WHY ANDROID ?

- 1 -

Statistics about Android show that: Most commonly used smartphone platform.

Devices: More than 300 million sold worldwide.

Apps: More than 850,000 on Android Markets until December 1st, 2013.

15% of these apps are GAMES.

Page 5: Farm Moles Android Game

5

WHY ANDROID ?

- 2 -

Android is an Open Platform. Programmed using either C/C++ or Java (well documented)

Create & Publish Android Apps for Free.

Page 6: Farm Moles Android Game

6

ANDROIDVS.iOS

Page 7: Farm Moles Android Game

7

WHY COCOS2D-X?

Open Source game engine. Powerful features for game dev. Cross Platform. Ability to deploy Same Base Code on

Android, iOS, Windows Phone and Blackberry Devices.

Page 8: Farm Moles Android Game

8

MOTIVATION

Smart phones users are playing games for 64% of their day.

Mobile gaming revenue in 2013 is expected to exceed $10 billion, and to be doubled in 2015

Mobile Games is Serious Business !

Page 9: Farm Moles Android Game

9

TARGET AGE

GROUP

Players from 13 to 34 years old. This target group represents 51% of smart phones users worldwide.

Page 10: Farm Moles Android Game

10

PREVIOUS WORK

Similar game was developed on iOS (Mole It).

Implemented using Objective-C Not compatible with Android devices.

Page 11: Farm Moles Android Game

11

CONSTRAINTS

Compatible with Android 3.0 and higher. Avoid issues related to Various Android devices.

Free Android Platform and Cocos2d-x. Graphics : logos, sketches and backgrounds designed for about $60.

Page 12: Farm Moles Android Game

12

TOOLS

Eclipse - Juno SDK: Software Development Kit NDK: Native Development Kit Cocos2d-x framework JNI: Java Native Interface Cygwin: Linux-like environment for

Windows

Page 13: Farm Moles Android Game

13

IMPLEMENTATION

CCNode class hierarchy

Page 14: Farm Moles Android Game

14

IMPLEMENTATION

Scenes, Layers, Sprites Think for a Scene as a State of your game. Only One scene running at the time

Layer is a visual object that can group other visual objects (Sprites).

Page 15: Farm Moles Android Game

15

IMPLEMENTATION

Sprites They are visual objects inside layers.

Page 16: Farm Moles Android Game

16

IMPLEMENTATION

Facebook Authentication Social Authentication package(Java)

Page 17: Farm Moles Android Game

17

IMPLEMENTATION

Facebook Authentication Social Authentication package(Java)

Page 18: Farm Moles Android Game

18

IMPLEMENTATION

Main Classes and Game Parts

Page 19: Farm Moles Android Game

19

IMPLEMENTATION

Application Flow Chart

StartGame

Main

MenuSDKNDK

Playing Level

EndGame

Exit or Failure

InitiateLevels

LaunchGames

FinishLevel

Game Exit

Page 20: Farm Moles Android Game

20

FUTURE WORK

Matching newer versions of Android OS. Implementing 3-D game using newer version of cocos2d-x that supports 3D visual objects.

Improving Game:

• Multiple players in the same time.

• Using GPS tracking system.

• Connecting players via Server to start Challenge.

Page 21: Farm Moles Android Game

21

LET’S

GO

Page 22: Farm Moles Android Game

22