CSS 290- Assignment 6 ( a.k.a. A6)

DUE DATE: Thursday, May 27

C# Game With Iteration and Arrays

 

           

            You are required to work with 1 other person on this assignment.  If you absolutely have to, you can work with two other people.  Each group (of either 2 or 3 people) will work independently of the other groups; you're allowed to work with your group, but you're not allowed to work with anyone outside your group.

If you have questions, please contact the instructor.

 

 

Learning Objectives:
(This is a list of the major topics that you, as students, will learn in this assignment:)

  1. Demonstrate mastery of the technical topics that we've covered since the last assignment.
    You will need to implement a game, in C#, that uses the iteration constructs that we've seen in class.

Part 1: BlockBuster, C# Edition!

This game uses concepts from the ‘Repetition’ and 'Arrays' section of our course.

 

For this game, the player will control a bullet-shooting bug, and try to eliminate all the blocks, without losing too many points.  The starting setup for the game is pictured below (note that your window may be wider or narrower)

 

 

The bricks do NOT move.  There are 35 separate walls, each 20 wide by 20 tall, with the middle of the left-most wall being 30 pixels away from the left edge of the screen. When the player presses the 'A' button, then one or more bullets are created, and zip towards the top of the screen.  Specifically, the player gets 1 bullet to start, and then gets an additional bullet for every 14 bricks that the player has shot.  When a bullet overlaps a brick, then both the brick & the bullet are immediately removed from play.  The player can only shoot one 'wave' of bullets at a time.

The player controls the bug, which can be moved horizontally, but not vertically.  The bug may not leave the screen, in whole or in part. Other than shooting and moving, the player makes no other decisions in this game.

The egg is not controlled by the player, but instead zooms from side to side.  It never leaves the screen at all - when it reaches one side, it turns around and heads back the other way.

When a player's bullet overlaps with the egg, then the player loses a point.  It is acceptable for the player to lose a point for each UpdateWorld cycle that the bullet & egg overlap.

The game is over when all the bricks have been shot.  At that point, the game should clear the screen (i.e., it should NOT draw the bug/bullets/egg/etc), it should clear the bottom status bar, and then it should display a message telling the user that they've finished the game in the top status bar, along with the player's final score.

Extra Challenges:

You are invited, but not required, to improve upon this game.  Some suggestions:

Group Work, Commenting:

            You are required to work in groups for this assignment.  If you have questions, please contact the instructor.

What to turn in:

How to electronically submit your homework:

Instructions to do this will be given in-class on the date that this assignment is due.