bullseye2d library
Classes
- Accelerometer Input
- Provides access to the device's accelerometer data, including the force of gravity.
- App App
-
The base
Appclass. Extend from this class to create aBullseye2Dapplication. - AppConfig App
- The configuration settings for the application.
- Audio Audio
- Manages audio playback for sounds and music.
- AudioVisualizer Audio
- Provides audio visualization (waveform data) for the currently playing music.
- BitmapFont Graphics
- A font rendered from a pre-generated texture atlas.
- Char Input
- Represents a single character input event, including the character symbol and the physical key code that produced it.
- Gamepad Input
- Manages input from connected gamepads.
- Graphics Graphics
- Provides the core 2D rendering capabilities for the Bullseye2D engine.
- Image Graphics
- A drawable image, typically a sub-region of a Texture.
- Keyboard Input
- Manages keyboard input, tracking key states (down, up, hit) and buffering character input.
- Loader IO
- Manages and tracks the progress of multiple asynchronous loading operations.
- LoaderItem IO
- An individual item being tracked by the Loader.
- LocalStorage IO
- A utility class for persistent key-value storage.
- Mouse Input
- Manages mouse, touch, and pointer input.
- Platform Utility
- Provides utility methods for detecting the current platform.
-
Point<
T extends num> - A utility class for representing two-dimensional positions.
-
Rect<
T extends num> Utility - Represents a rectangle defined by a top-left corner left, top and a width and height.
- ResourceManager IO
- Manages the loading of game resources such as textures, images, fonts, and sounds.
- Sound Audio
- Manages an audio resource, its loading state, and playback properties.
- Texture Graphics
- Represents a Texture. Textures are reference-counted; use retain and dispose to manage their lifecycle.
- TextureFlags Graphics
- Defines bitmask flags to control Texture behavior, such as filtering,
Enums
- BlendMode Graphics
- Defines how source and destination colors are blended together when rendering.
- ChannelState Audio
- The playback state of an audio channel or music.
- GamepadButton Input
- Represents the standard buttons and directional inputs found on a typical gamepad.
- Joystick Input
- Identifies the left or right analog stick on a gamepad.
- KeyCodes Input
- Represents physical key codes
- LoadingState Audio
- The loading status of a Sound resource.
- MouseButton Input
- Represents the buttons on a mouse.
- Trigger Input
- Identifies the left or right analog trigger on a gamepad.
Extensions
- BitmaskExtension on int Utility
- Provides extension methods for bitmask operations on integers.
- ColorExtension on Color Graphics
- Provides utility methods for Color (Vector4) objects.
- ImageListExtension on Images Graphics
- Provides extension methods for lists of Image objects (Images).
-
SumListExtension
on List<
num> Utility -
Extension on
List<num>to provide utility methods for calculations.
Properties
- accel → Accelerometer Core Systems
-
Provides access to the device's accelerometer data.
no setter
- audio → Audio Core Systems
-
Manages audio playback for sounds and music.
no setter
- dartDoc ↔ bool? Features Cheatsheet Getting Started My first App
-
This is just a unused variable to enforce the dart doc generator
to include topics that aren't attached to a specific classes or
functions.
getter/setter pair
- die → dynamic Debug
-
Behaves the same as error, but stops the application / launches the debugger
final
- error → dynamic Debug
-
Behaves the same as log, but uses error verbosity
final
- gamepad → Gamepad Core Systems
-
Handles gamepad input from connected controllers.
no setter
- gfx → Graphics Core Systems
-
The main graphics interface for rendering 2D primitives, textures, and text.
no setter
- info → dynamic Debug
-
Behaves the same as log, but uses info verbosity
final
- keyboard → Keyboard Core Systems
-
Manages keyboard input.
no setter
- loader → Loader Core Systems
-
Manages the loading of game assets.
no setter
- log → dynamic Debug
-
Accepts a variable number of arguments for logging.
final
- mouse → Mouse Core Systems
-
Manages mouse and touch input.
no setter
- resources → ResourceManager Core Systems
-
Manages loading and caching of game resources like textures, fonts, and sounds.
no setter
- warn → dynamic Debug
-
Behaves the same as log, but uses warn verbosity
final
Functions
-
atan2Degree(
num a, num b) → double Utility -
Calculates the angle in degrees for the point (b, a) using
atan2(a, b). -
colorFromInt(
int value) → Color -
cos(
num radians) → double -
Converts
radiansto a double and returns the cosine of the value. -
cosDegree(
num degree) → double Utility -
Calculates the cosine of an angle given in
degrees. -
debugger(
{bool when = true, String? message}) → bool -
If
whenis true, stop the program as if a breakpoint were hit at the following statement. -
loadStringAsync(
String url, Loader loadingInfo, {FileBackend? fileBackend}) → Future< IOString> -
Asynchronously loads a string from the specified
url. -
logEnableStacktrace(
bool enable) → void Debug - Prepend source location to all messages
-
logFilter(
[String? filter]) → void Debug - Configures log output filtering.
-
logOff(
) → void Debug - Disables all logging output
-
logOn(
) → void Debug - Enables all logging output
-
logReset(
) → void Debug - Clears the tag stack
-
min<
T extends num> (T a, T b) → T - Returns the lesser of two numbers.
-
nextPowerOfTwo(
int v) → int Utility -
Calculates the next power of two greater than or equal to the given integer
v. -
sin(
num radians) → double -
Converts
radiansto a double and returns the sine of the value. -
sinDegree(
num degree) → double Utility -
Calculates the sine of an angle given in
degrees. -
sqrt(
num x) → double -
Converts
xto a double and returns the positive square root of the value. -
tanDegree(
num degree) → double Utility -
Calculates the tangent of an angle given in
degrees.