Corning Community College
CSCS1320 C/C++ Programming
Complete your game, making sure to incorporate all major programming concepts encountered during the semester. Also implement some added functionality, such as sound effect/music, or visual effect.
You will want to go here to edit and fill in the various sections of the document:
To get inputs from a gamepad you can include the input.h
header file.
Most functions return a integer value that represents whether a button is being pressed or not
int buttonA; buttonA = gamepad_button_a() if(buttonA == 1) { print_at(0, 0, "Button A pressed"); }
or
if(gamepad_button_a() == 1) { print_at(0, 0, "Button A pressed"); }
Some functions require an adress input: such as gamepad_direction()
int directionX; int directionY; gamepad_direction(&directionX, &directionY); if(directionX == 1) { print_at(0, 0, "Right pressed"); } else if(directionX == -1) { print_at(0, 0, "Left pressed"); } if(directionY == 1) { print_at(0, 18, "Up pressed"); } else if(directionY == -1) { print_at(0, 18, "Down pressed"); }
To be successful in this project, the following criteria (or their equivalent) must be met:
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.
I'll be evaluating the project based on the following criteria:
286:fwg3:final tally of results (286/286) *:fwg3:all files needed to build cartridge are submitted [34/34] *:fwg3:code compiles, cartridge builds with no warning or error [36/36] *:fwg3:game utilizes selection statements and relational logic [36/36] *:fwg3:game utilizes iteration structures within game loop [36/36] *:fwg3:game utilizes arrays in some manner in game loop [36/36] *:fwg3:game utilizes structs within game loop [36/36] *:fwg3:some modularization is done with functions [36/36] *:fwg3:committed project related changes to semester repo [36/36]