This week in Game Design we started learning the C# coding language in Unity. This has been both a fun and frustrating trip as I have learned a lot of new things about coding but have also had to learn how to be detailed when writing code. So many things can go wrong when you make a new code. Anything can throw off the whole script from something as big as using out of scope variables to something as small as forgetting a semicolon or capitalizing a letter that should be lower case. Throughout the week I have been using a simple checklist method to check my code when I get a bug since my codes are still small and simple. First I check for the most likely things such as missing brackets of semicolons. If that doesn't work I usually go back to the tutorial video to compare my code with a working code. This helps me pick up any other mistake that might have occurred such as misspelled words and capitalization. Using this two-step checklist I have been able to solve all my bugs so far but in the future it will becoming harder as I don't have an easy-out with the tutorial. In the future I should work more on defining what exactly is wrong with my code and then work logically to fix it one step at a time until I get to the root of the problem. This method will not only help solve problems quickly but since it gets to the root of the problem it will help prevent the same kind of bug from appearing in the future. Other than the occasional bug however, I have really enjoyed coding and am looking forward to getting better at it so I can start making real games with coding.
0 Comments
|
AuthorSamuel Henry is a Senior at DSA in NC. He has 3 years of prior experience in the game design pathway and he's looking forward to becoming a great game designer. The views and opinions expressed in this blog are solely those of the author and do not represent those of Durham School of the Arts or Durham Public Schools Categories
All
Archives
May 2019
|