bullseye2d 2.0.2 copy "bullseye2d: ^2.0.2" to clipboard
bullseye2d: ^2.0.2 copied to clipboard

A cross-platform 2D game library for Dart that supports a WebGL2 backend as well as native support for Windows, Mac and Linux via SDL3.

example/README.md

Bullseye2D Examples #

Bullseye2D comes with demos that run on both web and SDL3 desktop from the same source code.

Web #

Explore them on our website at bullseye2d.org/demos or run locally:

git clone https://github.com/bullseye2d/bullseye2d.git
cd bullseye2d/example
dart pub get
bullseye2d run web

Open your browser at http://localhost:8080.

SDL3 (Desktop) #

cd bullseye2d/example
dart pub get
bullseye2d run sdl3 hello_world

You can also start a specific demo directly:

dart run bin/main.dart hello_world
dart run bin/main.dart sprites
dart run bin/main.dart input
dart run bin/main.dart music_player

Source Code #

All demo logic is in lib/demos/ — shared between web and SDL3 with zero duplication.

More Examples #

Soko64 - A tiny 64x64 Low-Res Sokoban game #

Soko64 is a full sokoban game written in Bullseye2D:

You can play it here.

If you want to play around with the source, clone the repository:

git clone https://github.com/JochenHeizmann/soko64.git
cd soko64
dart pub get
bullseye2d run web

The whole game is in a single source file, web/main.dart.

1
likes
160
points
174
downloads

Documentation

API reference

Publisher

verified publisherasylumsquare.com

Weekly Downloads

A cross-platform 2D game library for Dart that supports a WebGL2 backend as well as native support for Windows, Mac and Linux via SDL3.

Repository (GitHub)
View/report issues

License

Zlib, MIT (license)

Dependencies

args, ffi, http, path, sdl3, shelf, shelf_static, vector_math, web

More

Packages that depend on bullseye2d