Package com.csse3200.game.components
Class BreakablePlatformComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.BreakablePlatformComponent
Component for a breakable platform that shakes, fades, and disappears after a player steps on it.
The platform listens for collision events to detect when a player lands on it.
Once triggered, it will wait for a configurable delay before starting a shaking animation,
then disables the platform's physics body and smoothly fades out its texture before removal.
All timing and effect parameters are configurable via constructor or can be customized by subclassing.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
Called when the entity is created and registered.Methods inherited from class com.csse3200.game.components.Component
dispose, earlyUpdate, getEntity, getPrio, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
BreakablePlatformComponent
public BreakablePlatformComponent()
-
-
Method Details