Group
A Group in TaD will ensure everything put it into it is of the same type and be visible in TaD's debug panel. It however does not support forEach,map,filter or reduce.
Properties
Methods
- getRandomEntry()//Returns a random entry from the group
- draw()//Draws the contents of the group to the screen
- overlaps(collidableEntity,)//Checks if it overlaps with another collidable entity or group
- collides(collidableEntity,)//Checks if it collides with another collidable entity or group
- push()//Adds something to the array after clearing it for types
- unshift()//Adds something to the array after clearing it for types