Anda di halaman 1dari 1

Andre Wiggins & Garrett Reuscher

Universal
Classes
Jukebox
Properties:
instance - the instance of the jukebox that exists
Methods:
Awake - ensures that the singleton remains
Instance - getter for instance property

MusicManager
Properties:
jukebox - the existing jukebox
song - the background music to play in this
scene
audio1Volume - the volume to reach
audio2Volume - the volume to fade out to
tracksChanged - bool to determine if this
screen had a different song than last screen
newSongReadyToPlay - bool to determine
when the new song is ready to start playing
songFadeRate - the rate that songs fade at
jukeboxMode - string that allows different play
modes on the jukebox
isMenu - bool to determine if this scene is a
menu
Methods:
Awake - finds jukebox and sets jukebox mode
Update - function that handles calling the
FadeIn and FadeOut methods
FadeIn - fades in the new song
FadeOut - fades out the old song

CSC318

Title Menu

TitleMenu
Properties:
stars - list of regular stars in the scene
shootingStars - list of shooting stars in the
screen
planets - list of planets in the scene
starCount - the number of shooting stars to
spawn
nebulaCount - the numberof nebulas to spawn
Methods:
Start - populates lists, randomizes star
positions, and spawns nebulas and solar
systems
Update - makes stars twinkle, rotates planets
in scene, and handles moving and respawning
shooting stars
PickNebulaDustColor - picks a random color
for a passed in particle based on the color
scheme
PlayScreen - loads the game setup screen
CreateScreen - loads the board customizations
screen
OptionsScreen - loads the options screen
CreditsScreen - loads the credits screen
QuitGame - closes the application

11/18/14

Game Setup
Screen

Board
Customization
Screen

Options
Screen

Credits
Screen

Ingame Scene

GameSetup

BoardCustomization

OptionsScreen

CreditsScreen

GameManager

Properties:
countdown - the time to wait before starting the
game
Player2 - the object that stores information
about the second player
Methods:
Start - loads graphics
Update - checks for user input
TitleScreen - loads title screen
StartGame - loads game scene
Countdown - Starts and tracks countdown timer

Methods:
Start - loads graphics
Update - captures user input
TitleScreen - loads title screen
Save - saves the current board to a text file
Load - lodas a board from a text file

Properties:
soundVolume - the current sound effect volume
musicVolume - the current music volume
Methods:
Start - loads graphics and sliders
Update - checks for user input and updates
sliders
UpdateVolumes - saves the user's changes to
the volume settings
TitleScreen - loads title menu

Properties:
prefab - the shooting star to spawn
holeLocalPos - the position of the spawning ring
holeRadius - the radius of the hole of the donut
spawner
diskRadius - the radius of the entire spawning
disk
stars - list of regular stars in the scene
shootingStars - list of shooting stars in the
scene
Methods:
Start - randomizes star positions and spawns
shooting stars
Update - makes stars twinkle, gets input to
return to title screen, and handles destroying
shooting stars
Spawner - spawns a new shooting star
FindPosition - picks a position on the disk to
spawn the star

Properties
winningPlayer - string which stores which player
has won
playerScore - stores the score of player one
Methods:
Update - checks to see if either player can no
longer move
endGame - determines winner and displays GUI
elements

BoardDisplay

Network
Properties:
isNetworkedGame - bool to tell if player one is
playing against an opponent over a network
Methods:
FetchOpponent - finds and opponent and checks
to make sure that you are also their opponent
FetchInfo - gets the opponent's info

Methods:
Start - generates blank board on screen
Update - changes the graphics on the tiles as
they are updated and enforces rules to prevent
unfair boards

TileDisplay
Properties:
arrow1 - the graphic for the top arrow
arrow2 - the graphic for the top right arrow
arrow3 - the graphic for the right arrow
arrow4 - the graphic for the lower right arrow
arrow5 - the graphic for the bottom arrow
arrow6 - the graphic for the lower left arrow
arrow7 - the graphic for the left arrow
arrow8 - the graphic for the top left arrow
Methods:
Start - generates blank tile
Update - changes graphics on tile to match
what users drag on to the tile and enforces
rules to prevent certain tile combos

Pause
Properties:
isPaused - bool to determine if the game is
paused or not
Methods:
Update - checks for user input to pause the
game
ResumeGame - resumes game
TitleScreen - loads title screen

Move
Properties:
selectedPiece - the currently selected piece
playerOne - bool which says who's turn it is
turnText - the GUI element that says who's turn
it is
piecesInvisible - bool which determines if the
game pieces are invisible or visible
pieces - list of pieces
Methods:
Start - sets default values of properties and
populates list
Update - checks for input to move pieces,
changes selected pieces, and changes turns

Board
Methods:
Start - reads the board to be spawned then
spawns the various tile objects and names them

Tile
Properties:
arrow1 - the graphic for the top arrow
arrow2 - the graphic for the top right arrow
arrow3 - the graphic for the right arrow
arrow4 - the graphic for the lower right arrow
arrow5 - the graphic for the bottom arrow
arrow6 - the graphic for the lower left arrow
arrow7 - the graphic for the left arrow
arrow8 - the graphic for the top left arrow
piece - the piece currently on this tile
cameFrom - number to tell what direction the
piece came from

Anda mungkin juga menyukai