menu
bullseye2d
bullseye2d.dart
bullseye2d
dark_mode
light_mode
bullseye2d
library
Classes
Accelerometer
Input
Provides access to the device's accelerometer data, including the force of gravity.
App
App
The base App class. Extend from this class to create a Bullseye2D application.
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,
Constants
pi
→ const double
The PI constant.
Properties
accel
→ Accelerometer
Core Systems
{@category Core_Systems}
Provides access to the device's accelerometer data.
no setter
audio
→ Audio
Core Systems
{@category 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.
{@category Getting_Started}
{@category TutorialFirstApp}
{@category Features}
{@category Cheatsheet}
getter/setter pair
die
→ dynamic
Debug
{@category Debug}
Behaves the same as error , but stops the application / launches the debugger
final
error
→ dynamic
Debug
{@category Debug}
Behaves the same as log , but uses error verbosity
final
gamepad
→ Gamepad
Core Systems
{@category Core_Systems}
Handles gamepad input from connected controllers.
no setter
gfx
→ Graphics
Core Systems
{@category Core_Systems}
The main graphics interface for rendering 2D primitives, textures, and text.
no setter
info
→ dynamic
Debug
{@category Debug}
Behaves the same as log , but uses info verbosity
final
keyboard
→ Keyboard
Core Systems
{@category Core_Systems}
Manages keyboard input.
no setter
loader
→ Loader
Core Systems
{@category Core_Systems}
Manages the loading of game assets.
no setter
log
→ dynamic
Debug
{@category Debug}
Accepts a variable number of arguments for logging.
final
mouse
→ Mouse
Core Systems
{@category Core_Systems}
Manages mouse and touch input.
no setter
resources
→ ResourceManager
Core Systems
{@category Core_Systems}
Manages loading and caching of game resources like textures, fonts, and sounds.
no setter
warn
→ dynamic
Debug
{@category Debug}
Behaves the same as log , but uses warn verbosity
final