core principles
HTML- language of the web
JavaScript- *REMEMBER: no wrap <head> opt.*
CSS- makes websites look nicer
complex text is known as a string and is written in quotation marks so the computer knows not to treat this as code.
JSFiddle notes:
keyword: var (variable) w/ [INSERT TEXT] = “string”
alert ([INSERT TEXT])
you can also add variables together.
var number1 = 10
var number2 = 5
alert(number1 + number2) will display 105 if the numbers are in “
text box:
var x = prompt (“question?”)
*user types*
alert(“ok.”)
Using Unity
what tool in unity could be utilised by myself?
I did media in school and have a rather wide knowledge of cinematic shots and storytelling, so using tools like timeline and cinemachine’s camera tools, I could create cutscenes and compelling story elements for games.
Pseudocode
Pseudocode is a simplified code that lacks a specific syntax only meant to display an intention and design.
Syntax
Syntax is the order and terminology of coding language, like the rules of the english language. “Me speak good english” is incorrect, and the correct term would be “I can speak good english.”
it’s the same with code, adding ; at the end of each line, and using { and }.
breakpoint
breakpoint is a marked place for the program to start debugging.
a list of operators
+, -, =, ==, !=
keypress code^
wittled down the errors in the code that Chris set us from 50 to 30, there are still mistakes but I will be fixed in the future.
//= comment, to make a string of code unreadable to the computer.
creating a list:
A list, like an array, can store any type of object as long as we specify what type of object we wish for our list to store.
Creating a list of favourite videogame characters:
![](https://joelflemingnextgen.wordpress.com/wp-content/uploads/2020/01/second-favourite.png?w=669)
![](https://joelflemingnextgen.wordpress.com/wp-content/uploads/2020/01/programming.png?w=1024)
![](https://joelflemingnextgen.wordpress.com/wp-content/uploads/2020/01/list-week-list-week.png?w=1024)
making a randomly spawning object:
![](https://joelflemingnextgen.wordpress.com/wp-content/uploads/2020/01/programmy.png?w=762)
![](https://joelflemingnextgen.wordpress.com/wp-content/uploads/2020/01/programmy-2.png?w=1024)
creating a loop:
A loop is a way to execute statements multiple times.
a while loop will loop as long as a set condition is true.
an infinite loop is sometimes caused by an error in the code, and lacks an exit.
![](https://joelflemingnextgen.wordpress.com/wp-content/uploads/2020/02/uh-oh.png?w=388)
![](https://joelflemingnextgen.wordpress.com/wp-content/uploads/2020/02/infinite-loop-solution.png?w=329)
![](https://joelflemingnextgen.wordpress.com/wp-content/uploads/2020/02/whileloop-undone.png?w=683)
![](https://joelflemingnextgen.wordpress.com/wp-content/uploads/2020/02/solution-whileloop-done.png?w=363)
We were tasked with fixing a loop of llamas appearing on the game scene, which required a similar fix to the one above. We had to have only 10 llamas spawn instead of the millions.
for loop:
a for-loop (or simply for loop) is a control flow statement for specifying iteration, which allows code to be executed repeatedly. … For-loops are typically used when the number of iterations is known before entering the loop.