Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

Data-Driven Particles: More Effects, Less Code

Video information, playback and saved actions.

Data-Driven Particles: More Effects, Less Code

Description: πŸŽ“ Check out the EXTENDED course, full SOURCE CODE, advanced FEATURES, ton of free ART ASSETS: https://www.udemy.com/course/javascript-game-development-pixel-by-pixel/?referralCode=BD572E51CCFEB2519855

Give your games more juice with particle effects! In this tutorial, we'll build a complete data-driven particle system that lets you plug in any future particle effects you can imagine. We're using vanilla JavaScript to build everything from scratch, so you can see exactly how it works under the hood. Game engines like Unity and Godot abstract much of this away for you, but understanding the underlying architecture will make you a better game developer no matter which engine or framework you use.

πŸŽ“ This is part of a full vanilla JavaScript game development series, where we’re building a reusable starter kit step by step: https://youtube.com/playlist?list=PLYElE_rzEw_tjnJ_5gzRw0ZM5HRn7AIS0&si=j53kz7v7JoN5dg1B

Resources:
Source code: https://code-laboratory.kit.com/94b4aa843c

⏱ Timestamps
00:00 Build a Flexible Particle System
01:31 Source Code Checkpoint
02:01 Planning the Particle System
10:18 Particle Behaviors
13:53 Connecting Particles to Gameplay
25:31 Rendering Particles
35:41 Better Looking Effects
39:57 Different Effects for Different Events
44:13 What's Next?

In this class we will learn:
How to make a particle system in JavaScript and HTML5 Canvas
How to make spark and smoke effects in JavaScript
How to organize game code so it's easy to extend
How to make different particles move in different ways
How to trigger effects when something happens in a game (like taking damage)
How to make particles fade out smoothly
How to make particles shrink over time
How to randomize particle color, size, and count
How to apply gravity to moving objects in Canvas
How to draw and animate lots of objects efficiently on Canvas
How to structure a JavaScript game so it's easy to add new features later

By the end of this tutorial you'll have a reusable particle framework capable of supporting everything from simple sparks and smoke to much more advanced effects later in the series.

πŸ‘ Click the LIKE if you want more vanilla JavaScript game development tutorials like this!Β Close description
Β Β Β Β Β Β 
Videos related to "Data-Driven Particles: More Effects, Less Code"