Javascript snake Game using html canvas and Javascript

via Udemy

Go to Course: https://www.udemy.com/course/snakegame/

Overview

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.

Skills

Reviews