Uploaded March 2026 | Updated September 2026, 1 week ago
If you want your JavaScript game to look good, sound good, and feel responsive, asset loading is where it all starts.
In this lesson, weโll use promises to build a simple but powerful system for loading images and audio. By the end, youโll have full control over how your game initializes and behaves.
๐ก What youโll learn:
How to create a loading screen in JavaScript
How promises and async/await work in real projects
How to load images safely (with fallback handling)
How to build a reusable audio manager
How to trigger sound effects for UI and gameplay
How to refactor messy code into clean systems
How to build a UI manager for scalable projects
How to create and format a game timer
โฑ Timestamps
00:00 How to Load Game Assets in JavaScript
00:53 Source code P8
01:21 How to Create a Loading Screen in JavaScript Games
07:30 Source code P9
08:02 How to Load and Play Sound Effects in JavaScript
15:07 How to Play Audio on Button Click, Hover, Pause
17:06 Source code P10
17:37 Refactoring Rendering & Separating Concerns
19:45 How to Organize UI Code (Buttons, Panels, Events)
26:29 How to Track Time and Format Minutes/Seconds
33:20 What's next?
Resources:
๐ต button click: frankslaboratory.co.uk/downloads/147/button_click.mp3
๐ต button hover: frankslaboratory.co.uk/downloads/147/button_hover.mp3
๐ต pause: frankslaboratory.co.uk/downloads/147/pause.mp3
๐ต unpause: frankslaboratory.co.uk/downloads/147/unpause.mp3
Source code: code-laboratory.kit.com/f28df42d47
This is part of a full vanilla JavaScript game development series, where weโre building a reusable starter kit step by step: youtube.com/playlist?list=PLYElE_rzEw_tjnJ_5gzRw0ZM5HRn7AIS0&si=j53kz7v7JoN5dg1B
๐จ Get more art assets: gamedeveloperstudio.com
This tutorial covers JavaScript game development from an architecture-first perspective. Building reusable game systems in vanilla JavaScript using the HTML5 Canvas API, with no external libraries or frameworks. If you've been searching for a clean, scalable approach to 2D game development in JavaScript, or want to understand how to structure a mini JavaScript game engine from scratch, this video walks you through the exact systems and patterns used in production-ready projects. Great for developers who already know JavaScript and want to take their game projects to the next level.
#JavaScriptGameDevelopment #VanillaJavaScript #HTML5Canvas #frankslaboratory
If you want your JavaScript game to look good, sound good, and feel responsive, asset loading is where it all starts.
In this lesson, weโll use promises to build a simple but powerful system for loading images and audio. By the end, youโll have full control over how your game initializes and behaves.
๐ก What youโll learn:
How to create a loading screen in JavaScript
How promises and async/await work in real projects
How to load images safely (with fallback handling)
How to build a reusable audio manager
How to trigger sound effects for UI and gameplay
How to refactor messy code into clean systems
How to build a UI manager for scalable projects
How to create and format a game timer
โฑ Timestamps
00:00 How to Load Game Assets in JavaScript
00:53 Source code P8
01:21 How to Create a Loading Screen in JavaScript Games
07:30 Source code P9
08:02 How to Load and Play Sound Effects in JavaScript
15:07 How to Play Audio on Button Click, Hover, Pause
17:06 Source code P10
17:37 Refactoring Rendering & Separating Concerns
19:45 How to Organize UI Code (Buttons, Panels, Events)
26:29 How to Track Time and Format Minutes/Seconds
33:20 What's next?
Resources:
๐ต button click: frankslaboratory.co.uk/downloads/147/button_click.mp3
๐ต button hover: frankslaboratory.co.uk/downloads/147/button_hover.mp3
๐ต pause: frankslaboratory.co.uk/downloads/147/pause.mp3
๐ต unpause: frankslaboratory.co.uk/downloads/147/unpause.mp3
Source code: code-laboratory.kit.com/f28df42d47
This is part of a full vanilla JavaScript game development series, where weโre building a reusable starter kit step by step: youtube.com/playlist?list=PLYElE_rzEw_tjnJ_5gzRw0ZM5HRn7AIS0&si=j53kz7v7JoN5dg1B
๐จ Get more art assets: gamedeveloperstudio.com
This tutorial covers JavaScript game development from an architecture-first perspective. Building reusable game systems in vanilla JavaScript using the HTML5 Canvas API, with no external libraries or frameworks. If you've been searching for a clean, scalable approach to 2D game development in JavaScript, or want to understand how to structure a mini JavaScript game engine from scratch, this video walks you through the exact systems and patterns used in production-ready projects. Great for developers who already know JavaScript and want to take their game projects to the next level.
#JavaScriptGameDevelopment #VanillaJavaScript #HTML5Canvas #frankslaboratory




![HTML5 Canvas Text Animation Tutorial [HTML, CSS, JavaScript]
Website header text made out entirely of interactive bubble particles? Why not :) In todays HTML5 canvas text animation tutorial we will build it together using nothing but plain HTML, CSS and pure vanilla JavaScript. No frameworks and no libraries. Lets improve our understanding of these 3 fundamental web development technologies and create something cool in the process.
Relevant links:
PART 1: (Vanilla JavaScript Text Animation Tutorial - Particle Text with HTML5 canvas)https://youtu.be/XGioNBHrFU4
Challenge: (How to replace particles with images from a sprite sheet https://youtu.be/seEF7tj0Rmc
This is advanced particle effects tutorial, if you want something more beginner friendly try this video first to learn about the basics of HTML canvas animation https://youtu.be/ymmtEgp0Tuc or this video to learn about particle effects https://youtu.be/nrJh8-Ixnu8
As usual our vanilla JavaScript particle system co-debase is very modular so if you want to take these bubble particles and place them into any other effect, I will show you exactly where to place it and what to do to make sure everything is compatible. Lets explore new creative coding opportunities together and learn more about animating the canvas using HTML, CSS & JavaScript.
You can message me on TWITTER https://twitter.com/code_laboratory
Check out some of my source code on CODEPEN https://codepen.io/franksLaboratory
#javascript #htmlcanvas #frankslaboratory
This tutorial is part of a series - Creative coding with vanilla JavaScript and HTML canvas COMPLETE PLAYLIST:
https://www.youtube.com/watch?v=lGJ9i6CYKyQ&list=PLYElE_rzEw_siuo-kkHh5h7Sk 6IPYNh
Music: (YouTube audio library) Vacay In Fiji Riddim - Konrad OldMoney, World Map - Jason Farnham
The description of this video may contain affiliate links, which means that if you buy one of the products that I recommend, Ill receive a small commission without any additional cost for you. This helps to support the channel and allows me to continue making videos like this. Thank you for the support! HTML5 Canvas Text Animation Tutorial [HTML, CSS, JavaScript]](https://i.ytimg.com/vi/qqq4E6PU2vQ/mqdefault.jpg)





