GameDev with JavaScript and Kaboom.js – Metroidvania Game Tutorial

Learn to use JavaScript and Kaboom.js to build a Metroidvania style game. In this tutorial, you'll learn everything from setting up your development environment to implementing complex game mechanics like enemy AI and boss battles.

✏️ Course developed by @JSLegendDev

Live demo: https://jslegend.itch.io/javascript-metroidvania
Source code: https://github.com/JSLegendDev/JavaScript-Metroidvania

Link to the Kaboom.js library: https://unpkg.com/kaboom@3000.1.17/dist/kaboom.mjs
Assets used can be downloaded here: https://github.com/JSLegendDev/JavaScript-Metroidvania/tree/master/assets
Original assets can be found here with extra paid assets: https://venoxxx.itch.io/pixxxelpunkkk-toolkit )
Modified u.png version (inc. in assets link above): https://github.com/JSLegendDev/JavaScript-Metroidvania/blob/master/assets/sprites/u.png
Modified burn3r.png version (inc. in assets link above): https://github.com/JSLegendDev/JavaScript-Metroidvania/blob/master/assets/sprites/burn3r.png
Sound assets: https://github.com/JSLegendDev/JavaScript-Metroidvania/tree/master/assets/sounds
Map layouts (room1.json + room2.json): https://github.com/JSLegendDev/JavaScript-Metroidvania/tree/master/maps
Download Tiled here: https://mapeditor.org

Guide on how to use Tiled + Kaboom.js: https://jslegenddev.substack.com/p/how-to-use-tiled-with-kaboomjs
Guide on how custom events work in Kaboom.js: https://jslegenddev.substack.com/p/custom-events-in-kaboomjs
Guide on how to implement one way platforms: https://jslegenddev.substack.com/p/how-to-implement-one-way-platforms

⭐️ Contents ⭐️
⌨️ (0:00:00) Intro
⌨️ (0:06:18) Setup
⌨️ (0:14:42) Initializing Kaboom
⌨️ (0:21:59) Loading assets
⌨️ (0:33:38) Defining scenes
⌨️ (0:40:00) Understanding Game Objects in Kaboom
⌨️ (0:43:47) Implementing logic to load and display the map
⌨️ (1:16:49) Implementing logic to place colliders over the map
⌨️ (1:33:53) Implementing player logic
⌨️ (1:42:37) Implementing global state management
⌨️ (1:50:12) Continuing player logic implementation
⌨️ (2:22:56) Setting up our camera system
⌨️ (2:38:29) Implementing drone enemy
⌨️ (3:10:45) Implementing boss barrier
⌨️ (3:24:16) Implementing boss battle
⌨️ (3:57:15) Implementing health catrdiges + health bar
⌨️ (4:05:43) Making sure the player respawns when falling out of bounds
⌨️ (4:10:06) Implementing logic to link room1 and room2
⌨️ (4:28:49) Finishing touches
⌨️ (4:32:35) General guidance on how to deploy the project🎉 Thanks to our Champion and Sponsor supporters:
👾 davthecoder
👾 jedi-or-sith
👾 南宮千影
👾 Agustín Kussrow
👾 Nattira Maneerat
👾 Heather Wcislo
👾 Serhiy Kalinets
👾 Justin Hual
👾 Otis Morgan
👾 Oscar Rahnama

--

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://freecodecamp.org/news Receive SMS online on sms24.me

TubeReader video aggregator is a website that collects and organizes online videos from the YouTube source. Video aggregation is done for different purposes, and TubeReader take different approaches to achieve their purpose.

Our try to collect videos of high quality or interest for visitors to view; the collection may be made by editors or may be based on community votes.

Another method is to base the collection on those videos most viewed, either at the aggregator site or at various popular video hosting sites.

TubeReader site exists to allow users to collect their own sets of videos, for personal use as well as for browsing and viewing by others; TubeReader can develop online communities around video sharing.

Our site allow users to create a personalized video playlist, for personal use as well as for browsing and viewing by others.

@YouTubeReaderBot allows you to subscribe to Youtube channels.

By using @YouTubeReaderBot Bot you agree with YouTube Terms of Service.

Use the @YouTubeReaderBot telegram bot to be the first to be notified when new videos are released on your favorite channels.

Look for new videos or channels and share them with your friends.

You can start using our bot from this video, subscribe now to GameDev with JavaScript and Kaboom.js – Metroidvania Game Tutorial

What is YouTube?

YouTube is a free video sharing website that makes it easy to watch online videos. You can even create and upload your own videos to share with others. Originally created in 2005, YouTube is now one of the most popular sites on the Web, with visitors watching around 6 billion hours of video every month.