Table of Contents

Corning Community College

CSCS1320 C/C++ Programming

PROJECT: Move The Block (MTB4)

OBJECTIVE

Polish your breakout game, and add power-ups (at least 4). Ensure a smoothly running, playable experience.

EDIT

You will want to go here to edit and fill in the various sections of the document:

MTB4

Only task headings have been provided. You are not expected to know how to do the task given by just that description (although in some cases it can be adequately figured out). Instead, if no further information is yet present, ASK FOR DETAILS on the discord, then contribute that clarity here.

If something is present but needs polish: spruce it up.

If something is present but is incorrect: please fix it.

This is intended to be an informative, useful document that all can benefit from.

Those with prior experience, please be mindful not to gobble up all the low-hanging fruit from the newcomers.

URLs

power ups

It might be a good idea to implement structs to represent powerups. Within this struct, it would have an x and y value (this could be a struct in and of itself called point, which has two ints: x and y). The struct could also have a variable called type that represents what type of powerup it is, e.g., type = 1 for damage, and type = 2 for duplicating that ball. One easy way to represent all the possible powerups as integer values is through the use of enums (enumerations).

struct Powerup { Point position; int type; }

struct Point { int x, int y };

What is an enumerator? Microsoft definition: An enumeration type (or enum type) is a value type defined by a set of named constants of the underlying integral numeric type. this means that you can define named constants that have an underlying numeric value.

Example: enum Teachers { MATT = 1, JOE = 2 };

instead of literally typing 1, you could just write MATT, and it would represent the value 1, but the type is enum, not int.

Back to the context of powerups, you could make an enum as such:

enum POWERUPS { DUPLICATE = 1, MOARDAMAGE = 2, FASTER = 3 };

then make a struct:

struct Powerup { Point position; POWERUPS type; }

then create a struct with the desired powerup and position:

void main() { Powerup *ptrPowerup; create a pointer to a powerup ptrPowerup→position.x = screen_width / 2; set x and y values of the point struct within the powerup ptrPowerup→position.y = screen_height / 2; ptrPowerup→type = DUPLICATE; set the type variable within the powerup struct to DUPLICATE, which represent the underlying value of 1 } now everytime that you call ptrPowerup→type it will return DUPLICATE, which under the hood, represents 1.

 

SUBMISSION

To be successful in this project, the following criteria (or their equivalent) must be met:

  • Project must be submit on time, by the deadline.
    • Late submissions will lose 33% credit per day, with the submission window closing on the 3rd day following the deadline.
  • Executed programs must display in a manner similar to provided output
    • output formatted, where applicable, must match that of project requirements
  • Processing must be correct based on input given and output requested
  • Output, if applicable, must be correct based on values input
  • Code must be nicely and consistently indented
  • Code must be consistently written, to strive for readability from having a consistent style throughout
  • Code must be commented
    • Any “to be implemented” comments MUST be removed
      • these “to be implemented” comments, if still present at evaluation time, will result in points being deducted.
      • Sufficient comments explaining the point of provided logic MUST be present
  • No global variables (without instructor approval), no goto statements, no calling of main()!
  • Track/version the source code in your lab46 semester repository
  • Submit a copy of your source code to me using the submit tool by the deadline.

Submit Tool Usage

Let's say you have completed work on the project, and are ready to submit, you would do the following:

lab46:~/src/SEMESTER/DESIG/PROJECT$ submit DESIG PROJECT file1 file2 file3 ... fileN

You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches.

RUBRIC

I'll be evaluating the project based on the following criteria:

182:mtb4:final tally of results (182/182)
*:mtb4:submitted Vircon32 cartridge [13/13]
*:mtb4:submitted C code XML and build script [13/13]
*:mtb4:at least four powerups implemented [26/26]
*:mtb4:a structure is used in some manner [13/13]
*:mtb4:an array is used in some manner [13/13]
*:mtb4:a function is used in some manner [13/13]
*:mtb4:collision detection, ball against brick [13/13]
*:mtb4:a function is used with parameters passed [13/13]
*:mtb4:a function return value is captured and used [13/13]
*:mtb4:cartridge is NOT added to repository [13/13]
*:mtb4:proper bounds checking in place for all objects [13/13]
*:mtb4:committed project related changes to semester repo [13/13]
*:mtb4:screenshot or video to class discord channel [13/13]

Pertaining to the collaborative authoring of project documentation

  • each class member is to participate in the contribution of relevant information and formatting of the documentation
    • minimal member contributions consist of:
      • near the class average edits (a value of at least four productive edits)
      • near the average class content change average (a value of at least 1024 bytes (absolute value of data content change))
      • no zero-sum commits (adding in one commit then later removing in its entirety for the sake of satisfying edit requirements)
    • adding and formatting data in an organized fashion, aiming to create an informative and readable document that anyone in the class can reference
    • content contributions will be factored into a documentation coefficient, a value multiplied against your actual project submission to influence the end result:
      • no contributions, co-efficient is 0.50
      • less than minimum contributions is 0.75
      • met minimum contribution threshold is 1.00

Additionally

  • Solutions not abiding by spirit of project will be subject to a 50% overall deduction
  • Solutions not utilizing descriptive why and how comments will be subject to a 25% overall deduction
  • Solutions not utilizing indentation to promote scope and clarity or otherwise maintaining consistency in code style and presentation will be subject to a 25% overall deduction
  • Solutions not organized and easy to read (assume a terminal at least 90 characters wide, 40 characters tall) are subject to a 25% overall deduction
  • Individuals who have not participated at least 50% will be subject to a 50% overall deduction.