Bombs Away! — Xevious Dev Log

Paul Marsh
1 min readApr 21, 2021

--

Static Xevious test/demo area

Xevious Ship Feature List

  • Ship moving — Tick
  • Ship shooting bullets — Tick
  • Flying enemy destroyed by bullets — Tick
  • Ship Target flashes when it’s on an enemy (flying or ground) — Tick
  • Ship can drop one bomb at a time — Tick
  • Separate destination bomb target — Tick
  • Bomb knows when it’s landed and if it’s hit a target — Tick

The latter was a little bit more interesting to implement. Typically when a projectile collides with an entity in 2D space then you carry out whatever destruction code is required. However, for a bomb it’s different. The bomb has a fake trajectory, so it should pass over objects. So even though Unity is telling the code the bomb has hit something it needs to be ignored. Only when the bomb “lands” should the detected collisions be considered.

Next step, let’s blow-up some ground targets.

--

--