Premium Only Content
Build a Developer Portfolio as a 2D Game | JavaScript Tutorial
Become a member to get early access to upcoming tutorials : https://buymeacoffee.com/jslegend
Substack post explaining how to implement mobile controls : https://jslegenddev.substack.com/p/how-to-implement-player-controls
Live demo : https://jslegenddev.github.io/portfolio/
Source code : https://github.com/JSLegendDev/2d-portfolio-kaboom
Map files (map.json + map.png) be found here : https://github.com/JSLegendDev/2d-portfolio-kaboom/tree/master/public
Spritesheet can be downloaded here : https://github.com/JSLegendDev/2d-portfolio-kaboom/blob/master/public/spritesheet.png (I use a modified version of the original spritesheet available at https://momen-games.itch.io/happy-la-v2-ts)
Font can be downloaded here : https://datagoblin.itch.io/monogram
Tiled software can be downloaded here : https://mapeditor.org
-- Chapters --
00:00 Intro
03:22 Setup
16:27 Loading assets
19:23 How to use Tiled to draw maps
36:10 Writing logic to display map
44:49 Creating the player
52:00 Writing logic to display boundaries
57:54 Writing logic to display dialogue
1:16:15 Spawning the player + player movement logic
1:26:20 Writing logic for scaling the camera + animations + dialogue text
-
LIVE
RiftTV
1 hour agoFBI Director Kash Patel Sues Elijah Schaffer for $5 MILLION?!
1,088 watching -
50:26
BonginoReport
7 hours agoElections Post-Mortem with Mayor Scott Singer - Nightly Scroll w/ Hayley Caronia (Ep.174)
52.3K17 -
45:54
Donald Trump Jr.
5 hours agoGood Luck Chuck! The Left Lashes Out Over Shutdown Scheme's Failure | Triggered Ep.290
87.1K64 -
LIVE
The Jimmy Dore Show
2 hours agoDems CAVE On Gov’t Shutdown — Or Do They? Trump GASLIGHTS About Rising Food Prices! w/ Nick Cruse
8,348 watching -
LIVE
BIG NEM
6 hours agoDajana Gudic: Surviving the Bosnian War to Woke California
35 watching -
LIVE
LFA TV
22 hours agoLIVE & BREAKING NEWS! | MONDAY 11/10/25
730 watching -
22:01
Jasmin Laine
5 hours agoCBC Host ABRUPTLY ENDS Interview After Guest Says: “That Isn't True”
5.69K4 -
1:20:47
Kim Iversen
3 hours agoMAGA = Make Antisemitism Great Again?
108K109 -
1:06:09
Tucker Carlson
7 hours agoUS Government Admits Chemtrails Are Real (It's Worse Than You Think). Dane Wigington Reveals All.
39.2K143 -
1:51:06
Redacted News
4 hours agoTrump Rolling Out $2,000 STIMULUS Checks in 2025 as the U.S. Economy Flashes RED | Redacted News
157K180