fledge_calendar 0.2.1 copy "fledge_calendar: ^0.2.1" to clipboard
fledge_calendar: ^0.2.1 copied to clipboard

Calendar and in-game time system for Fledge games with configurable day/night cycles, seasons, and time scaling.

fledge_calendar #

In-game calendar and time-of-day system for Fledge games. Day/night cycles, seasons, and configurable time scaling.

pub package

Previously published as fledge_time. The old package name still resolves via a re-export shim for one release — new code should depend on fledge_calendar directly.

Installation #

dependencies:
  fledge_calendar: ^0.2.1

Quick Start #

import 'package:fledge_ecs/fledge_ecs.dart';
import 'package:fledge_calendar/fledge_calendar.dart';

void main() async {
  final app = App()
    ..addPlugin(WallTimePlugin())
    ..addPlugin(CalendarPlugin(config: CalendarConfig.farmingSim()));

  await app.tick();

  final calendar = app.world.getResource<Calendar>()!;
  print(calendar.timeString);      // "6:00 AM"
  print(calendar.calendarString);  // "Mon, Spring 1, Year 1"

  await app.run();
}

Documentation #

See the Fledge documentation site for guides, API reference, and advanced usage.

License #

Apache 2.0 - See LICENSE for details.

0
likes
160
points
--
downloads

Documentation

API reference

Publisher

verified publisherfledge-framework.dev

Calendar and in-game time system for Fledge games with configurable day/night cycles, seasons, and time scaling.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#ecs #game-engine #time #calendar #day-night

License

Apache-2.0 (license)

Dependencies

fledge_ecs, meta

More

Packages that depend on fledge_calendar