Bonus Features 4 - Share your Work

Exercise

·

Beginner

·

+60XP

·

60 mins

·

Unity Technologies

Bonus Features 4 - Share your Work

In this tutorial, you can go way above and beyond what you learned in this Unit and share what you’ve made with your fellow creators.

There are four bonus features presented in this tutorial marked as Easy, Medium, Hard, and Expert. You can attempt any number of these, put your own spin on them, and then share your work!

This tutorial is entirely optional, but highly recommended for anyone wishing to take their skills to a new level.

Languages available:

1. Overview

This tutorial outlines four potential bonus features for the Sumo Battle Prototype at varying levels of difficulty:

  • Easy: Harder enemy
  • Medium: Homing rockets
  • Hard: Smashingly good
  • Expert: Boss battle

Here’s what the prototype could look like if you complete all four features:

The Easy and Medium features can probably be completed entirely with skills from this course, but the Hard and Expert features will require some additional research.

Since this is optional, you can attempt none of them, all of them, or any combination in between.
You can come up with your own original bonus features as well!

Then, at the end of this tutorial, there is an opportunity to share your work.

We highly recommend that you attempt these using relentless Googling and troubleshooting, but if you do get completely stuck, there are hints and step-by-step solutions available below.

Good luck!

2. Easy: Harder enemy

Add a new more difficult type of enemy and randomly select which is spawned.

3. Medium: Homing rockets

Create a new powerup that gives the player the ability to launch projectiles at enemies to knock them off (or something that automatically fires projectiles in all directions when the powerup is enabled).

4. Hard: Smash attack

Create a new powerup that allows the player to hop up into the air and smash down onto the ground, sending any enemies nearby flying away from the player. Ideally, the closer an enemy is, the more it should be impacted by the smash.

5. Expert: Boss battle

After a certain number of waves, program a mini “boss battle,” where the boss has some completely new abilities. For example, maybe the boss can fire projectiles at you, maybe it is extremely agile, or maybe it occasionally generates little minions that come after you.

6. Hints and solution walkthrough

Hints:

  • Easy: Harder enemy
    • Try using an array for the enemy prefabs.
  • Medium: Homing rockets
    • Try using an enum to differentiate the power ups
  • Hard: Smashingly good
    • Extend the enum you created in the previous challenge
  • Expert: Boss battle
    • Create a new SpawnBossWave function that only runs if the wave number is a multiple of a particular value.

Solution walkthrough

If you are really stuck, download the step-by-step solution walkthrough.

Note that there are likely many ways to implement these features - this is only one suggestion.

Optional Step

7. Share your work

Have you implemented any of these bonus features? Have you added any new, unique features? Have you applied these new features to another project?

We would love to see what you've created!

Please take a screenshot of your project or do a screen-recording walking us through it, then post it here to share what you’ve made.

We highly recommend that you comment on at least one other creator's submission. What do you like about the project? What would be a cool new feature they might consider adding?

Please login to submit

Complete this tutorial

Submission Gallery

Create With Code: Prototype 4 Bonus Features

Create With Code: Prototype 4 Bonus Features

Completed all the challenges in Unity 6. I used the sound effects provided in the previous challenges to make it more interesting. I also added a dash ability that can be used any time.

A
atrissanen
0
0
SkyBall

SkyBall

Added Reload Scene, Start and Exit Button. Uses Physics.OverlapSphere on PowerSmash. I Dont Use Enum Because I want Enemies and PowerUps to Be Random On Array.

I
ilajo123
16
0
Bonus Gameplay Mechanics

Bonus Gameplay Mechanics

Things I add to the Game: - Harder Enemies - 2 new Power Ups (Shooting Homing Bullets and Jump and Smash down) - Up & Down Floating Power Ups - Particles for Shooting Bullets, also for Jumping Up and Smashing Down on the Ground - A max spawn limit of 3 for each Power Up - Different spawn Pattern for the FireUps(Shooting Bullets), JumpUps and Harder Enemies. - Animation for my Halo Indicator before the Power Ups are expiring. - You can only have one Power Up at the same time. - Bigger Stage. - A Wave Counter - And Probably things I forgot to mention. - No Boss (I already spend a lot of time doing all things from the list above, so fck it :D)

M
Marakasch
24
0
Prototype4 web

Prototype4 web

Hard one

A
AlisheR_Ahmedov
24
0
Prototype 4

Prototype 4

Collect each of the three power ups! Try to get to wave 3! Hint: Press Space when you collect the trophy and fire power ups!

S
Swift22
28
0
Fourth Challange Complete!

Fourth Challange Complete!

Harder Enemies ✓ (Some enemies are spawned with increased size; they are slower but are harder to push.) Homing Rocket Power Up ✓ (Player can launch 1 homing rocket that will chase down the nearest enemy. If that enemy is pushed out, the homing rocket will switch its target to its next closest enemy.) Smash Attack Power Up ✓ (Player Jumps using a balloon and on smash creates a shockwave that pushes the enemies hit by the shockwave.) Boss Enemy ✓ (On the fourth or final round, a black ball will spawn. It's not the biggest ball, but the boss can boost itself whenever it gets too far from the player or near the edges.)

P
PewPewDevelops
40
1
Falling Down

Falling Down

Result of Bonus Feature 4 Added some sounds, particle systems, score, panel fade effects and increasing difficulty.

PS
Philipp Sam Lange
67
0
Cabezones

Cabezones

El prototipo 4, pero con cabezones.

J
Jochewi
50
0