Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
HTML5 Canvas create 5 Games 5 Projects Learn JavaScript
Rating: 4.4 out of 5(51 ratings)
3,408 students

HTML5 Canvas create 5 Games 5 Projects Learn JavaScript

Create a 5 games 5 projects - Draw on Canvas - Amazing effects with JavaScript JavaScript on the HTML5 Canvas element
Created byLaurence Svekis
Last updated 11/2024
English

What you'll learn

  • Create your first Game using HTML5 and Canvas
  • How to use Canvas element to draw
  • How JavaScript is applied to HTML5 Canvas
  • The basics of using HTML canvas
  • Create amazing things with Canvas
  • Apply JavaScript to create Canvas effects like Matrix, bouncing ball and more
  • Build a Game with HTML5 canvas apply game logic and more

Course content

8 sections179 lectures14h 19m total length
  • HTML5 Canvas Introduction2:11
  • Resources0:32
  • Web Developer Setup Resources2:48

    Set up a quick web development environment with Visual Studio Code, install the Live Server extension, create an HTML file with a canvas, and view it on localhost.

  • Start Drawing on Canvas with JavaScript.5:24

    Connect JavaScript to a canvas element, obtain a 2d context, and draw a rectangle with fillStyle and fillRect to render graphics on the page.

  • Source Code0:07
  • Basics of Drawing on Canvas5:27

    Learn how to draw on the canvas with fillRect and strokeRect, control x and y positions, width and height, and use clearRect to remove areas and refine the red rectangle.

  • Source Code0:03
  • Color Units and options for line and fill Color within Canvas objects4:47

    Learn to set line and fill colors in canvas using named colors, hex and short hex, and rgba with alpha for transparency, and stack colorful rectangles.

  • Source Code0:06
  • Strokes and Lines drawing more objects on Canvas9:25
  • Source Code0:13
  • Draw Arcs and Circles.10:17
  • Source Code0:11
  • Add Text to Canvas JavaScript6:33

    Learn to add text to a canvas using a 2d context, including setting font, color, alignment, and coordinates, and render hello world with optional dynamic text and a simple loop.

  • Source Code0:10
  • Canvas Drawing Draw a StickMan Challenge11:53
  • Source Code0:11
  • Options and how to draw Line Styles Canvas9:52

    Learn to draw lines on the canvas, vary line width and caps (butt, round, square), and line joins (miter, round, bevel) using beginPath, moveTo, lineTo, and clearRect.

  • Source Code0:20
  • Using Images - Image Options Canvas HTML5 JavaScript drawing10:28
  • Source Code0:11
  • Color Gradients and Styling Fun7:28

    Build and style gradients on the HTML5 canvas by writing a styles.js file, setting up linear and radial gradients with color stops, and applying them to fills and strokes.

  • Source Code0:11
  • Applying Text Shadows to text content within Canvas2:18
  • Source Code0:12
  • How to use Save and Restore.3:52

    Save and restore canvas states to manage rectangles, colors, and font size; create and modify shapes, then return to the original setup before applying transformations.

  • Source Code0:11
  • Scaling reverse Text mirror your text content3:28
  • Source Code0:15
  • Creating Canvas animations using JavaScript5:13

    Learn to create canvas animations in JavaScript by clearing and saving/restoring canvas state, drawing a moving circle with requestAnimationFrame, updating x by speed, and resetting when it exits the canvas.

  • Source Code0:08
  • Project how to create Image Rotator.5:55
  • Source Code0:07
  • HTML5 Canvas Conclusion.1:12

Requirements

  • HTML and CSS
  • JavaScript experience
  • Desire to learn
  • Web programming experience

Description

Learn HTML5 Canvas Element - Quick Introduction to Canvas HTML5

Introduction to drawing using JavaScript on HTML5 Canvas Element - This course requires JAVASCRIPT CODING!!!!!

Do not take this course without prior coding experience - JavaScript and HTML and prerequisites

New content just added - how to create your first game using HTML5 and Canvas - fun interactive battle game with computer brain and dynamic values.   Explore how to make Canvas based games

#1 HTML5 Canvas Pong Game - Hit the ball between ready 2 players on screen.  Source Code included build your own version of the game.

#2 HTML5 Canvas Falling items catcher Game - Objective of  the game is to catch items as they fall.  Score when you catch colorful balls avoid the blinking resizing items or you lose a life.

#3 Bubble popper with Mouse Clicks - hover mouse over items and pop them.  Score when you click and pop endless bubbles that float up the screen.  Colorful bubbles.

#4 Brick breakout game - Build your version of this classic brick breaker game.  Dynamic game elements, adding bonus falling items  and more.  Take this game to the next level add more and customize the dynamic game values.

#5 Battle Bots Game on Canvas - with 2 autonomous players or take control and have 2 players using the keyboard. You won't find THIS GAME anywhere else -

  • How to draw elements on Canvas

  • How to add keyboard event listeners for arrow keys and player interaction

  • How to add animation for smooth gameplay

  • How to add game scoring and logic

  • How to apply automation to player movement

  • Create 2 player interaction and response to game actions

Projects -

  1. How to download canvas image to computer - simple code to add a download button downloading your canvas image as base64 image file to your computer.

  2. Create a Matrix falling letters effect using HTML5 Canvas.  Add this special, effect using JavaScript

  3. Explore how to make a bouncing ball on canvas

  4. Upload images from your computer into canvas

  5. Draw on canvas simple drawing application project

Source Code included ---

Explore how you can use JavaScript to draw within the HTML5 Canvas element on your webpages

Source Code included - step by step lessons with an introduction to basics of drawing on canvas.  Course will walk through how to use JavaScript code and syntax to create visual content within the HTML5 canvas element on the webpage.

The canvas element is part of HTML5 and allows for dynamic, scriptable rendering of 2D shapes and bitmap images.

Course covers Getting started with HTML5 Canvas Drawing

  • How to Start Drawing on Canvas with JavaScript.

  • Learn Basics of Drawing on Canvas

  • Color Units and options for line and fill Color within Canvas objects

  • Strokes and Lines drawing more objects on Canvas

  • How to create Draw Arcs and Circles.

  • Add Text to Canvas JavaScript

  • Options and how to draw Line Styles Canvas

  • Using Images - Image Options Canvas HTML5 JavaScript drawing

  • Color Gradients and Styling Fun radial and linear

  • Applying Text Shadows to text content within Canvas

  • How to use Save and Restore.

  • Scaling reverse Text mirror your text content

  • Creating Canvas animations using JavaScript

  • Project how to create Image Rotator.

  • Canvas Drawing Draw a StickMan Challenge

This course is a fast paced course with all the source code included - Please try the code as you got hough the lessons to learn.

There are prerequisites to this course - please ensure you do have the skillset to learn the content presented within the lessons.  The design is to explore HTML5 Canvas  and how it works.  Scope of this course is HTML5 Canvas  and content related to the learning objective will only be covered in the lessons of this course.  Perfect to get introduced to HTML5 Canvas  or as a refresher to anyone already familiar with web coding.

Taught by a web developer with over 20 years experience - ready to help you learn and answer any questions you might have.

Fast friendly support is always available within the Q&A section

Who this course is for:

  • Web developers
  • Web Designers
  • Anyone who wants to learn more about creating web content
  • Anyone who wants to create Games with HTML and JavaScript