Skip to content

Commit

Permalink
v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
iamn9 committed Apr 14, 2018
0 parents commit ebabf35
Show file tree
Hide file tree
Showing 10 changed files with 1,058 additions and 0 deletions.
1,013 changes: 1,013 additions & 0 deletions BUBBLESH.C

Large diffs are not rendered by default.

Binary file added Executable/ATT.BGI
Binary file not shown.
Binary file added Executable/BUBBLESH.EXE
Binary file not shown.
Binary file added Executable/CGA.BGI
Binary file not shown.
Binary file added Executable/EGAVGA.BGI
Binary file not shown.
Binary file added Executable/HERC.BGI
Binary file not shown.
Binary file added Executable/IBM8514.BGI
Binary file not shown.
Binary file added Executable/LITT.CHR
Binary file not shown.
Binary file added Executable/PC3270.BGI
Binary file not shown.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
Game Title: Bubble Shooter
Authors: Garcia, Noel A.
Nuevo, Jay Martin

Rules of the Game:
- The aim of the game is to clear the board from the colorful bubbles.
- You can shoot the bubble that appears at the bottom of the board.
- When three or more bubbles of the same color come together, they will all disappear
- If your shot fails to detonate any bubbles, you get a foul, and when there care several fouls, a new line of bubbles appears at the top.
- There is no time limit in this game. Either you finish the game by clearing all bubbles, or they move all the way down to you.

Controller: Mouse
Controls: Left Click Mouse Button to Shoot bubble
Right Click Mouse Button to escape from mouse restriction


void gameTime(void); - updates and shows Game Time;
void newGame(void); - resets or starts a newGame by clearing the game area and generating initial bubbles.
void initialize(void); - reverts all values used back to the game default
void statusCheck(void); - checks if the game is paused, game over, or finished.
void gamePenalty(void); - gives penalty to the game by generating another line of bubbles within a defined period
void gameLose(void); - displays game over
void gameWin(void); - displays winner
void bulletColors(void); - scans for available colors of bubbles left
void genBullet(void); - generates bubbles for shooting
void genBubLine(int num, float cpy); - generates one line of bubbles
void showBubbles(void); - refreshes the game area and shows all the bubbles
void shoot(void); - shoots the bullet to the pointed area and executes necessary actions after
void bubbleBump(double *movex, double *movey, int *hit); - controls the movement of the bubble so that it would bump
void bubblePop(double x, double y); - scans for similarly colored bubbles surrounding the bullet shot and tags them for erasement
void bubbleEraser(void); - checks bubpop[] and erases all bubbles enlisted on it.
void score(int pop); displays and updates scores by receiving the number of bubbles popped
void background(void); - prints the starry background design on the screen
void gameTitle(char notif[15]); - shows the game title
void gameGUI(void); - shows all buttons and windows
void help(void); - shows the instructions and controls in playing the game
void music(double pitch, int time); - plays a note of a certain pitch and plays it within the specified time

Legend of status(int) variable:
0 = in game
1 = help
2 = pause
-1 = game win
-2 = game lose

0 comments on commit ebabf35

Please sign in to comment.