Qty No 1!

Day 2 at Cyens Summer Programme 2021

    English·Blog·CyensSummer2021

  1. Day 2 at Cyens Summer Program
    1. Sleep Deprived, Still
    2. Before Start
    3. Course of the Day
  2. That’s It

Day 2 at Cyens Summer Program

Sleep Deprived, Still

So this time I did indeed sleep early at 21:00, slept so fast that I forgot to adjust the AC to sleeping temperature.
Yeah so I found myself woke up at 22:30 because of stomachache.
After sometime at ~0:30 I finally fell asleep in the gigantic sheets in found at the other room.
Then, I woke up to the siren at 5:30 which I did not expected but it was ok since I have alarm on my phone set as 5:30 as well.

Before Start

My parents are having their 2nd dose of covid vaccine today so I went on to the centre early alongside with my mother joining the ride which is rare.
The navigation was simple and not much time was wasted on the way.
That is exactly the problem.
I arrived at 7:30 when the programme starts at 8:00.
So I sat outside for about 20 minutes until other people started coming when I finally gathered enough courage to, sit inside.
Meantime I was chatting with someone else about live2dviewerex and reading novels.

Course of the Day

From now on until Friday, All we gonna do is about game development in Unity.
Different from last year the game we are going to make is Tanks as featured in Unite Boston 2015.
It wasn’t bad, the idea was promising but achievable.
But, it’s outdated.
I mean, the requirement for it is Unity 5.
Yes, UNITY 5.

Anyways, we started off by opening Unity. Where of course things go wrong.
So, imagine redownloading Unity with a guest wifi which may or may not work depending on it’s attitude to work, coding on macbook with a simple txt editor because VS 2019 would take over a day to download, and definitely some others which I did not see.
At first we did an introduction to Unity by creating an empty project.
Some basics were talked about including but not only creating a plane (geometric), creating a sphere, navigation, adding components like rigidbody, etc.
And we were told to write a simple script of controlling the ball to move around the platform. We did not really “write” it, instead they basically copied a snippet from the projector.
Well what I did was trying to use the new input system which was confusing because I tried to do with input action thing. Finally after some help by one of the lecturer I finished my script which was really unnecessary chunky due to my unfamiliarity to the new system.
By the way in the meantime I have replaced the material of the ball with a rubber material I found.
It looked really cool and it was the first time I ever saw a height map in action.

After that we created a new project and imported the semi-uno-decade-ancient assets of Tanks!. Surprisingly and unsurprisingly it ran well in 2019 lts version of Unity.
We started off by entering a new scene, and dragged-n-dropped the map prefab.
Then, after deleting the second light and changing our layout to 2 by 3 which I could not personally stand. We baked our light.
The smell and the sound when baking from the oven was so great, and that is a sign for a healthy oven.
Anyways, then we imported the tank model and gave it rigidbody with constraints. As well as a sound source.
Then be began doing our first script.
And it was simply to finish a semi-complete script with goals written in comments and a giant part of code commented out for no reason.
If only I had GitHub Copilot or it will be a great chance to try it out.
But I still got TabNine free and it was great to write and just press tab.
We were still basically following what the lecturer did.
Then in one break I decided to write my own code before the lecturer and well, I forgot about something called Time.deltaTime. As well as Quaternions needs to be multiplied instead of added. Which resulted into my tank flying crazily fast and the turning behaving like a steering wheel.
After that, the lecturer did something unthinkable to me.
He added a second sound source onto the tank.
It was extremely cursing to me for no reason to add 2 sound sources to 1 game object.
And that haunted me.
Which I got away with, and I was trying to add shader to the tank to make it look better where I realised that, shader graph was only available on universal render pipeline or hdr render pipeline.
When I changed to URP, the world turned pink for me.
So I imported shaders from asset store.
We then talked about cameras and perspective and stuff, but did not had the time to script the camera to move around according to the tanks.
Also, remember that, spelling mistakes are the worst mistakes when programming.

That’s It

For day 2.

Tianyu, Qi
Good Luck
( ̄︶ ̄*))

Page View Count:  ・  Site View Count:  ・  Site Visitor Count: