20
5/3/2013 1 BY: MATTHEW ANDREWS & JOSHUA ANTHONY PROJECT ADVISORS: PROF. STEFFEN & PROF. HACK INSTRUCTOR: PROF PAUL I. LIN MAY 3, 2013 Android Role Playing Game 1 Overview Project Summary System Architecture Major Classes Demo Q&A 2

Android Role Playing Game - IPFWlin/ECET491/S2013/5-PPTs/2... · 5/3/2013 1 by: matthew andrews & joshua anthony project advisors: prof. steffen & prof. hack instructor: prof paul

Embed Size (px)

Citation preview

5/3/2013

1

B Y : M A T T H E W A N D R E W S & J O S H U A A N T H O N Y

P R O J E C T A D V I S O R S : P R O F . S T E F F E N & P R O F . H A C K

I N S T R U C T O R : P R O F P A U L I . L I N

M A Y 3 , 2 0 1 3

Android Role Playing Game

1

Overview

Project Summary

System Architecture

Major Classes

Demo

Q&A

2

5/3/2013

2

Executive Summary

Proof-of-Concept Prototype

Android Based

Wide range of compatibility

3

Background

Educational

Android Platform

Beginnings

4

5/3/2013

3

Criteria

Operational

Performance

Physical Characteristics

Utilization Environment

Functional

5

Operational6

1 Android game shall have a menu screen Demo

2 Android game shall have a player character that has attributes Demo

3 Android game shall have a save / load system for the player character's attributes

Analyze

4 Android game should have multiple enemy types Demo

5 Android game should have multiple player characters, with differing attributes to choose from

Demo

5/3/2013

4

Performance7

1 Android game shall have at least 10 levels Test

2 Android game shall load the menu screen on initial start up, on a Samsung Galaxy S3 running Android 4.1.*, in less than 5 seconds

Test

3 Player characters shall have at least 6 attributes that are tracked by the game Analyze

4 Player characters shall increase attributes as they gain experience points from defeating enemies in the game

Analyze

Physical Characteristics8

1 Android game shall be less than 50 MB in size Inspect

2 Android game shall create files on the flash memory of the phone for the purpose of tracking a player's attributes

Analyze

3 Android game should be uploaded to the Google Play store Demo

4 Android game should comply with Google Play store specifications Analyze

5/3/2013

5

Environment & Functional

Environment

Functional

9

1 Android game shall run on an emulated environment of Android 4.1.* Analyze

2 Android game shall run a Samsung Galaxy S3, running Android 4.1.* Analyze

1 Android game shall utilize a text file to save player attributes Demo

2 Android game shall have enemies that move towards the player every movement of the game

Demo

3 Android game shall contain a system that measures player's and an enemy's attributes against each other and determines the winner of the struggle.

Analyze

Why Jelly Bean?10

5/3/2013

6

Costs

Parts (Given or Previously Purchased)

11

Item Name ~Individual Price (USD)

Quantity Total (USD)

Eclipse SDK - 2 0.00

Android SDK Add on - 2 0.00

Graphics - 16 0.00

Samsung Galaxy S3 200.00 1 200.00

HP Pavilion DV5T PC 1200 1 1200.00

Cyberpower Xplorer X6-9350

1100 1 1100.00

Total Cost: 2500.00

Labor

Name Labor Time (hours)

Matt Andrews Game Programming 150

Josh Anthony Game Programming 150

Blake Genth Graphics 2

Prof. Paul Lin General Assistance 2

Total Time: 304

12

5/3/2013

7

Software Architecture13

Software Architecture14

User

Menu Exit

Credits

Help

Load

New Name Character

Select File

Gameplay

Movement

Save

Exit

Combat

Object

Level

Game Over

5/3/2013

8

Initial Architecture

Built-in Android Libraries only

Every scene is an activity/class

Every scene has XML layout file

Levels created using GridView and arrays

15

Initial Architecture16

5/3/2013

9

Initial Testing

Screen Resolution Issue

17

Solution

AndEngine

Built-in scaling screen resolution

HUD Libraries

Architecture Overhaul

Behind Schedule

18

5/3/2013

10

Revised Architecture19

Game Activity

Splash Scene

Main Menu Scene

Main Menu Sub

scenes

Loading Scene

Gameplay Scene

Revised Architecture

4 core classes

Resources Manager

Scene Manager

Base Scene

Game Activity

20

5/3/2013

11

Resources Manager

Class responsibilities

Class variables

Class methods

21

Assets

Font

Graphics

Level

Music

22

5/3/2013

12

Resources Manager Sample Code23

Scene Manager

Responsibilities

4 total scenes

Loading Scenes

Disposing of Scenes

24

5/3/2013

13

Scene Manager Sample Code25

Base Scene

Template for all scenes

Extended by all scenes

Abstract Methods

26

5/3/2013

14

Base Scene27

Game Activity

Sets camera options

Sets Engine options

Calls first scene

28

5/3/2013

15

Game Activity Sample Code29

Levels

Created using XML files

Level Item Creation

Level is called using:

30

5/3/2013

16

Levels31

Player Class

Movement Direction

Movement Speed

Attributes

32

5/3/2013

17

Attributes Class

Attribute Creation

Attribute Storage

Changing Health

33

Collisions34

5/3/2013

18

Combat

Uses player attributes

35

Testing

Phone Screen Dimensions Android Version

CPU

(GHz)

RAM

(MB)

Internal Storage

(GB)

SD Card

(GB)

Samsung Galaxy S3

4.8” HD 720 (1280x720) 4.1.2 Cortex 8a @1.5 GHz

2048 16 -

Motorola Droid 4 4.0” DVGA (960x540) 4.1.2 Cortex 9a @ 1.2 GHz

1024 8 16

Motorola Droid Razr

4.3” DVGA (960x540) 4.0.1 Cortex 9a @ 1.2 GHz

1024 16 16

HTC DNA 5.0” HD 1080 (1920x1080) 4.1.1 Snapdragon S4 @ 1.5 GHz

2048 16 -

36

5/3/2013

19

Demo37

Conclusion

Lessons Learned

Time Management

Documentation

Perseverance

38

5/3/2013

20

Questions?39