Project - 2D Car Racing Game (Flash) Documentation

February 2, 2017 | Author: lushcheese | Category: N/A
Share Embed Donate


Short Description

Download Project - 2D Car Racing Game (Flash) Documentation...

Description

Final Project Report

2D Car Racing Game Project

Submitted By MC070400829 NOORUDDIN CHARANIA

Department of Management Sciences, Virtual University of Pakistan

DEDICATION

I would like to dedicated this project to my VU course teachers without them I won’t be able to work on it efficiently, and to the three most important demographic people, F1 lovers, Need for Speed Game Players and Fast and Furious I,II,III,IV crazies.

2|Page

ACKNOWLEDGEMENT

I truly believe that what comes first will have the tendency to make a revolutionary shift in the system. I want to acknowledge this project to Pakistan Highway Code booklet – Issued by the Ministry of Communications Government of Pakistan and to my sister for her suggestions made a significant contribution to the accuracy and clarity of the diagrams.

3|Page

PREFACE The idea of 2D Car Racing for fun came when i saw Pakistan Highway Code Sign lying on my desk drawer. i picked up it was neat, clean and not even a turn on the pages. I started turning pages to check the content and eureka i found a small paper written "Someday, i will make a game". What’s the best time then now. So, i tiled this topic for my final project - MBA(MIS), Virtual University of Pakistan. I really like to thank instructor of the subject for accepting this topic and given me a chance to make an effort for my dream.



Nooruddin, 19-07-2010, Karachi

4|Page

TABLE OF CONTENTS DEDICATION.................................................................................................................................2 ACKNOWLEDGEMENT...............................................................................................................3 PREFACE........................................................................................................................................4 TABLE OF CONTENTS................................................................................................................5 CHAPTER 1....................................................................................................................................7 CHAPTER 1 – Background and Introduction.................................................................................8 Background..................................................................................................................................8 Why this topic is selected ?......................................................................................................8 How this topic is related with MIS ?.......................................................................................8 Introduction of the organization & project..................................................................................8 What existing resources available for this project?.................................................................8 What Existing resources lacking?............................................................................................8 What are the Problems and Challenges?..................................................................................9 What I hope from this project?................................................................................................9 CHAPTER 2..................................................................................................................................10 CHAPTER 2 – Software require specification..............................................................................11 Scope (of the project).................................................................................................................11 Functional & Non- Functional Requirement.............................................................................11 Hardware: .............................................................................................................................12 Operation System: .................................................................................................................12 Code Standard: ......................................................................................................................12 Performance: ........................................................................................................................12 USE CASE DIAGRAM............................................................................................................13 USE CASE: Access to Web Server.......................................................................................14 USE CASE: Download Section on Web Server...................................................................15 USE CASE : Refer to a friend page.......................................................................................16 USAGE SCENARIOS...............................................................................................................16 SCENARIOS: ACCESS TO WEB SERVER.......................................................................16

5|Page

SCENARIOS: DOWNLOAD SECTION ON WEB SERVER.............................................17 SCENARIOS:REFER TO A FRIENDS PAGE....................................................................18 CHAPTER 3..................................................................................................................................19 CHAPTER 3 – Design Document.................................................................................................20 Overview (of system) ...............................................................................................................20 Objectives of the game...........................................................................................................20 Scenario of the game..............................................................................................................20 Key Locations in the game....................................................................................................20 Traveling in the game............................................................................................................21 Data Flow Diagrams (DFD) .....................................................................................................22 Context Diagram....................................................................................................................22 Level 0 Diagram....................................................................................................................23 Level 1 Diagram....................................................................................................................24 Entity Relationship Diagram (ERD) .........................................................................................25 Architecture Design Diagram (Hardware & Software Architecture).......................................27 ClassDiagram............................................................................................................................28 Database Design.......................................................................................................................29 Test Cases.................................................................................................................................31 CHAPTER 4..................................................................................................................................41 CHAPTER 4 - Analysis.................................................................................................................42 Project Benefits..........................................................................................................................42 Conclusion.................................................................................................................................43 Recommendation.......................................................................................................................44 REFERENCES..............................................................................................................................45

6|Page

CHAPTER 1

(Background & Introduction)

7|Page

CHAPTER 1 – Background and Introduction BACKGROUND RACE FOR FUN (RFF) - is a flash car racing game based on the principles of Pakistan Highway Codes, completely fun. It includes a virtual environment for player to race, explore, have fun and learn codes to accomplish the task of the game Why this topic is selected ? I select this topic to motivate students to learn more about Pakistan Highway Codes in a fun manner . The basic web base interface can collect data in order to maintain demographic study of the people who are interested in this subjected car racing games. How this topic is related with MIS ? MIS deliver management based report to improvise efficiency in organizational structure, based on this. RFF helps collecting data user with a single interface, which can be manipulated afterwards.

INTRODUCTION OF THE ORGANIZATION & PROJECT RFF is the topic for Final Project at Virtual University of Pakistan. This project provide a comprehensive detailed analysis of cases, classes, data flow diagram models, design methodologies, also you can use this documentation for future references also. What existing resources available for this project? Obviously, my work is based on originality, but tools such as Adobe Flash, Photoshop, Macromedia Dreamweaver, Pakistan Highway Code Booklet and world wide web is available. And teacher guidance through VULMS. What Existing resources lacking? Interactivity – Before this type of project are design standalone with different intensions; either a complete racing game or a sample questionnaire regarding what are the preferences in buying car and additionally quizzes in different networks how well you know traffic codes. I believe by placing all three things together help s player to learn and have fun while playing.

8|Page

What are the Problems and Challenges? My main goal for this project is to design all needed diagrams in a specified duration of time. Along with, the case diagram which require mandatory correction. Specifically, i want to create a Karachi city environment where players can race in a given period of time and learn as much as possible with fun. Player can also share this game or refer this game to a friend. This is a flash based project; the main problem with flash that it is dependent. It can't be function without specifying application software. This problem resolved through web interface. What I hope from this project? I want all the readers of this project to know the whole process of how web base environments combined together with a flash application to bring interactivity and the whole function of user and server connection between them.

9|Page

CHAPTER 2

(Software Requirement Specification) (Attach here already evaluated deliverable)

10 | P a g e

CHAPTER 2 – SOFTWARE REQUIRE SPECIFICATION SCOPE (OF THE PROJECT) The idea of this project is to create a car racing game in Adobe Flash, which can be playable online, offline or through embedment in different types of application such as MS Excel, Power Point, Word etc. Also it can be share in online social networking such as, FACE BOOK, TAGGED, ORKUT etc through web interface

FUNCTIONAL & NON- FUNCTIONAL REQUIREMENT Functional Requirements are those that refer to the functionality of the system, i.e., what services it will provide to the user. 1) 2) 3) 4) 5) 6) 7) 8)

INTERACTIVITY CHECK POINT PURSUIT ENTERTAINMENT EDUCATION RELAXATION PLAYABLE ANYTIME, ANYWHERE SHARE WITH FRIENDS

Nonfunctional (supplementary) requirements pertain to other information needed to produce the correct system and are detailed separately. 1) 2) 3) 4) 5) 6) 7) 8) 9)

CAR IMAGES CAR MOVIECLIPS SPEEDOMETER ADDING VARIABLES KEYPRESSES CAR MOVEMENTS ON FRAMES FUNCTIONS CAR ROTATIONS CAR WHEEL TURNING

11 | P a g e

10)ADDING ACCELERATION

Hardware: •

Pentium III or later

Operation System: •

Windows XP or above



Internet Connection DSL /ADSL or any telephone lines

Code Standard: •

The web pages will be coded in html by using Dreamweaver.



The forms will be done through Java script.



The email will be sent through php script.



The connection to the Storage database will be done through third party .



Each page of the web site will be fully documented.



Flash 2d Car racing game will be designed using Adobe Flash



Coding will be done through Action Script.

Performance: •

The system should be 99.9% online time.

12 | P a g e

USE CASE DIAGRAM

The first selection is to fill out a form. The questions on the form will be created in order to KYC profile. This form will take input such as, names, age, profession This information will be retained on the storage server and an e-mail will be sent to the person who fill out the form The second selection is to the Download section. There are three choices on this page. One choice is to play online. Second, is to share on social networking and third will download. Certain fields in this section will be required, and list boxes will be used where appropriate.

13 | P a g e

The third page will be the courtesy page saying thank you. Also this page will provide boxes to refer friends through email address. On which email will be sent USE CASE: Access to Web Server

Step-by-step description For this use case to be initiated, the user must be connected to the Internet to race 4 fun web page 1. The user connects to the Web Server. 2. The user will be asked to sign up so a link will the storage server created through interface. 3. This information will be passed to storage server and storage server will send the confirmation email at the end.

14 | P a g e

USE CASE: Download Section on Web Server

Step-by-step description For this use case to be initiated, the user must be connected to the Internet to race 4 fun web page and on download page 1. The user connects to the Web Server. 2. The user will be asked to fill the form so a link will the storage server created through interface. 3. This information will be passed to storage server and storage server will send the confirmation email at the end. 4. The page will be displayed where user will select to download from 3 options 5. First, Option will be to play online the system will go to storage server to load file 6. Second, to download locally the storage server provide file in MS Office format 7. Thrid, to share with social networking , web page will ask to select the social network and than a link to social network will be created.

15 | P a g e

USE CASE : Refer to a friend page

Step-by-step description For this use case to be initiated, the user must be connected to the Internet and have completed both 2 steps 1. The user will be asked to provide email address so he can refer this game to his friend.

USAGE SCENARIOS SCENARIOS: ACCESS TO WEB SERVER Use Case Name:

Access to web server

Priority

Essential

Trigger

Menu selection

Precondition

User is connected to the Internet and on race4fun home page

Basic Path Alternate Path

Web Server sends the user basic information interface. Storage Server records and sends confirmation email N/A

Postcondition

User is on the Home Page

Exception Path

If there is a connection failure the server The page is not displayed message will appeared

1. 2.

Other

16 | P a g e

Reference

SRS 3.1

SCENARIOS: DOWNLOAD SECTION ON WEB SERVER Use Case Name:

Download section on web server

Priority

Essential

Trigger

Selects

Precondition

User is already completed page 1 on race4fun home page

Basic Path

Alternate Path

1. Web Server will bring MS Office file if a user selects to download 2. Web Server will go to storage server if the user selects to play online 3. Web Server will go to Social Network and shares the game with the other socialist. L N/A

Postcondition

User has passed the Home Page

Exception Path

If there is a connection failure the server The page is not displayed message will appeared. And restarts from the first page

Other Reference

SRS 3.2

17 | P a g e

SCENARIOS:REFER TO A FRIENDS PAGE Use Case Name:

Refer to a friend pager

Priority

If time permits

Trigger

Inputs

Precondition

User is already completed download page on web server

Basic Path

Web server will now ask to refer a friend through normal text boxes

Alternate Path

N/A

Postcondition

User has passed the Home Page or User have played online game

Exception Path

If there is a connection failure the server The page is not displayed message will appeared.

Other Reference

SRS 3.3

18 | P a g e

CHAPTER 3

(Design Document)

19 | P a g e

CHAPTER 3 – DESIGN DOCUMENT

OVERVIEW (OF SYSTEM) There are different types of environment in this Race for Fun game. First one is virtual through web server which just take data into record to KYC (Know Your Customer), In other word, apart from game data is collected on demographic basis that the player is interested in car. The game world consists of several locations to make up the streets of Karachi city. The game is not based on any historically accurate map of the city. The game world is entirely built from my own imagination and design. The physical world consists of areas and streets. Areas are linked to other areas, and street crossing those areas. Some objects have been created, used, or manipulated, but other objects are static, and serve only as scenery. though game characteristics would allow players to immerse themselves in the RFF World. Objectives of the game The objective of the game is to aware audience with the traffic rules and regulations. Scenario of the game The scenario is that Player – is a student of VU and he is late for his final term papers. There is only 20 minutes left and you have to race your car from MA Jinnah to Baloch Colony Key Locations in the game  MA Jinnah Street  Quaid-e-Azam Mazhar  Jail Chorangi  Bahadurabad Chorangi  Balouch Colony

20 | P a g e

Traveling in the game Player can travel between location by keyboard pressing keys such as Up, Down, Left and Right. There are no different areas in the game to be played. Direction in the games will be provided by Pakistan Highway Code Standards, The game uses only minimum level of codes.

21 | P a g e

DATA FLOW DIAGRAMS (DFD) Context Diagram

22 | P a g e

Level 0 Diagram

23 | P a g e

Level 1 Diagram

24 | P a g e

ENTITY RELATIONSHIP DIAGRAM (ERD)

25 | P a g e

Sequence Diagrams

26 | P a g e

ARCHITECTURE DESIGN DIAGRAM (HARDWARE & SOFTWARE ARCHITECTURE)

User must be connected to internet.

User must have Web Browser Installed with flash plugin and must have a valid email address

Software work on 7th Layer of the OSI Model but 3rd Level connectivity must be initial required, User can’t download game.

User must have social network account

27 | P a g e

CLASSDIAGRAM

28 | P a g e

DATABASE DESIGN

29 | P a g e

30 | P a g e

TEST CASES Test Case # 1 Test Case Title: Testing the login mechanism of RFF System Preconditions

User singing up the RFF web interface

Actions

Click the login button

Expected Results

Sign into the Sytem

Tested By:

Nooruddin

Result:

Pass

Test Case # 2 Test Case Title: Testing the Selection mechanism of RFF System Preconditions

User selecting game to be downloaded

Actions

Click the Download Button

Expected Results

Dailogue Box Appear where to save

Tested By:

Nooruddin

Result:

Pass

Test Case # 3 Test Case Title: Testing the Selection mechanism of RFF System Preconditions

User selecting game to be Share on Social Network

Actions

Click the Icon and select the appropriate Social Network

31 | P a g e

Expected Results

Social Network Login Page Appeared

Tested By:

Nooruddin

Result:

Pass

Test Case # 4 Test Case Title: Testing the Selection mechanism of RFF System Preconditions

User selecting game to Online Pay

Actions

Click on the Hyperlink to Play Online

Expected Results

Pop Up window open with the game

Tested By:

Nooruddin

Result:

Pass

Test Case # 5 Test Case Title: Testing the Game Menu Preconditions

User Choice to Play

Actions

Click on the Play Button

Expected Results

Game Started

Tested By:

Nooruddin

Result:

Pass

Test Case # 6

32 | P a g e

Test Case Title: Testing the Game while playing Preconditions

User Choice for Instruction

Actions

Click on the Instruction Button

Expected Results

Instruction display on Screen

Tested By:

Nooruddin

Result:

Pass

Test Case # 7 Test Case Title: Testing the Game while playing Preconditions

User starting race

Actions

Press Up Button

Expected Results

Car will move forward

Tested By:

Nooruddin

Result:

Pass

Test Case # 8 Test Case Title: Testing the Game while playing Preconditions

User wants to stop for a while

Actions

Press Space Button

Expected Results

Car will stop moving

Tested By:

Nooruddin

Result:

Pass

33 | P a g e

Test Case # 9 Test Case Title: Testing the Game while playing Preconditions

User wants to move right

Actions

Press Right Button

Expected Results

Car will move to the right

Tested By:

Nooruddin

Result:

Pass

Test Case # 10 Test Case Title: Testing the Game while playing Preconditions

User wants to move left

Actions

Press Left Button

Expected Results

Car will move to the left

Tested By:

Nooruddin

Result:

Pass

Test Case # 11 Test Case Title: Testing the Game while playing Preconditions

User wants to identify a particular location

Actions

Click on the Qauid-e-Azam Mosuleum Logo

Expected Results

Disply information regarding particular location

34 | P a g e

Tested By:

Nooruddin

Result:

Fail

Test Case # 12 Test Case Title: Testing the Game while Playing Preconditions

User at the signal and wants to follow up direction

Actions

Read the Signs

Expected Results

User don’t allow to move in any other direction

Tested By:

Nooruddin

Result:

Fail

Test Case # 13 Test Case Title: Testing the Game while Playing Preconditions

User wants to see map for direction

Actions

On the Screen

Expected Results

Game itself a map

Tested By:

Nooruddin

Result:

Pass

Test Case # 14 Test Case Title: Testing the Game while Playing

35 | P a g e

Preconditions

User wants to change car

Actions

Click on the car

Expected Results

Car willl keep changing

Tested By:

Nooruddin

Result:

Fail

Test Case # 15 Test Case Title: Testing the Game while Playing Preconditions

User wants to move ahead when signal is red

Actions

Press Key as mentioned in the sign

Expected Results

Car will move

Tested By:

Nooruddin

Result:

Pass

Test Case # 16 Test Case Title: Testing the Game while playing Preconditions

User after breaking signal see that the signal is green and sign has changed

Actions

Click Down Arrow to go back

Expected Results

Car is not moving backward

Tested By:

Nooruddin

Result:

Pass

36 | P a g e

Test Case # 17 Test Case Title: Testing the Game while Playing Preconditions

User sees that the direction of destination changes as he breaks the signal and wants back to the same signal

Actions

Press Sign direction key

Expected Results

User don’t allow to move in any other direction

Tested By:

Nooruddin

Result:

Fail

Test Case # 18 Test Case Title: Testing the Game while Playing Preconditions

User see yellowish red flashing signal at a particular location and finds out that there was an terrorist blast activity occurred and move toward that location

Actions

Press sign direction key

Expected Results

User is allowed to move to the direction

Tested By:

Nooruddin

Result:

Pass

Test Case # 19 Test Case Title: Testing the Game while Playing Preconditions

After reaching toward that location User see a sign notification and

37 | P a g e

move towards the location Actions

Press sign direction keys

Expected Results

Car will keep changing direction

Tested By:

Nooruddin

Result:

Fail

Test Case # 20 Test Case Title: Testing the Game while playing Preconditions

User now speeding ahead toward direction

Actions

Press Up arrow key

Expected Results

Breaking signal will reduce time

Tested By:

Nooruddin

Result:

Pass

Test Case # 21 Test Case Title: Testing the Game while Playing Preconditions

User reached at the destination

Actions

Press Space Button

Expected Results

Time duration displayed and the message that could make it on time

Tested By:

Nooruddin

Result:

Pass

38 | P a g e

Test Case # 22 Test Case Title: Testing the Game while Playing Preconditions

User wants to move ahead

Actions

Click ok

Expected Results

Display Change

Tested By:

Nooruddin

Result:

Pass

Test Case # 23 Test Case Title: Testing the Game while Playing Preconditions

User wants to play again

Actions

Click restart

Expected Results

Game restarted

Tested By:

Nooruddin

Result:

Pass

Summary Total Test Cases

23

Pass

18

Fail

5

Conclusion

Game will be playable. 78% Performance

39 | P a g e

40 | P a g e

CHAPTER 4

(Analysis)

41 | P a g e

CHAPTER 4 - ANALYSIS

PROJECT BENEFITS In economics it is said that when Marginal Social Cost = Marginal Social Benefits than it becomes equilibrium. This project is very much economical. Apart from Hosting Charges there is no additional cost involves. MSC = MSB Secondly, the game is free to download and play, Now, we can say that Player after playing RFF educate themselves with Highway Codes along with fun which will be equal to cost of driving a car with the more powerful knowledge of reading road signs. As its says

“The society achieves the highest total benefit when the marginal benefits of all the activities becomes equal.”

Peoples from all profession will get benefited Peoples from all ages will get benefited And in future if data collected from this website will be efficient than it can be used to market new car related product. Hence, Project is benefited in the long run.

42 | P a g e

CONCLUSION Based on the fact that RFF offers a good interactivity with existing functionality, i can assume that it has a good chance to grabs many users.

By observation i can conclude that RFF with no restriction and good audio support will make a environment for young’s to learn about traffic. This game is only for environments where the user can access to the internet, and downloadable version is also available.

43 | P a g e

RECOMMENDATION Always give it a try approach, before making comments I believe that gaming is a conceptual design, for a players it’s a virtual world but for a developer it’s how he make efficient use of key presses, key release and loop.

44 | P a g e

REFERENCES  ON2 On2 technologies, http://www.on2.com  NETO, SILVEIRA 2008, How to create a RPG http://silveiraneto.net/2008/12/08/javafx-how-to-createa-rpg-like-game

like

game,

 PHOTOSHOP, http://www.adobe.com/products/photoshop  MeeSoft Diagram Designer, http://meesoft.logicnet.dk  TINYSOLDIERS, Tiny Soldiers the Rise of Mosquito, Global Game Jam 2009, http://globalgamejam.org/games/tiny-soldier-rise-mosquitos  Tutorials, http://www.tutplus.com  ADOBE FLASH, http://www.adobe.com/products

45 | P a g e

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF