官术网_书友最值得收藏!

Chapter 4. Code Comfort

We've reached the precipice: we're staring at a game that doesn't do much and WON'T do much more unless we write some code. If you're brand new to this stuff, code is scary, or, rather, the idea of code is scary. Will you have to type a bunch of ones and zeroes, or cryptic punctuation along thousands of monotonous line numbers? If you've ever tried developing a game or if you've ever been taught to program using some ancient language in a high school computer course, code might have been the thing to undo you. But, here you are giving it one more crack at the bat. The world NEEDS a three-dimensional keep-up game, by cracky! It's time to show the world what you're made of.

What is code?

Code is just a series of instructions that you give to Unity to make it do stuff. We write lines (sentences) of code describing what we want to accomplish; these lines are called statements. Unity reads these statements and carries out our instructions. In Unity, you usually take a set of instructions and "stick" it to a GameObject. From now on, we'll use Unity's terminology Script to describe a collection of code statements.

主站蜘蛛池模板: 巩义市| 洪江市| 枝江市| 外汇| 松阳县| 宁海县| 大港区| 綦江县| 建瓯市| 蒙城县| 兰溪市| 木兰县| 平遥县| 土默特右旗| 高州市| 利川市| 新巴尔虎左旗| 马公市| 南乐县| 宜川县| 砀山县| 蓬溪县| 榆林市| 湟源县| 青河县| 永济市| 昌图县| 广州市| 云安县| 资源县| 四川省| 秀山| 寻甸| 淳安县| 将乐县| 宁国市| 新巴尔虎右旗| 桂东县| 枣庄市| 赣榆县| 彩票|