ASMR Coding: Mario-Style Platformer in JavaScript
Description: I built a Mario-style 2D platformer in JavaScript, HTML and CSS from scratch. No talking, no game engine, just relaxing ASMR keyboard sounds while the game comes together line by line, with Live Server showing every change.
The whole game is 486 lines of JavaScript on an HTML5 canvas. No Unity, no Phaser, no libraries.
What gets built:
• A side-scrolling world: sky, clouds, hills and grass ground, all drawn in code
• A little hero who runs, jumps and falls with real gravity, and a camera that follows him
• Gaps to jump, pipes, brick rows and ? blocks you can hit from below
• Coins to collect, with a coin counter and a timer
• Purple beetles that walk around and can be stomped
• Stairs and a flag at the end of the level
• Start screen, Game Over and Level Clear screens, Play again and a best time saved in localStorage
Chapters:
0:00 The finished game
0:12 Project setup and Live Server
0:34 CSS for the page and the game box
1:12 Sky, clouds, hills and the ground
3:51 The hero: running, jumping and gravity
7:28 The runaway camera bug (and the fix)
8:16 Gaps, pipes, ? blocks and coins
14:24 Beetles to stomp
16:29 Start and Game Over screens
19:40 Playing the finished game
Good for: coding to relax, studying, learning JavaScript game development, or just watching a game get built from an empty folder.
Keywords: mario in javascript, mario game javascript, javascript platformer, 2d platformer tutorial, html5 canvas game, javascript game from scratch, coding asmr, keyboard asmr, no talking coding, relaxing coding, code with me, game development, web development, frontend development, html css javascript project, pixel game, retro game, CodeDropDev
Put headphones on for the best sound 🎧
More ASMR coding builds are coming. Subscribe so you don't miss the next one.
#tech #javascript #coding #programming #gamedev #CodeDropDev #mario #platformer #html5 #webdev Close description
The whole game is 486 lines of JavaScript on an HTML5 canvas. No Unity, no Phaser, no libraries.
What gets built:
• A side-scrolling world: sky, clouds, hills and grass ground, all drawn in code
• A little hero who runs, jumps and falls with real gravity, and a camera that follows him
• Gaps to jump, pipes, brick rows and ? blocks you can hit from below
• Coins to collect, with a coin counter and a timer
• Purple beetles that walk around and can be stomped
• Stairs and a flag at the end of the level
• Start screen, Game Over and Level Clear screens, Play again and a best time saved in localStorage
Chapters:
0:00 The finished game
0:12 Project setup and Live Server
0:34 CSS for the page and the game box
1:12 Sky, clouds, hills and the ground
3:51 The hero: running, jumping and gravity
7:28 The runaway camera bug (and the fix)
8:16 Gaps, pipes, ? blocks and coins
14:24 Beetles to stomp
16:29 Start and Game Over screens
19:40 Playing the finished game
Good for: coding to relax, studying, learning JavaScript game development, or just watching a game get built from an empty folder.
Keywords: mario in javascript, mario game javascript, javascript platformer, 2d platformer tutorial, html5 canvas game, javascript game from scratch, coding asmr, keyboard asmr, no talking coding, relaxing coding, code with me, game development, web development, frontend development, html css javascript project, pixel game, retro game, CodeDropDev
Put headphones on for the best sound 🎧
More ASMR coding builds are coming. Subscribe so you don't miss the next one.
#tech #javascript #coding #programming #gamedev #CodeDropDev #mario #platformer #html5 #webdev Close description
