Video Thumbnail

Sign up for a plan to instantly unlock all premium lessons.

UNLOCK LESSON

Premium Features

Download Video

Power-Ups

Published 2 years ago

Click the "Premium Game Assets" link above to access the lightning bolt used for this video.

Power-Ups are similar to other object classes, but if we want to make the actual rendered object stand out (by using an image and making it rotate), we need to do an extra bit of work.

Here we'll be replacing our default circle objects with that of an image, a lightning bolt specifically, that'll serve as an indicator that this is something we want to grab to obtain additional powers. We'll be covering the exact process for finding a good power-up icon, how to export it into something we can use within canvas, and how to ensure our player gains abilities once this power-up is grabbed.

You'll also learn a few things regarding how to manage this power-up such as how to create multiple instances of it over time, how to ensure it expires after a certain amount of time has passed, and how to change the player and projectile colors after it has been grabbed.

Comments

Want to participate?

Create a free Chris Courses account to begin

Login
g
guillermo3307 posted 2 years ago
0
chris posted 2 years ago
0

Providing the lift to launch your development career

© 2024 Chris Courses. All rights reserved.