Premium Features

Download Video

3. Particle Explosions | How to Code: Star Shower

In this episode we will create mini particles that explode in outward directions. These are the small explosions you see on Star Shower when the ball hits the bottom of your screen.

Comments

Want to participate?

Create a free Chris Courses account to begin

Login
a
ajt1991 posted 4 years ago

Hello Chris, I have used the Git repository in your first video and noticed it's a little different to the one you are using in this video, there are classes and no use of the prototype. I have tried to get by without this and modify what I have, everything works fine up until the point of introducing miniStars where I am trying to call the class Star. I get the following error: bootstrap:83 Uncaught TypeError: Cannot call a class as a function - Can you help?

0
chris posted 4 years ago

Hey ajt - you may need to instantiate an object from the class by using new, it's been a while since checking out this video, but it should look something like this:

const star = new Star(x,y)

Sorry bout the differences, at some point I'll add GitHub source code to this course like I have for some of the others. Lmk if the above helps, just note, there's prob more arguments that go in the instantiation.

0

Providing the lift to launch your development career

© 2026 Chris Courses. All rights reserved.