Skip to content

Shooting Enemy

NebSeniah edited this page Jun 12, 2026 · 6 revisions

System Summary

The Shooting Enemy fires a projectile in


Connected Systems

Connecting Systems:


Bugs

  • None

Feature List / Breakdown of Features

Shooting:

  • The enemy fires a projectile in the direction indicated.
  • If the projectile makes contact with the player, it harms them.
  • If the projectile makes contact with a tile, it gets deleted.
  • If the projectile leaves the screen, it gets deleted.

Important Variables

  • direction: float = What direction the enemy fires in in degrees, starting on the positive x-axis and moving clockwise.
  • shotSpeed: float = How fast the projectiles travel.
  • fireRate: float = How fast the enemy fires.

Important Functions

  • func shooting_behavior() -> void: Fires the projectile on an interval.

Future Work / Risks

Future Work:

  1. Merging the branch into main.
  2. Option for toggleable invulnerability on these enemies
  3. Bullet bouncing

Miscellaneous Notes

A place for miscellaneous notes pertaining to this system.

  • None

Clone this wiki locally