Previous ISP - CS1

Picture of Gameplay of my CS1 ISP

Concept

   The concept of my ISP from last year was a platformer style game. A platformer game is a 2D game where a character has to move around and jump from platform to platfrom to get to the finish and complete the level.

Motivation

   The motivation for making a platformer game was looking back on what games I had fun playing when I was younger and immediately Mario came to mind. Making a game similar to Mario seemed like it would be a fun project as well as being simple enough to finish in the time given.

Code Segments and Explanations

Picture of code for the character Picture of code for the character

   This code shows how the character switches between frames to make it look like the character is running, how the character jumps, and the characters boundingRect/hitbox.

Picture of code for the Platforms

   This segment of code is for the platforms used in the game. In the code the platform is made as a black rectangle with a boundingRect/hitbox

Picture of code of the background Picture of code of the background

   These code snapshots show how the background of the game was created. There are lots of varibles being used to make everthing on the game proportional to the canvas size aka the screen size so that the game would look proper on all diffiernt screens. The code is also being used to draw the 3 mountains and the sun as the background.

Conclusions

    When coding this ISP almost nothing went as expected. There would always be some kind of error with the game being proportional to the canvas size of the hitboxes of the character, platforms, and lava not interacting as they should. In the end we were able to fix the issues one at a time and the project turned out pretty good and it was working well by the time presentation day came around.