Set the target frame rate you want to achieve.
remarks It only takes effect when vSyncCount = 0 (ie, vertical synchronization is turned off). The larger the value, the higher the target frame rate, Number.POSITIVE_INFINIT represents the infinite target frame rate.
The number of vertical synchronization means the number of vertical blanking for one frame.
remarks0 means that the vertical synchronization is turned off.
Create an entity.
The name of the entity
Dispatch the event with the specified event name.
Returns- Whether the dispatching is successful
Determine whether there is event listening.
ReturnsReturns whether there is a corresponding event
Returns the number of listeners with the specified event name.
ReturnsThe count of listeners
Remove all event listeners.
Event name, delete all events if not passed
deprecatedUse `dispatch` instead.
Update the engine loop manually. If you call engine.run(), you generally don't need to call this function.