Sorting::by()
This works in a project you run on your own computer, but not in the examples you can start here in the browser. There is no file system, no video encoder and no OpenGL behind a web page, so calling it there tells you as much and does nothing.
Draws sprites in an order of your own.
Syntax
Java
.by(comparator)
Parameters
| Name | Data Type | Description |
|---|---|---|
| comparator | Comparator<Sprite> | decides which of two sprites is drawn first |
Return
void