Updatable
The Updatable
interface represents an object that can be updated every frame in the game.
Definition
interface Updatable {
update: UpdateFunction;
}
Methods
update
- Type:
UpdateFunction
The update method that should be implemented by any object implementing the Updatable
interface. This method is responsible for updating the state of the object on each frame.