Customize this class with your specific FlameGame type T and a custom
provider () -> T, plus some additional configurations including a game
widget builder createGameWidget, a custom pumpWidget function and a
custom gameSize.
Customize this class with your specific Game type T and a custom
provider () -> T, plus some additional configurations including a game
widget builder createGameWidget, a custom pumpWidget function and a
custom gameSize.
Returns a matcher which checks if the argument is an axis-aligned bounding
box sufficiently close (within distance epsilon) to expected. Example
of usage:
This function is equivalent to test(name, body), except that it is
better suited for randomized testing: it will create a Random
generator and pass it to the test body, but also record the seed
that was used for creating the random generator. Thus, if a test
fails for a specific rare seed, it would be easy to reproduce this
failure.
This function is equivalent to testWidgets(name, body), except that
it is better suited for randomized testing: it will create a Random
generator and pass it to the test body, but also record the seed
that was used for creating the random generator. Thus, if a test
fails for a specific rare seed, it would be easy to reproduce this
failure.