Side-Scrolling Games (JavaScript tutorial) @Frankslaboratory
Side-Scrolling Games (JavaScript tutorial)  @Frankslaboratory
Uploaded February 2024 | Updated November 2026, 1 day ago
Let's make more games, my latest premium course: udemy.com/course/javascript-game-development-pixel-by-pixel/?referralCode=BD572E51CCFEB2519855

It's really fun to take a proven game concept and put your own spin on it. Using these 5 techniques, you can build 1000s of different games. Let's built mobile games completely from scratch step by step with vanilla JavaScript and HTML canvas.

Main features:
- fully responsive and playable on ANY DEVICE (mobile, tablet, ultra wide screens)
- win condition: time run
- player resource: rechargeable energy
- special ability: speed boost
- player character: Flappy Fish / Antigravity Boar

Download source code: code-laboratory.kit.com/ca3ea0d154

๐Ÿ‘ฝ Download Project Art assets ๐Ÿ‘ฝ
Background (color): frankslaboratory.co.uk/downloads/137/background_single.png
Background (black & white): frankslaboratory.co.uk/downloads/137/background_single2.png
Player fish: frankslaboratory.co.uk/downloads/137/player_fish.png
Obstacles : frankslaboratory.co.uk/downloads/137/smallGears.png

Sounds (right click and 'Save link as'):
Charge: frankslaboratory.co.uk/downloads/137/charge.mp3
Flap 1: frankslaboratory.co.uk/downloads/137/flap1.mp3
Flap 2: frankslaboratory.co.uk/downloads/137/flap2.mp3
Flap 3: frankslaboratory.co.uk/downloads/137/flap3.mp3
Flap 4: frankslaboratory.co.uk/downloads/137/flap4.mp3
Flap 5: frankslaboratory.co.uk/downloads/137/flap5.mp3
Win: frankslaboratory.co.uk/downloads/137/win.mp3
Lose: frankslaboratory.co.uk/downloads/137/lose.mp3
(if you can't download the files, try to use a different browser or VPN to change your country, also leave a comment so I can fix it)

Playlist: youtube.com/playlist?list=PLYElE_rzEw_tw6scwjv96oEABmnMSQoQW

๐ŸŒŒ Tutorial Contents ๐ŸŒŒ
Basic project:
00:00:00 Make GAMES with JavaScript
00:00:37 HTML, CSS & JavaScript setup
00:05:21 Drawing on HTML5 canvas
00:09:29 Resizing HTML5 canvas
00:15:55 Dynamic scaling
00:20:39 How to code gravity
00:26:38 Player controls
00:28:50 Keyboard controls
00:30:49 Scrolling backgrounds
00:35:59 Endless repeating backgrounds
00:40:43 Create obstacles
00:45:45 Position and move obstacles
00:51:20 Count score
00:55:38 Measure time
00:59:40 Handle game over
01:01:14 Handle collisions
01:05:08 Detect collisions
01:07:47 Win or lose
01:09:35 Recharge energy
01:11:07 Special abilities
01:17:45 Time events with precision
01:22:37 Detect swipes
01:25:32 Finishing touches

Steampunk flappy bird game:
01:28:01 Animate your creatures
01:31:00 Make it more steampunk
01:33:21 Animate player actions
01:37:27 Clean-up
01:39:35 How to handle sounds
01:42:38 Manage player resources
01:44:28 Play randomized sounds
01:48:17 Polish every detail
01:50:19 Dynamic font size
01:54:22 What's next?

Source code:
Checkpoint 1 (00:26:38): frankslaboratory.co.uk/downloads/137/source_code_1.zip


The description of this video may contain affiliate links, which means that if you buy one of the products that I recommend, I'll 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!
#frankslaboratory
Side-Scrolling Games (JavaScript tutorial)Side-Scrolling Starfields & Space WhalesHow To Use CSS3 Border Image Property [CSS tutorial]JavaScript Pixel Rain with Colors ๐ŸŽจWhy I Never Make a JavaScript Game From ScratchData-Driven Particles: More Effects, Less CodeBlurry pixels? Fixed!Pixel Art Game Worlds and 2D CameraCSS Buttons Animation On Hover | Vertical Waves Effect With Cubic BezierDonโ€™t Hide Your JavaScript GamesHTML5 Canvas Tutorial for Beginners [How to Draw Shapes with JavaScript]I Made an Alien Character (Free Tool)
Franks laboratory |

Side-Scrolling Games (JavaScript tutorial)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER