【用代数讲计算机科学】大型游戏里的变量 – 译学馆

• #### 科普

SCIENCE

#### 英语

ENGLISH

#### 科技

TECHNOLOGY

MOVIE

FOOD

#### 励志

INSPIRATIONS

#### 社会

SOCIETY

TRAVEL

#### 动物

ANIMALS

KIDS

#### 卡通

CARTOON

#### 计算机

COMPUTER

#### 心理

PSYCHOLOGY

#### 教育

EDUCATION

#### 手工

HANDCRAFTS

#### 趣闻

MYSTERIES

CAREER

GEEKS

#### 时尚

FASHION

• 精品课
• 公开课
• 欢迎下载我们在各应用市场备受好评的APP

点击下载Android最新版本

点击下载iOS最新版本

扫码下载译学馆APP

#### 【用代数讲计算机科学】大型游戏里的变量

CS in Algebra: Big Game Variables

Now you’re going to start creating your own video game.

As with most video games, you won’t have to start from scratch.

You’ll be building your game on top of some existing code called an engine which will

take care of a lot of the heavy lifting for you.

Most modern video games are also built on engines which allow the programmers to build

better games faster.

You’ll be writing the logic that controls how all the characters in your game look,

move and interact with each other and the game engine will take care of displaying your

creation on screen, animating your characters and keeping track of your score.

In the first stage, you’re going to modify the variables in your game by adding your

own title, background and images for your sprites.

Just click edit to edit the variable, then save and close to save your modification and

finally hit run to see your new game in action.

If something doesn’t look like what you expected, try troubleshooting your game.

Troubleshooting, also known as debugging, is when a programmer systematically examines

the code to determine the source of the unexpected results.

You can troubleshoot your game by opening the function of the variable that didn’t do

what you wanted it to do.

Check: did you modify the variable correctly?

Have fun changing the variables of your big game.

【B】Cod