Today we worked on code for a 2D spaceship game in Unity. We focused on the data types we were using in the code and the main four which were Boolean (true or false), integer (a whole number), float (a decimal number) and string (a chain of characters).
We wrote this code together which allowed us to get our spaceship (seen in the first image) to move. The image of code above shows us the data types float and vector 2. It also shows an access modifier seen as “public” which allows us to be able to change the spaceships thrust speed and rotation speed within unity in the inspector tab as seen in the image below.