-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocumentation.txt
More file actions
133 lines (101 loc) · 3.7 KB
/
documentation.txt
File metadata and controls
133 lines (101 loc) · 3.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#Drunk Bird Documentation
***
*Name:* Drunk Bird
*Authors:*
1. Vyara Hristova
2. Teodor Cholakov
3. Chavdar Angelov
4. Marin Marinov
5. Mihail Mitov
6. Vasil Pavlov
7. Ivan Nikolov
8. Georgi Georgiev
*Created:* 31/07/2015
*Version:* 1.0.0
***
Thank you for your interest in our project!
<a href="http://github.com/Spurch/TeamSazerac" alt="Project-Adress">Github for Team Sazerac</a>
***
##Table of Contents
1. Game Description
2. HTML Structure
3. CSS Files
4. Javascript Files
5. Browser Compatibility
***
##1. Game Description
A Flappy-bird like game, where your goal is to drink as much as possible cocktails in order to win the game. While performing this heroic task the player must avoid many obstacles and defy the increasing gravity pull by hitting the space button.
Soft drinks shrink the size of the bird, while cocktails enlarge it. Upon shrinking to a minimum size, the game ends. Obstacles move both on the upper and the lower end of the game screen. If the bird collides with an obstacle, it dies and the game ends.
***
##2. HTML Structure
The HTML Structure for each page is as follows:
* Meta
* Title
* Link to CSS Files
* Header
* Content
* SVG - Container
* Result
* Timer - Container
* Stage container
* Link to Javascript Files
* Footer
***
##3. CSS Files
There is one CSS file in this theme:
* style.css
#####style.css
This CSS file is the main stylesheet for the theme. It holds all the values for the different elements of theme and the default color scheme.
***
##4. Javascript Files
There are 8 Javascript files in this theme:
* kinetic-v5.1.0.js
* background.js
* homeScreen.js
* optionsScreen.js
* drunkbird.js
* engine.js
* gameObjects.js
* timer.js
#####kinetic-v5.1.0.js
The game uses kinetic.js as a game rendering engine.
#####background.js
Provides information about the background layer - definition as a Kinetic.Layer, sizing and functionalities.
#####homeScreen.js
Provides information about the home screen layer - definition as a Kinetic.Layer, buttons for game navigation, and sizing.
#####optionsScreen.js
Provides information about the background layer - definition as a Kinetic.Layer and sizing.**Functionalities are not available at this moment.**
#####drunkbird.js
Holds information about the Player's object including attributes and class definition of the player instance.
#####engine.js
Provides the main functionalities for the project including:
<code>constants: Object</code>
*Object: Contains the necessary constants.*
<code>stage: Kinetic.Stage</code>
*Provides the stage for the rendering engine.*
<code>layers: Kinetic.Layer</code>
*BirdLayer, DrinkLayer, ObstaclesLayer are the layers containing the different game objects.*
<code>timer: Timer</code>
*Provides the functionality of the result calculation.*
<code>areColliding: Function</code>
*Defines the collision functionalities.*
<code>randomNumberInInterval: Function</code>
*Provides random numbers in order to create different instances in the game independently and in random positions.*
<code>setSoftDrinkImage: Function</code>
*fills the Kintic object with a random image from pre-set array*
<code>generateDrinkObject: Function</code>
*creates a Kinetic object which is the graphic representation of an instance of gameObjects*
#####gameObjects.js
Contains definition of drawable objects and its children - cocktail drinks, soft drinks, obstacles.
#####timer.js
Provides the functionality for the timer, which is the result generator.
***
##5. Browser Compatibility
**IE 9+**
**Chrome**
**Firefox**
**Safari**
**Opera**
####Project by Team Sazerac
Thank you for your interest in our project!
<a href="http://github.com/Spurch/TeamSazerac" alt="Project-Adress">Github for Team Sazerac</a>