|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/snakegame/
课程评论:没有评论
课程名称:使用HTML Canvas和JavaScript制作贪吃蛇游戏 课程概述: 该课程旨在介绍HTML5中的Canvas元素,它允许使用JavaScript绘制各种形状。Canvas不仅能绘制图形,还能编辑图像、创建动画、运动游戏或信息图表。自引入以来,Canvas受到了广泛的应用,使得应用程序或游戏可以无须安装额外的插件(例如过时的Flash Player)而直接在现代浏览器中运行,如Chrome、Firefox、Safari、Opera和IE。 在本课程中,学员将探索Canvas的强大功能,并学习如何利用它创建一个简单的浏览器游戏——贪吃蛇。此游戏是大多数人熟悉的经典游戏,在游戏中,一条小蛇出现在屏幕上,玩家可以通过方向键控制蛇的移动方向,上下左右。在吃到随机出现的方块后,蛇的长度会增加。这个游戏是学习Canvas基本功能的完美示例。 通过这个课程,学员将提升他们的JavaScript编程能力,并掌握使用HTML5 Canvas进行游戏开发的基础知识。
DescriptionCanvas, or canvas, was introduced to Html as an element that allows you to draw any shapes using Java Script. However, that's not all it can do, because it also allows you to edit images, create animations, motion games or infographics. This element was introduced with the HTML5 version and has been eagerly used in applications until then. Thanks to it, an application or game can work without the need to install additional plugins in the browser, e.g. the outdated Flash Player. It is supported by most modern browsers, such as Chrome, Firefox, Safari, Opera, IE. In the course, you will see what canvas is capable of and how you can use it to create a simple browser game.First game - snakeCanvas is one of the best HTML5 features that you can use to create great apps. For the purposes of the course, we will use an example of a game that probably everyone knows. Surely most of you have played the popular Snake on old mobile phones. Initially, a small snake appears on the screen. Players can change the direction of the snake using the arrows to move up, down, left, and right. The length of the snake increases after eating a randomly appearing square on the board. The game is a perfect example to learn about the most important functions of the canvas.