Educational Video Game

Educational Video Game that attempts to teach the player a small part of Modern European History.

Engineer

Ashwin C

Area of Interest

Computer Science

School

Mountain View High School

Grade

Rising Junior

Final Milestone

My final milestone is yet to be achieved. 😉

Third Milestone

My third milestone is also yet to be achieved 😉

Second Milestone

second milestone

The reason for this was due to the fact that the layer, the player, and the player’s collision capsule were not set to the same layer. After I created a layer and set the proper features accordingly, the player went flying off into space. At this point, I decided to reinstall and I believe this solved all the issues. After setting the same layers, and setting the proper value of gravity over the world, the player was finally not following through the world or going off into space. The animations worked and the first major part of this milestone was finally complete. The next part was to work on the camera. For this, I added a camera component and wrote a script. Everything worked except for the fact that the camera would not move on the y-axis. After many hours of searching, I finally decided to ditch the script and use the cinemation tool installed within Unity by default. I customized their camera asset until it worked the way I wanted it to(very professionally working btw). However, the camera was still not changing on the y-axis. I decided to go into the input manager and change the input from mouse movement to keys. It worked then so I thought it was an issue with my mouse but after giving the input manager a further look, it seemed that I set the axis of the input to a joystick axis rather than the Y-axis. After a quick change to the y-axis and a swap back to mouse movement, the camera finally began to move on the y-axis. At this point, my second milestone was reached however I wanted to add camera collision so that it would not clip through the walls of the church and the houses on the map. This worked for the walls and houses that had a rigidbody component and somewhat of a collision system but not for all. Nevertheless, I had hit my second milestone with only a few bugs to fix for the third milestone.

My second milestone was to add animation and work with the camera movement. In other words, add somewhat of a resemblance of a video game. Since the animations are binded to the correct key binds, the player is now able to use their legs and arms to fight but more importantly the player can now navigate themselves through the map. The running animation is smooth and very natural and the player is given the appropriate speed making it look very realistic. For the animation, I used the free version of a mecanim animation pack which only came with certain animations but it was sufficient enough for my game. After the first install, the animations just did not work. The player model would fall through the ground because it was not able to detect that there was in fact a ground beneath the player.

First Milestone

First Milestone

This was entirely done in unity with no external tools, assets, or any dependencies. Shortly after, I acquired the medieval interiors asset pack to decorate the insides of the church. This was the longest and most tedious part of the map development process. Using the assets took a while in the beginning but I was able to significantly decrease the time of creating the map by using the scale tool. After the church was completed, I needed the knights low poly asset pack to create the houses and castle to populate the rest of the terrain. This was where I hit my first and only roadblock. I was unable to purchase this pack from the asset store that day, consequently that day was somewhat of a waste. I tried again the following day and met success this time. After a few short hours of scaling and positioning, the map was completed and I reached my first milestone. With the map completed, the goal from here will be to add functionality to the camera, animate the characters, and begin programming the various features of the game. In my opinion, this will be the milestone in which I will learn and complete the most.

I have successfully achieved my first milestone. I finished the very first functional version of the game’s world or the map. This includes the castle, the houses, and the church’s interiors all completed. As of right now, there is no way to truly interact with the game. If the game were to be ran, you’ll be greeted with a static camera unable to rotate or move, but you would see a portion of the map. This map will be later used and the player will have to interact with it. I began by creating the land or the terrain. As any other game, I had to first make the boundaries which I was able to do with Unity’s built-in terrain tool. If you look at the image posted, you will see ridges on the edges of the map which mark the player’s boundaries.

RGB Night Light

My starter project was the RGB night light which is exactly what it sounds like. It is a simple bulb that turns on when it detects that it is night. The photoresistor determines the light intensity in the environment. The data is sent back through another jumper wire to an analog input on the redboard from which the code is able to access and interact with this data. The code uses the value returned from the photoresistor and compares it to a certain threshold. If the value returned is less than the threshold, the redboard passes the current to the potentiometer. Based on the potentiometer’s position, a certain value is returned to the redboard in an analog input. The code uses this value from the potentiometer to set the color settings for the led hence creating that ‘RGB’ light. As most things, when I first finished connecting the resistors, jumper wires, and the various other elements, the night light did not work. After about an hour’s worth of debugging, a part of the problem resulted from a few incorrect inputs and output slots. However the main issue was the fact that the common pin of the LED light was connected to the ground rail of the breadboard. A quick switch to the 5V rail fixed the problem and the night light worked exactly as expected. Another problem was the fact that the RGB led was not really RGB. Because the led light used was a cathode, it did not follow the rainbow color scheme as the sample source code assumed. As a result, I had to not only modify the code to the RGB color scheme but I also had to invert the colors to get a truly rainbow RGB light.

Leave a Comment

Start typing and press Enter to search