top of page

C-Sharp!!!

Adrien J.

So for the past couple of weeks, I have been learning the rule of C-sharp. C-Sharp is a typing coding the game designers use. It is its own language. As you might have guessed, learning a new language can be difficult. This is the case with C-Sharp. I took a Unity Cert Course to better understand C-Sharp. During this course, I learned a few things. The most useful tool I learned was: coding a controller script, coding an enemy AI, and coding a print screen. A controller script determines how the player model moves when the actual player presses a certain key. Another code I learned was a print screen. Using Adobe Visual Studio, I created a code that displayed the text of the screen when the player starts the game. The code was "3, 2, 1, Go!" and it was triggered after a certain time. This indicated when the player was able to start the race. (It was a racing game.) The last and most complex code I learned was the enemy AI code. This code took an enemy object and gave it the ability to move randomly, spot players, chase players, and attack them. For this code, I create a specific section for each phase the enemy was in. (An attack section for attack mode.) Additionally, I had to make sure the enemy followed certain rules so that it did not take the shortest path to the player. While I did not experience many problems with coding, there was a time when I made a minor error in the code, which caused the entire C-sharp script to dysfunctional. You HAVE to make sure the code is perfect or else it won't work.


I definitely plan on using these skills I learn within the past week to help me build my game in the future. The video game version of Crystal will have enemies that need to have AI. I plan to use a similar if not the same code for the enemies in this game. While it is useful to know how to script a controller, I think I will use the first-person controller already constructed from unity for my game. The reason for this is a matter of time and efficiency. Nonetheless, it is still a useful skill. The print screen script will also be useful for creating "Start" and "Game Over" scenes within my game.


-Useful tools for C-Sharp

-Future applications of scripting in C-Sharp

3 views

Recent Posts

See All

Comentarios


  • Facebook
  • Twitter
  • LinkedIn

 All works on this website are original and are not for use without permission from the artist; © 2019, Adrien Jacobs.

bottom of page