Tutorial: Pixel art SVGs for React game HUD @DrewConley
Tutorial: Pixel art SVGs for React game HUD  @DrewConley
Uploaded October 2020 | Updated September 2026, 2 hours ago
In this tutorial video, we export pixel art from Aseprite and convert the raster asset to SVG paths for usage in JavaScript games. We specifically use React here, but this technique can be used in any JavaScript templating. You can use this technique to create pixel art HUD for your games or apps!

*** Links ***

⭐️ Get early access to my full JS Game Dev course:
drew-conley-courses.kit.com/66eb6d3ff4

💬 Join our Discord community of people making video games:
discord.gg/umD2GRy

Aseprite (pixel art program)
aseprite.org

Pixels to SVG (by Stephen Shaw)
cdpn.io/shshaw/debug/XbxvNj

Previous video on making Zelda HUD Hearts in React
youtu.be/XTMt6SvvprE


** Timestamps **

00:00:00 Intro
00:00:50 Overview
00:02:00 Creating the empty SVG
00:02:40 Pixels to SVG tool
00:03:28 Lifebar component
00:04:30 SVG breakdown
00:05:30 Sizing the Lifebar
00:06:50 Adding the fill
00:09:00 Pixel math
00:12:00 React state
Tutorial: Pixel art SVGs for React game HUDTop Down Game Camera and Movement in HTML, CSS, and JavaScriptYour JavaScript game on Steam (use Electron!)Build a Game with JavaScript and HTML Canvas [RPG Kit series]Building a Pokémon-style Game in 7 Days with Godot4 Tips to finally complete your gamedev projectHow to build a Tile Set Map Editor using HTML CanvasCreating stateful SVG interfaces from pixel artPizza Team HUD - RPG Battle pt. 7Game Loop Speed in Pizza LegendsGODOT TUTORIAL: Using a NinePatchRect to create flexible, reusable backgroundsPizza RPG Part 10 - Typewriters & Scene Transitions
Drew Conley |

Tutorial: Pixel art SVGs for React game HUD

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER