worldsmith 0.6.0 copy "worldsmith: ^0.6.0" to clipboard
worldsmith: ^0.6.0 copied to clipboard

outdated

A library for creating RPGs using [ziggurat](https://pub.flutter-io.cn/packages/ziggurat).

worldsmith #

This package lets you build RPG's by creating objects in pure Dart.

Features #

  • Create games by just creating objects.
  • Dump the worlds you create to json.

Getting started #

Create a world:

import 'package:worldsmith/worldsmith.dart';

Future<void> main() {
  final world = World(title: 'Example World');
}

Now create a game that can serve as the interface between worldsmith and ziggurat.

import 'package:worldsmith/command_triggers.dart';
import 'package:worldsmith/world_context.dart';
import 'package:worldsmith/worldsmith.dart';
import 'package:ziggurat/ziggurat.dart';

Future<void> main() {
  final world = World(title: 'Example World');
  final game = Game(world.title, triggerMap: defaultTriggerMap);
}

Now create a WorldContext instance.

import 'package:worldsmith/command_triggers.dart';
import 'package:worldsmith/world_context.dart';
import 'package:worldsmith/worldsmith.dart';
import 'package:ziggurat/ziggurat.dart';

Future<void> main() {
  final world = World(title: 'Example World');
  final game = Game(world.title, triggerMap: defaultTriggerMap);
  final worldContext = WorldContext(game: game, world: world);
}

Now run the world.

import 'package:worldsmith/command_triggers.dart';
import 'package:worldsmith/functions.dart';
import 'package:worldsmith/world_context.dart';
import 'package:worldsmith/worldsmith.dart';
import 'package:ziggurat/ziggurat.dart';

Future<void> main() {
  final world = World(title: 'Example World');
  final game = Game(world.title, triggerMap: defaultTriggerMap);
  final worldContext = WorldContext(game: game, world: world);
  return runWorld(worldContext);
}

Usage #

This package is intended to be used from within an editor which is still under development. Users can still use this package to create games in pure code.

Additional information #

This package is still in extremely early days. If you have any problems, please submit an issue.

0
likes
0
points
2
downloads

Publisher

verified publisherbackstreets.site

Weekly Downloads

A library for creating RPGs using [ziggurat](https://pub.flutter-io.cn/packages/ziggurat).

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, dart_sdl, dart_synthizer, encrypt, json_annotation, open_url, path, ziggurat, ziggurat_sounds

More

Packages that depend on worldsmith