Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Missile Defend Game

A topic by rudaloo created Jul 30, 2018 Views: 477 Replies: 4
Viewing posts 1 to 5
(+1)

This is my second game. It will be a simple missile defense game. I've always wanted to make one and it will help me ramp up my unity chops.

Trello Tracker: https://trello.com/b/0uTAqs7H/missile-defender-game

Today I did the following

  1. Set background up
  2. Added mouse click capture
  3. Added code to launch rocket on mouse click toward mouse, as well as rotated toward the mouse


Tomorrow I want to do the following

  1. Create the enemy rocket prefabs
  2. Create the code that creates a random rocket angle toward the city
  3. Add colliders for the city

Interesting, I like the art style here! Will check it out .

(+1)

Been keeping at it the last couple of days. Things I implemented

  • Made the enemy hail rockets at the user
  • Made object pools for the player and user missiles
  • Made code that randomly selects a part of city for the enemy to shoot at as well as a random position in the sky
  • Made a simple explosion sprite sheet
  • Added city colliders
  • Added the explosion animation
Here's my little object pool  outside the game area,  its funny my explosions have collider on them so they push the missiles away, need to make them triggers, lol  :)


Things learned

  • When you want to use a prefab gameobject, INSTANTIATE it in code  and use the result! DONT use the prefab because it it not active!
  • Learned more about animations, how to start them
Here's a gif

Things I need to do.

  • Slow the enemy missiles the hell down
  • Add trigger collision between the explosions, missiles, and the city
  • Add health to the city
  • Add scoring

Also an idea that bugs me is how should levels and waves be implemented? Should I just make enemy missiles spawn faster? Also having power ups would be cool, like missile speed up or wider area explosion, etc...

Pretty cool game, if you'd like me to interview you about this game (for my blog), just email at the email in my profile bio please.

Finished the game. I didn't add music or make the enemy missile logic complicated. Nice and simple

https://rudaloo.itch.io/missile-defender