angstrom 0.2.8 copy "angstrom: ^0.2.8" to clipboard
angstrom: ^0.2.8 copied to clipboard

A package for rapid prototyping of game worlds with a streaming API.

Angstrom #

Description #

This package provides the ability to create top-down audio games with very little code.

Example #

// ...
class MyEngine extends AngstromEngine {
  /// Create an instance.
  MyEngine({required super.playerCharacter});
}

The engine has the public-facing API which you can use control your game. It has an events stream which can be listened to.

Interface #

You can rig up an interface fairly quickly with Angstrom, but it also has sensible defaults:

// .
Widget build(final BuildContext context) {
  return GameScreen(
    engine: engine,
    title: 'Exciting Game'
  );
}

Editing maps #

If you don't fancy hand-coding your own maps, include an AngstromEditor in your game's menu:

if (kDebugMode && !kIsWeb ) {
  context.pushWidgetBuilder((_) {
    const sounds = Assets.sounds;
    final footstepSounds = sounds.footsteps;
    return Cancel(
      child: AngstromEditor(
        directory: Directory('rooms'),
        footsteps: [
          FootstepsSounds(
            name: 'carpet_hard_surface',
            soundPaths: footstepSounds.carpetHardSurface.values,
          ),
          FootstepsSounds(
            name: 'Concrete',
            soundPaths: footstepSounds.concrete.values,
          ),
          FootstepsSounds(
            name: 'Gravel',
            soundPaths: footstepSounds.gravel.values,
          ),
        ],
        musicSoundPaths: sounds.music.values,
        ambianceSoundPaths: sounds.ambiances.values,
      ),
    );
  });
}

The editor package can be found on pub.flutter-io.cn.

0
likes
150
points
673
downloads

Publisher

verified publisherbackstreets.site

Weekly Downloads

A package for rapid prototyping of game worlds with a streaming API.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Unlicense (license)

Dependencies

backstreets_widgets, flutter, flutter_audio_games, flutter_soloud, json_annotation, meta, stts

More

Packages that depend on angstrom