Week 4 : The Rush...
- Alwin Joshy Joseph
- Mar 6, 2021
- 4 min read
Updated: Mar 7, 2021
Class 10 I have no memories of this week to say or share, all I feel to say is it was fast, stressful, pointless, pointless and pointless...That Sunday, yes I remember that silent day, that one just like every other. well, woke up, just to check if I am alive, and yes I was. I then dug myself out of the bed, moved to the door made some tea. Warm, comforting, flowing, dark and fragrant. there is online class hosted at 2 o'clock, I got some time before that, I walked out to see the sun, leaned on the hot rail of my balcony, sucked in that fresh air, coz I can for now. stood there observing the static and non-static elements of nature also at those who tries hard to prove their existence to themselves and others. As it was my chest day, I rolled out the mat and started working out, guess I too try to prove myself of my existence.
fast forward, the class began. my team quickly began presenting our team progress lately, our tutor liked our progress and appreciated our efforts individually. then Vishnu presented our marketing plan. then tutor started sharing his experience with marketing and places and digital areas were he market and advertise his products and games. He did a review of our learning journal, the once like this one. he asked me to add more to the serialization section, as he felt I quickly grazed over it. Then we did a bit of Photon Networking, and he showed us how to make the movement working and also how to transition the scenes. And that day later I began working on the Loot system for our game, what my main intention was while designing was the game loot availability and other similar factors of the game should be completely tunable by the designer using curve editor. I added curves for factors such as chance, amount and rate for different thing such as cards, guns and pickups. Mentioning other things we were contacting audio artists and been contacted my some. we send them song examples and asked them to come up with something. and later decide to pick one out of them based on the quality. Class 11 It as a mundane Thursday, everything move while being perfectly still. Every thing got a time , a time to, a time not to, a time to be, a time not to be, Mortals serving the law of Entropy, clowning to its fading rhythm, perfecting the dance before they hit the ground. All to be forgotten in the ocean of time, to the point even their existence might be debated at a point in later times. I never understood what leaving means or better put what its all for, what or why should one care. Well enough talk the class started. we moved quickly into the topic, I was about the Photon view and how can it be use to send and receive data across to other clients. Basically you get access to it on implementation of an Photon Interface. Then we went over what RPC calls and its uses. its used to send data to multiple clients at once, its very expensive to do and should be avoided in most cases. RPC calls are function that are tagged using an attribute [RPC] and can be called by the master client and then gets called in very other client in the server. Its particularly useful in things like Game Over for example. Then we discussed about lag-compensation and how its done to smoothen out the jittery movement caused by the data transfer delay. so the solution is that either we can lerp of move the object my multiplying the new direction of movement by the time the data took to reach the current location. Then we moved on to learning and implementing JavaScript. we began by installing Node.js server on our system. then made a simple app.js file and ran a console.Log("Hello World") command. which I was too familiar with.
Class 12 Its Saturday, I took a break from my office work, because there was lot of work that I need to finish on our game. I implemented the loots system but haven't got done with spawning the object as the object pooling system was not ready. We quickly got started with JavaScript, we opened our previous project and made an object in json format. the variable can be initialized using let or var the difference is that let respect the scope while Var doesn't. then we learned the new way of making functions. while the old way of making functions is by using the function keyword. while the new way is by defining constant and assigning a lambda function to it. as we made an object and demonstrated that it exists in JSON format we tries to convert it to json by stringify command. We tried to use the import command and as it was not a javascript default we were having issues, we tried to install a package called ESM to make import work. but it failed and we thought to stick with using require. Then we were shown how to save the class to a json object using the file-system we imported filesystem using require(fs) then use fs.write command to write it to a file in our directory. then we were shown how to make a copy of an object using the spread operator {...OriginalObject}. whos main function is to take the content of a class and put it into a new data structure. then he introduced us to a quirk of JavaScript by using ===, so what it is is that the == will compare the two objects in string format irrespective to the object type. Then we made a server using the http package and made it listen for request and send response. we defined a header and the content type. we also installed nodemon package as dev using following format installed nodemone --save dev. we tried to get live reload, which means the browser auto reloads when we save a change.
Recent Posts
See AllClass 39 : We join in the class on Sunday. There's is nothing much to teach from our tutors side. all of us guys are doing our curricular...
Class 36 : It was a Sunday. a busy morning. I showed up for the class, the tutor asked us let him know if we need any support with the...
Comments