Video Thumbnail

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

UNLOCK LESSON

Premium Features

Download Video

Create an enemy

Published 2 years ago

Here we'll create our first enemy: a small, red square that'll soon blossom into what we know today as "the goomba." Creating an enemy is not that complicated, all we have to do is create a separate class, code it so the instantiated object moves on its own, then add the necessary collision detection with our player.

We'll refactor our code along the way, creating functions to help make our conditionals as clean as possible.

Comments

Want to participate?

Create a free Chris Courses account to begin

Login
MILLAREMARK420 posted 7 months ago
0
MILLAREMARK420 posted 7 months ago
0
V
Vierus posted 4 months ago
0
MILLAREMARK420 posted 7 months ago
0

Providing the lift to launch your development career

© 2024 Chris Courses. All rights reserved.