kodu_Kodu教您的孩子直观地编程自己的视频游戏

kodu

kodu

image

Kodu is a visual programming language suitable to teach kids the basic of programming and to train their creativity. In today’s lesson, we will build a simple game that we can use as an introduction to Kodu.

Kodu是一种视觉编程语言,适合于教孩子编程的基本知识和训练他们的创造力。 在今天的课程中,我们将构建一个简单的游戏,我们可以将其用作Kodu的简介。

科杜的积木 (The Building Blocks of Kodu)

The world of Kodu consist of programmable objects where we can attach a behavioral script into each object that we place on the Kodu landscape.

Kodu的世界由可编程对象组成,我们可以在其中将行为脚本附加到放置在Kodu景观上的每个对象中。

Kodu’s programming language is a simple icon based programming user interface where the language are broken down into pages and rules.

Kodu的编程语言是基于图标的简单编程用户界面,其中该语言分为页面和规则。

Kodu has a list of built in behavior that we can attach to an object to make them move around, shoot objects, and perform incredible combat move with one another.

Kodu列出了一系列内置行为,我们可以将这些行为附加到一个物体上,以使它们四处走动,射击物体并进行令人难以置信的战斗动作。

Microsoft Kodu Game Lab has a series of ‘Getting Started’ video that is very useful for beginners to understand the basic of Kodu Programming.

微软Kodu游戏实验室提供了一系列“入门”视频,对于初学者了解Kodu编程的基础非常有用。

游览科杜世界 (Navigating Around the World of Kodu)

Here is a simple Kodu world that consist of trees and a motorcycle. The motorcycle is programmed to always wander the terrain and it should avoid any tree on its path.

这是一个简单的科杜世界,其中包括树木和摩托车。 摩托车被编程为始终在地形上徘徊,并且应该在其路径上避开任何树木。

Let’s add more more objects on the landscape and have the motorcycle chase and shoot them.

让我们在景观上添加更多对象,并让摩托车追逐并拍摄它们。

A wisp is one of the many characters we can create in Kodu.

小精灵是我们可以在Kodu中创建的众多角色之一。

The wisp will move around a designated path, and Kodu will spawn another wisp when it’s health reaches zero.

小精灵将绕指定的路径移动,当生命值达到零时,Kodu将产生另一个小精灵。

课堂练习 (Classroom Exercises)

To prepare for the lesson instructors need to install Kodu and download our Microsoft Kodu Classroom Kit into Kodu’s import folder: ‘C:\Users\[user name]\Documents\SavedGames\Boku\Player1\Imports\’. Kodu will automatically import the game when we load the game from the main menu.

为了准备课程,教师需要安装Kodu并将Microsoft Kodu课堂工具包下载到Kodu的导入文件夹中:“ C:\ Users \ [用户名] \ Documents \ SavedGames \ Boku \ Player1 \ Imports \”。 当我们从主菜单加载游戏时,Kodu将自动导入游戏。

Note: Instructors need to unzip the file to get the Kodu game file

注意:教师需要解压缩文件才能获取Kodu游戏文件

Begin the class by opening the world and ask the students to observe the motorcycle and the wisp behavior. The explanation might be something like ‘the wisp is the enemy’ because the game keep on regenerating the ‘wisp’ when the motorcycle destroys it.

通过打开世界开始上课,并要求学生观察摩托车和小精灵的行为。 这种解释可能类似于“小精灵是敌人”,因为当摩托车摧毁它时,游戏会不断再生“小精灵”。

Now open the wisp or the motorcycle program and ask the students to relate the wisp behavior with the code. After the student successfully explain the code, ask volunteers to modify the code for the following set of behaviors.

现在打开小精灵或摩托车程序,并要求学生将小精灵的行为与代码相关联。 学生成功解释了代码后,请志愿者针对以下行为进行修改。

When appropriate have the students to modify the code for each objects and explain why their solutions does not work.

在适当的时候,让学生修改每个对象的代码并解释为什么他们的解决方案不起作用。

  • Add Trees or modify their colour

    添加树或修改其颜色
  • Adjust the wisp’s behaviour so that it produces a coin when the motorcycle destroys the wisp.

    调整小精灵的行为,以便在摩托车摧毁小精灵时产生硬币。

  • Program the motorcycle to eat the coin to increase the game score

    对摩托车编程以吃硬币以增加游戏分数

  • Reverse the role of the wisp and the motorcycle by having the wisp destroying the motorcycle

    通过使假发破坏摩托车来扭转假发和摩托车的作用

That’s all there is to it. Enjoy!

这里的所有都是它的。 请享用!

Download Microsoft Kodu Classroom Kit

下载Microsoft Kodu课堂套件

Credit

信用

The author would like to thank Trevor Berkolay for designing a good classroom exercise, Eric Z Goodnight for his relentless effort in testing the game, and The Geek who gave the final editing on the article.

作者要感谢Trevor Berkolay设计了一个很好的课堂练习,感谢Eric Z Goodnight在测试游戏方面的不懈努力,以及对文章进行最终编辑的The Geek。

翻译自: https://www.howtogeek.com/howto/32159/kodu-teaches-your-kids-to-visually-program-their-own-video-games/

kodu

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值