Pseudo code
Pseudo code is a way working out your program using the structure of the computer program but writing it out in plain English.
Here we have an example of some Else if statements being used to set limitations or boundaries on the player object’s movement along the x-axis. there is a lot going on in this snippet. lets take a look at how we got to this point. Keep your eye on the position indicators in the top right corner as we traverse the horizontal boundaries.
Before ever writing any actual code, I wrote down what exactly I was trying to do, I found my horizontal limits and then I used logical statements to develop my process for solving the problem. Using “if…then” statements I was able to create a logical path from start to finish. I wrote all this out in comments, inside my program. That way my thoughts and process was in front of me when I started to write the actual code.
Pseudo code is a very important part of the coding process. our brains don’t read the same way a computer does. But with pseudo code we can gather our information and thoughts in one place, solve problems, fix bugs/mistakes and develop an entire block of code logically, but in a way the we understand before we try to code it.