我的图形化编程scratchh所有控制按钮都显示不出图标?

开始先介绍人物。姓名:RON AMADEO职业:安卓开发程序员,同时还喜欢拆解系统,专注于安卓系统和谷歌产品的评测员。文章发表于:美国知名科技博客媒体。(隶属于康泰纳仕集团)文章标题:《华为鸿蒙OS:’假装自主自研‘的操作系统》。 Richard Yu, the CEO of Huawei’s consumer business group, told the outlet that HarmonyOS "is completely different from Android and iOS." Huawei President of Consumer Software Wang Chenglu repeated these claims just last month, saying (through translation), "HarmonyOS is not a copy of Android, nor is it a copy of iOS."余承东对媒体说:“鸿蒙OS与安卓系统和IOS系统没有任何关系。”在上个月,王成录重述了这个说法,他表示:“鸿蒙OS不是安卓系统,也不是IOS的复制品。”After getting access to HarmonyOS through a grossly invasive sign-up process, firing up the SDK and emulator, and poring over the developer documents, I can't come to any other conclusion: HarmonyOS is essentially an Android fork. The way that Huawei describes the OS to the press and in developer documents doesn't seem to have much to do with what the company is actually shipping. The developer documents appear almost purposefully written to confuse the reader; any bit of actual shipping code to which you hold up a magnifying glass looks like Android with no major changes.通过隐私注册(带有污蔑性,因为华为的开发者需要信用卡、护照、驾照等隐私材料)访问鸿蒙OS,启动SDK和模拟器,并仔细研究开发者档案;我只能得出一个结论:“鸿蒙OS是安卓的一个分支。华为向媒体和开发者档案描述的内容似乎与实际的鸿蒙OS并没有太大关系。开发人员所书写的文档似乎有意在混淆查阅者;但你仔细看其中内容,鸿蒙OS任何代码都像安卓系统,并没有重大变化。”The phrase "fake it till you make it" is often given as motivational advice, but I've never seen it applied to OS development before. If you've ever seen a modern Huawei Android phone, HarmonyOS is largely the same thing... with a few strings changed. So while there's not much new to see, we can at least dissect HarmonyOS and debunk some of Huawei's claims about its "brand-new" operating system.“假装你能行,直到你成功。”这是一句美国的俗语,用来激励人们,但我们从来没有将这句话应用在操作系统的开发里。如果你见过华为的安卓手机(EMUI),鸿蒙OS实际没有区别…也许换了个几个字符。所以,即便没有太多新东西可以看,但我们至少可以分析鸿蒙OS,揭穿华为对自主自研操作系统的说法。ust a trip to the app info screen will confirm that this phone runs Android. You'll see apps like the "Android Services Library," "Android Shared Library," "com.Android.systemui.overlay," "Androidhwext," and on and on, for about 10 different entries. It looks like some packages got hit with a find-and-replace, changing "Android" to "HarmonyOS." If you look at the app info for the "HarmonyOS System" package, you'll see it uses the Android system icon (the "Android green" color is a dead giveaway) and a label saying "version 10." Uh, isn't HarmonyOS on version 2?(中间删除一部分这位评测员对华为开发者注册的骂娘,以及华为在虚拟机中刻意在屏蔽一些操作……)浏览应用程序就可以确认这款手机运行的是安卓系统。你会看到像:“Android服务库”、“Android共享库”、“com.Android.systemui.overlay”、“Androidhwext”等。你会发现这些软件包被替换了,例如:“Android”改为“HarmonyOS”。如果你查看鸿蒙OS软件包里的应用程序信息,你会发现Android的系统图标,还有一个写着‘版本10’的标签。嗯?系统版本不应该是鸿蒙OS2吗?The "version 10" here is a reference to Android 10, which seems to be the version HarmonyOS is based on. If you visit the "Huawei App Gallery" (which has a ton of apps... because it is just an Android app store), you can choose from any number of "system info" apps, which will all identify the phone as running "Android 10 Q."HarmonyOS is also way, way too complete for a beta. We know what an in-development operating system should look like—something like, for instance, Google's Fuchsia or Samsung's Tizen. You should see nonexistent app selection, limited features, and other rough edges. If HarmonyOS really is a "new" operating system, Huawei's engineers are doing an incredible job! They have even perfectly copied every single Android 10 feature! There is a great gesture-navigation system, a million settings, a permissions system, NFC tap-and-pay support, dark mode, and a killer notification panel!Huawei says commercial HarmonyOS phones could launch this year, and I believe it. That is totally possible when you are just shipping Android.For a brand-new operating system that isn't out yet and has zero users, the developer support Huawei has lined up is also incredible! In the Huawei App Gallery, you'll see apps from Google, Microsoft, Amazon, TikTok, WeChat, Tencent, Baidu, Weibo, Evernote, and more. You'll also find thousands of app reviews dating back several years from users who can't possibly exist, because HarmonyOS is brand-new and isn't Android, right?Huawei's main contribution to HarmonyOS is the same thing it contributes to its builds of Android in China: Huawei replacements for the Google Play ecosystem. 我想,’版本10‘是指安卓10,但这似乎是鸿蒙OS的基本版本。如果你访问华为应用商店,里面有很多应用程序……因为它似乎只是一个安卓应用商店。你可以从选择任何程序的’系统信息‘,这些应用程序都会将手机识别为’安卓10‘。我们知道开发中的操作系统是什么样子,比如谷歌的Fuchsia或三星的Tizen,有限的功能和其他粗糙的边缘。但鸿蒙OS的测试版本太过完整了。如果鸿蒙OS真的是一个自主自研的系统,那么华为工程师们做的太棒了。他们甚至完美复制安卓10的每一项功能!很棒的手势导航、一百万个设置、权限系统……华为表示鸿蒙OS在2021年正式推出,我相信这是完全有可能的,当然你只会收到安卓的推送。对于一个尚未推出、用户为零的自主自研系统,华为获得的开发者支持也让人难以置信!在华为的应用商店里,您会看到来自谷歌、微软、亚马逊、TikTok、微信、腾讯、百度、微博、Evernote等的应用厂商的用用。你会发现这些应用都有评价,而且这些评价都来自几年前,来自不可能存在的用户,因为鸿蒙OS是全新的,不是安卓系统,对吧!?华为对鸿蒙OS主要贡献,与其他厂商在中国构建安卓系统的贡献相同:华为取代了Google play生态系统。All open source operating systems, Android included, stand on the shoulders of giants and pull in tons of code from upstream projects. Android uses the Linux kernel, the F2FS and Ext4 file systems, Libc and Libc++, Java, OpenGL and Vulkan, OpenSSL, Webkit, and a million other projects. No one would argue that Android isn't its own operating system, though. Android also contains a ton of Google-developed code, like (originally) heavy forks to the Linux kernel, the Dalvik VM/Android Runtime, built-from-scratch touchscreen code and a constantly evolving touch interface, phone call support, and more.包括安卓,所有开源系统都站在巨人的肩膀上。他们从开源项目中获取大量代码。Android使用Linux内核、F2FS和Ext4文件系统、Libc和Libc++、Java、OpenGL和Vulkan、OpenSSL、Webkit以及其他一百万个项目。但是,没有人会说安卓是自己的操作系统。After hours of poking around on HarmonyOS, I couldn't point to a single substantive change compared to Android. Other than a few renamed items, nothing is different. If anyone at Huawei wants to dispute this, I would welcome an example of a single thing in the emulator that is functionally or even aesthetically different from Android. If anyone wants to cry "it's just a beta!," Huawei says this OS will be shipping in commercial phones this year. There does not appear to be time to do a major overhaul from "Android" to "Not Android."Forking Android and launching your own rebranded operating system is totally fine. But be upfront about that. Say "HarmonyOS is a fork of Android" instead of "HarmonyOS is not a copy of Android." Don't call HarmonyOS "all-new" when pretty much the opposite is true.在查阅鸿蒙OS几个小时候,我无法分辨出鸿蒙与安卓有任何不一样的地方。除了一些重命名的项目外,没有任何不同。如果华为的任何人对此提出异议,我欢迎指出其有一个功能或美学上与安卓无关的东西。华为似乎没有时间将’安卓‘变成’非安卓‘。放弃安卓,而使用自己的操作系统没有任何问题。华为可以对外坦率来说:“鸿蒙OS是安卓的一个分支。”而不是对外说:“鸿蒙OS不是安卓的复制品。”情况恰恰是这样的,不要称鸿蒙OS为’自主自研‘。Huawei is basically in the same position as Amazon with FireOS, which is also a fork of Android. Here's how Amazon deals with that: the first two sentences of the "Fire OS Overview" page on Amazon Developers read, "Fire OS is the operating system that runs Amazon's Fire TV and tablets. Fire OS is a fork of Android, so if your app runs on Android, it will most likely run on Amazon's Fire devices too." A search for "Android" on that first Fire OS page brings up 67 results. As of press time, a search for Android across the entire HarmonyOS documents collection brings up zero results. On the "About" screen of the HarmonyOS emulator, there is an "open source licenses" link, but the page does not load.Android is a trademark of Google, so Amazon and Huawei can't use the name in promotional materials. But that doesn't mean you shouldn't be upfront about it in your developer documents and when speaking to the public. Not doing so feels like plagiarism.华为和亚马逊系统基本是一样的,亚马逊系统也是安卓的分支。在关于是否自主自研里,亚马逊是这么介绍的:“亚马逊系统是运行在TV和平板的操作系统。亚马逊系统是安卓系统的一个分支,所以安卓的应用程序,就可以在亚马逊的设备上运行。”但在鸿蒙OS上,我们似乎并没有看到这样的宣传,并且在某些开源许可证上,甚至无法加载。安卓是谷歌的商标,所以亚马逊和华为不能再宣传里使用这个名字。但并不代表你可以在开发人员文档里,以及对公众宣布时隐藏事实。华为的做法让我感觉像是剽窃。文章还有很多内容。包括对系统代码的剖析。但我觉得没必要再复制上来了。好家伙,一篇文章4页,真的全翻译全写,我得写出大几万的内容。没必要真的没必要。但结论大多已经翻译给大家了。我觉得吧!自家关起门来丢人就行了。建议华为没必要出门,拐着弯丢人。包括在文章底部的评论,真的让人感觉到无力。华为做的声势太大,所以很多外国人都知道了鸿蒙OS,而将这个系统代表中国。因此,我们在外的名声……偷窃、剽窃、小偷等等的帽子都扣上来了。我们能怎么办呢?认呗!包括,华为的一个高管曾经说过:“大家觉得鸿蒙是套壳,我觉得是行业人士对自主自研有错误的误解。”这句话也被那群老外知道了。其中有评论是这样的:“华为喜欢定义自主自研的概念,我觉得这是一个小偷在法庭上企图证明自己偷盗无罪的话术。”“如果中国的操作系统是这种氛围,我想谷歌和IOS可以继续引领100年的系统霸主地位。”“女士们,先生们,如果下一个全球超级大国是这样的。是的,那会很糟糕。”“华为似乎试图通过简单地复制西方来赶上西方,这通常涉及偷窃或工业间谍行为。问题是......如果你只是在复制,那么你总是落后。”
第一项:温故知新说明:回顾上节课的重点知识,第一节课的重点知识还需要回顾老师:上节课我们先是复习了第一节课的知识,那么按照惯例,我们这节课也是需要复习之前的知识老师:大家还记得第一节课学习的scratch图像界面吗,来我们一起复习一下!Menu Bar: Ranking Functional Options.Toolbar: Copy, delete, zoom in, shrink roles and help tools.Title bar: Displays the name of the work currently edited.Control button: Click the green flag to start playing, click the red circle to stop playing.Stage area: that is, the role activity area, the window to present the works.Adding role buttons: There are four ways to add roles.Role list area: All roles will appear in this window.Instruction Module Area: Provide ten instruction groups.Code area: Drag and drop instruction module to build script window.①菜单栏:排列功能选项。②工具栏:复制、删除、放大、缩小角色及帮助工具。③ 标题栏:显示当前编辑的作品名称。④ 控制按钮:点击绿旗开始播放,点击红圆停止播放。⑤ 舞台区:即角色活动区,呈现作品的窗口。⑥ 新增角色按钮:有四种新增角色的方法。⑦ 角色列表区:所有的角色都会出现在此窗口。⑧ 指令模块区:提供十大指令组。⑨ 代码区:拖拽指令模块搭建脚本的窗口。老师:之后我们学习了我们人生中第一个代码Hello world,了解代码的拼接和绿旗红点的意义,我们再来重温一下拼接和绿旗红点的意义。老师:第二节课我们学习了很多概念的知识,这些知识可都是我们将来做项目的关键呢。中文名称:重复执行英文名称:Forever模块类型:控制形状类型:C型、半帽型功能简介:被包裹在 重复执行 C型框内的积木将会循环往复运行,与 重复执行()次 和 重复执行直到()的区别在于,重复执行 意味着永不停止,除非我们点击“红点停止键”或循环内部的 停止全部脚本 这块积木被激活。由于循环是无限的,跟在C型框下面的积木将永远不会被执行,所以其底部没有用来与其它积木卡合的“凸起”,它底部的“凸起”不会有任何意义。这块积木有轻微延迟,如果对程序的运行速度有所要求,建议使用单框,即C型框内不要再次嵌套C型框。重复执行有两个哥哥第一个指令用于指定次数的循环,这个指令一般应用在已经确切的知道需要循环多少次的地方。注意这里的次数是白底的可编写的框,这意味着我们除了可以直接在里面写循环的次数。第二个指令“重复执行直到……”,其实这个指令很类似于前面的重复执行指令,都是当满足特定条件后,才会继续执行下面的指令,否则会一直在这里等待,所不同的是这个语句在等待的时候还需要重复执行一个动作。当然你也可以把他从循环的角度来理解,就是当满足某个条件时才跳出循环。举个小例子,假如小朋友在某个地方等妈妈,小朋友每隔一分钟就看一下表,直到妈妈出现,这种行为就可以用“重复执行直到……”来描述。老师: 下面让我们来复习一下Scratch基本组件概览栈功能块Scratch提供的主要功能块就是栈功能块。栈功能块比较好识别,顶部有一个“凹口”,而底部有一个“凸起”。顶部的凹口表示这类功能块可以附加到另一个功能块之下,底部的凸起表示充许其他的功能块附加到其下。如下图所示:启动功能块顶部有一个圆角或曲线形状,而底部有一个凸起,这个凸起表明它可以放在其他栈功能块的顶部。“启动功能块”顾名思义,点击”启动模块”后会自动执行与之组合的”功能栈”的脚本。如下图:侦测功能块侦测功能块是一个圆角的功能块,它专门设计来提供输入以供其它的功能块处理。如图所示:上图左侧的功能块是”音量”功能块,这个功能块是获取一个数值,表示角色的音量。侦测功能块是一个圆角的形状,因此它能够嵌入到包含圆角的功能块中。如下图:逻辑功能块布尔功能块是一个尖角的形状,如下图所示:如果用户按下了空格键的话,这个特定的功能块将返回一个”真”值,如果没有按下空格键,则返回一个”假”值。由于布尔功能块拥有尖角的形状,它只能够嵌入到包含尖角形的功能块中。如下图:“C”功能块C功能块的形状就像是字母C,因而称之为C功能。C功能块用于在脚本中创建功能块的一个循环体,只要条件为”真”,就会不断的运行该脚本中的所有功能块。如图所示:结束功能块结束功能块停止脚本的执行。结束功能块顶部有一个”凹口”,而底部是平坦的,这代表一段脚本的结束。所以,不能再将其它的功能块附加到结束功能块的底部。如图所示:第二项:讲解作业作业思考题如下:你知道怎么用键盘来控制小鱼逃跑吗?这是潜水员的代码这是小鱼的代码第三项:讲解坐标系In scratch, all the performance results are presented in the “stage area”. The “stone scissors and cloth” game we learned earlier is also completed in the “stage area”.在scratch里面,所有的表现结果都在“舞台区”呈现,前面我们学习的“石头剪刀布”游戏,也是在“舞台区”完成的。When we slide the mouse in the stage area, we will find that the number of the position of the red box in the picture above will change, which is the position of the mouse on the stage.The stage coordinate system is as follows:我们在舞台区滑动鼠标,会发现在上图红色方框位置的数字会变化,这就是鼠标所在舞台的位置。舞台坐标系如下图:Note that in this stage area, all the numbers are non-unit, that is to say, whether X or y, we can not use the daily unit to measure, this number is not millimeters, nor pixels, but a contrast value relative to the center of the stage.Next, let’s move the kitten to the designated position on the stage (98, - 110). What should we do?First of all, we click on the kitten in the role area, and the character kitten will appear in the blue box, which means that we will order the kitten.注意,在这个舞台区上,所有的数字是没有单位的,也就是说无论是x还是y的数值,我们不能用日常的单位去衡量,这个数字不是毫米,也不是像素,而是一个相对于舞台中心的一个对比值。下面,我们来让这个小猫移动到舞台指定的位置(98,-110),我们该怎么做呢?首先,我们先在角色区中点击一下小猫,角色小猫会出现蓝色框,这表示我们将对小猫下命令;Then find the blue action building blocks in the middle function area:然后在中间功能区找到蓝色动作功能积木:We changed the number to 98, - 110, and then clicked on the blue building block, the kitten appeared in the position of 98, - 110.我们将数字改为98,-110,改了后再点击一下这个蓝色积木块,小猫一下就出现了在98,-110的位置了。下面老师自己看情况给学生出移动坐标的题,要确保每个学生都清楚这个知识点。第四项:scratch之舞台我们要对舞台区的坐标大概位置心里要有概念,因为以后所有的角色都将在舞台区出现,那么对角色位置的精确安排就非常重要,心里对舞台区有概念后,未来我们制作任何游戏,包括角色的大小调整,我们心里都能在第一时间出现这个游戏完整的样子而不会茫然。我们了解了舞台坐标之后,然后需要了解下一个内容——舞台背景。一个精美的游戏或是动画作品,除了主要角色之外,应该还有对应的背景,这样会让整个作品看起来更加美观,也容易让观众有代入感。所以,我们了解舞台后,现在要开始学习安排舞台背景。舞台背景我们通常会采用一些图片作为素材,scratch软件里也自带了一部分,我们先从这里打开:点击红色的框,我们可以看到软件自带的背景图片,选中一个后点击右下角确定按钮:这个图片然后就会出现在舞台区,并放置于小猫的背后,不会挡住小猫:同样,舞台背景也是角色,我们一样可以对舞台背景进行编程,只不过舞台背景编程的功能要少一些:老师需要带学生了解编程里面的模块如果有多个背景要切换怎么办呢?我们点击功能区中的背景选项:在这一排按钮里,第一个是导入软件自带背景,第二个是自己画一个背景,第三个是导入电脑里其他文件夹中的图片,第四个是调用摄像头拍一张。对于不要的背景,我们可以右键点击背景,然后选择删除,或是点击背景图片上的小叉:我们一般会在网上搜索一些图片,或是自己做一些背景,然后导入进来,怎么使用scratch自带绘图功能我们下次再说,我们今天先用自带的背景图片来学习一下对背景进行编程:我们先导入两张背景图片:注意看,每个背景图片都有自己的名字,这个名字是在导入的时候就设定好了的。同时,这些背景都有自己的序列号,由上至下从1号开始。鼠标左键按住背景图片拖住可以上下移动排列顺序。针对这些背景,我们利用前一章学习的功能模块来对背景进行一个简单编程,让这些背景每1秒钟切换一次:第五项:与老师一起做今天我们来学习《地球公转》,这是一个关于位置知识点的编程游戏,效果如上图:地球围绕太阳转,星星(代替月亮)围绕地球转。背景是星空,角色有三个:太阳、地球和星星(代替月亮)。这是太阳的程序。这是地球的程序。这是星星的程序。好啦做到这里,这节课的实验就全部做完了,但是我们需要给孩子们留一些思考题,让孩子们去自主思考,思考题如下:1.大家看一看,星星的程序用了几种模块?2.我们自己能不能上网找一个地球的图片来把篮球换成地球!布置完作业后,这节课就结束啦!

我要回帖

更多关于 图形化编程scratch 的文章