Eye of the Nile Docs
Everything you need to know to get started!
Loading...
Searching...
No Matches
GebEarthquakeZone Class Reference

Detailed Description

This is the script for Geb's earthquake zone. This script summons particles, scales the earthquake zone size, can damage the player, and can slow the player down.

Documentation updated 1/30/2025

Author
Alexander Art
Todo
Finish documentation for this file.

Protected Attributes

GebBossController gebBossController
 Reference to Geb's boss controller.
 

Private Member Functions

void Awake ()
 
void Update ()
 
void OnTriggerEnter2D (Collider2D col)
 
void OnTriggerExit2D (Collider2D col)
 

Private Attributes

GameObject particleEffect
 Reference to the particle object that will be repeatedly instantiated at the earthquake.
 
float maxEarthquakeSize = 25f
 
float timeBetweenParticles = 0.1f
 
int damageAmount = 10
 
float timeBetweenDamage = 0.2f
 
float playerMoveVelocity = 6f
 
System.Random rng = new System.Random()
 Create random number generator.
 
float particleTimer = 0f
 
float damageTimer = 0f
 
List< PlayerHealthobjectsToDamage = new()
 
float initialPlayerMoveVelocity
 
float initialParticleEffectSizeX
 

Member Function Documentation

◆ Awake()

void GebEarthquakeZone.Awake ( )
private

◆ OnTriggerEnter2D()

void GebEarthquakeZone.OnTriggerEnter2D ( Collider2D col)
private

◆ OnTriggerExit2D()

void GebEarthquakeZone.OnTriggerExit2D ( Collider2D col)
private

◆ Update()

void GebEarthquakeZone.Update ( )
private

Member Data Documentation

◆ damageAmount

int GebEarthquakeZone.damageAmount = 10
private

◆ damageTimer

float GebEarthquakeZone.damageTimer = 0f
private

◆ gebBossController

GebBossController GebEarthquakeZone.gebBossController
protected

Reference to Geb's boss controller.

◆ initialParticleEffectSizeX

float GebEarthquakeZone.initialParticleEffectSizeX
private

◆ initialPlayerMoveVelocity

float GebEarthquakeZone.initialPlayerMoveVelocity
private

◆ maxEarthquakeSize

float GebEarthquakeZone.maxEarthquakeSize = 25f
private

◆ objectsToDamage

List<PlayerHealth> GebEarthquakeZone.objectsToDamage = new()
private

◆ particleEffect

GameObject GebEarthquakeZone.particleEffect
private

Reference to the particle object that will be repeatedly instantiated at the earthquake.

◆ particleTimer

float GebEarthquakeZone.particleTimer = 0f
private

◆ playerMoveVelocity

float GebEarthquakeZone.playerMoveVelocity = 6f
private

◆ rng

System.Random GebEarthquakeZone.rng = new System.Random()
private

Create random number generator.

◆ timeBetweenDamage

float GebEarthquakeZone.timeBetweenDamage = 0.2f
private

◆ timeBetweenParticles

float GebEarthquakeZone.timeBetweenParticles = 0.1f
private

The documentation for this class was generated from the following file: