kodu

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

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

  1. 家长必备技能!教您限制孩子手机上的娱乐功能APP!

    因疫情原因,全省中小学校3月2日起开展线上教育,学生不返校在家上课,可是家长却要上班不在家,相信大家最担心的就是孩子"自觉性". 孩子一个人在家学习,就怕孩子不认真听课,一会玩手机 ...

  2. 推荐几款适合孩子玩的编程游戏

    在上一篇文章<孩子喜欢玩iPad等电子产品怎么办>中,我们鼓励家长合理控制孩子的屏幕时间,与此同时,为孩子挑选合适的电子消费内容同样重要. 今天就给大家推荐几款可以鼓励孩子玩的游戏,让孩子 ...

  3. 某程序员吐槽:媳妇要给孩子报少儿编程班,将来继续做程序员!以后要看到穿着纸尿裤的P7!...

    话说:"龙生龙,凤生凤,老鼠的儿子会打洞".一般而言,父母的职业多多少少会对孩子产生影响.那么程序员是否希望自己的孩子继续做程序员呢? 一个程序员发帖抱怨:媳妇想给孩子报少儿编程, ...

  4. TurnipBit:可以带着孩子一起玩编程的MicroPython开发板!

    2019独角兽企业重金招聘Python工程师标准>>> 从小就编程"有可能不只是名人传记里才能看到的故事,现在"全民编程"已成一股热潮,那么让孩子接触编 ...

  5. 为什么你应该让你的孩子尽早学习编程

    点击关注 异步图书,置顶公众号 每天与你分享 IT好书 技术干货 职场知识 本文大概 3367 字 读完共需 9 分钟 Tips 参与文末话题讨论,即有机会获得异步图书一本. 什么是编程,为什么编程很 ...

  6. 学计算机编程还是学奥数,小学生家长担心奥数被封 孩子改学编程冲名校

    开学在即,苏州许多家长和学生纷纷到书店选购新学期的教辅用书. 王建康 摄 怕奥数被封小学生转学编程 新的一学年很快就要开始了,家长们大多在抓紧这开学前的有限几天,既要忙着给孩子添置文具.教辅用书,又要 ...

  7. 儿童学python的平台-干货:孩子免费学习编程的十大网站&App

    在美国,有90%的家长希望他们的孩子学习计算机科学,因为这是未来高收入工作普遍要求员工所具备的技能.而学习编程则是孩子深入学习计算机知识的基础. 今天我们向大家推荐一些免费的学习平台,已经开始学习编程 ...

  8. OSChina 周二乱弹 ——你会教自己的孩子写代码吗

    2019独角兽企业重金招聘Python工程师标准>>> Osc乱弹歌单(2017)请戳(这里) [今日歌曲] @老领导 :分享的单曲<彩云之南> <彩云之南> ...

  9. 美国工程师爸爸自述:我为什么让孩子学少儿编程

    当软件工程师霍华德斯想要教他10岁的女儿和8岁的儿子学习少儿编程时, 他想到了他用乐高学习的乐趣,这是他学习的第一门编程语言. 他很快发现"乐高很老了.现在有很多不同的选择." 所 ...

最新文章

  1. ie浏览器修复工具_电脑故障修复不求人!50个小工具可帮你一键修复
  2. ModuleNotFoundError: No module named 'mpl_toolkits.basemap'
  3. Redis(十三):Redis实现乐观锁
  4. linux 如何判断当前用户
  5. java开灯问题_C++之开灯问题(链表)
  6. java map遍历_Java中Map集合的两种遍历方式
  7. vue watch 监听不到变化_关于vue中watch检测到不到对象属性的变化的解决方法
  8. 如何将c语言中的文件,急求如何将下列C语言程序数据存储到文件中?
  9. 转行经验分享,关于软件测试的感悟,你想知道的都在这里……
  10. 负载均衡算法及手段(转)
  11. 通天塔之石——企业级前端组件库方案
  12. 网络安全与信息安全【知识点】
  13. 判断是否打开相机权限,如果没有打开相机权限
  14. 冰封王座笑话:各英雄临死前说的话
  15. python 开放端口探测工具
  16. Win10下蓝牙音箱无法调节音量的解决方案
  17. 数据管理执行指南 | 你需要知道什么?
  18. css设置元素抛物线,CSS3 抛物线波动(Parabola Wave)
  19. 如何让你画里的鱼,游进海里?
  20. 如何规范地使用双向(inout)信号?

热门文章

  1. 服务器虚拟环境使用指南
  2. 从隐函数存在定理到隐函数定理
  3. android 如何获取网络视频的第一帧
  4. 每周推荐短视频:谈论“元宇宙”要有严肃认真的态度
  5. 我们应该怎么去认识信贷
  6. 竹云+巨杉丨互信认证 安全可靠
  7. 城市太美、生活步调太悠闲
  8. 健康生活无需等待,松下罗密欧系列洗衣机守护你的四月天
  9. 运营管理最新版史蒂文森_《运营管理(英文版第11版注解版国际经典原版教材)》(美)威廉J.史蒂文森著【摘要 书评 在线阅读】-苏宁易购图书...
  10. 学习AlphaGo理论知识-----part two