tremble 1.2.8 copy "tremble: ^1.2.8" to clipboard
tremble: ^1.2.8 copied to clipboard

A Simple Flutter game engine.

1.2.8 #

  • [BREAKING] Grid is now generic — Grid<T>. Grid.empty renamed to Grid.filled and now requires a value.
  • [BREAKING] Grid no longer imports Flutter. Grid.draw, Grid.forEachDrawArea, Grid.debugDraw, Grid.debugPalette, Grid.toJson1d and Grid.toJson2d moved to the IntGridX extension on Grid<int>. debugDraw now accepts a palette parameter.
  • [BREAKING] AABB.copyWith and Circle.copyWith removed. Replaced by Shape.clone()AABB.clone(), Circle.clone() and Line.clone() added.
  • Sweep introduced — expand, expandAABB, expandCircle, expandAABBAndCircle, expandCircleAndAABB for swept collision (Minkowski-style expansion of a moving shape against a target).
  • Minkowski.getPenetration sign convention flipped so the penetration vector points outward from the overlapping AABB.
  • Ray direction now uses normalized() instead of normalizing the passed vector in place.
  • analysis_options.yaml now excludes platform and build directories from analysis.

1.2.7 #

  • SpriteBatch.draw now accepts AABB? cullArea.
  • SpriteBatch.getEnum updated.

1.2.6 #

  • CollisionDetector.shapeToShape added — detects collisions between any two Shapes.
  • Vec2.damp and Vec2.moveTowards added.
  • Grid extended: clone, screenToGrid, neighbor helpers (hasNeighbor*, *NeighborTile), forEachNeighbor4 / forEachNeighbor8, neighborTiles4 / neighborTiles8.
  • Grid.draw and Grid.debugDraw added for easy tile map rendering.
  • Grid.setTile2dScreen now floors coordinates correctly for negative values.
  • TileMap culling fixed for negative positions and assert added for empty tileAreas.
  • Camera translate sign fixed.
  • SpriteBatch.getAnimation now returns a typed AnimationData<T>.

1.2.5 #

  • Modulate bug fixed.

1.2.4 #

  • Faster TileMap rendering.

1.2.3 #

  • [BREAKING] AssetName interface removed. Enums must override toString() instead of implementing AssetName.
  • [BREAKING] SpriteBatch.draw signature changed: Paint? parameter removed, BlendMode is now a named param.
  • [BREAKING] Rect.grid renamed to Rect.gridByCount.
  • SpriteBatch.fromOldGdxPacker removed — use fromGdxPacker instead.
  • SpriteBatch.getRect removed — use getTexture instead.
  • SpriteBatch.getEnum added — generates enum code from atlas for debugging.
  • SpriteBatch.paint made public.
  • Raycaster.raycastGrid param tileSize renamed to cellSize.
  • Rect.gridBySize added — splits rect into cells of a fixed pixel size.
  • Helpers.toCamelCase added — converts snake/PascalCase strings to camelCase.
  • Helpers changed to abstract final class.
  • Grid and TileMap classes have been introduced.
  • FixedUpdate and lifecycleChanged added (1.2.2 items, now released).

1.2.2 #

  • FixedUpdate implemented. You can have multiple of them and update them whenever.
  • lifecycleChanged added to ScreenController.

1.2.1 #

  • Readme and examples updated.

1.2.0 #

  • Big structural changes. You might need to rename some imports. [BREAKING]
  • SignalValue added and SignalBuilder changed to SignalValueBuilder.
  • RigidBody, CollisionResolver, SpatialHash, Raycaster, Minkowski introduced.
  • AABB, Circle and Line classes got a draw(canvas, color) function.
  • draw function added to Vec2.
  • .circle getter added to AABB and .aabb getter added to Sprite.
  • SpriteBatch .getAnimation and .getTexture now expects AssetName implementated object.
  • .speed field added to Animation.
  • CanvasText introduced.

1.0.24 #

  • Animation setAnimation will now instantly change frame.

1.0.23 #

  • Animation class improvements and renames. (See docs)
  • inflate and deflate added to AABB.
  • randWeightedPick and randWeightedTake added to MathUtils.

1.0.22 #

  • reverse and mode removed from AnimationData it is instead added to Animation itself.

1.0.21 #

  • AnimationData loop replaced with bunch of animation modes, see AnimMode enum.
  • moveTowards and damp functions added to MathUtils.
  • Spring1D and Spring2D added.

1.0.20 #

  • SpriteBatch getAnimation function now gets single textures if it doesn't find any animation frames.

1.0.19 #

  • Multiple page texture atlas support added to SpriteBatch.
  • Signal improvements.
  • StateMachine now clears the onBeforeStateChange and onAfterStateChange upon calling clear()

1.0.18 #

  • \n windows split bug fixed.

1.0.17 #

  • StateMachine updated.
  • Animation updated.

1.0.16 #

  • SpriteBatch performance increased.
  • Camera added.
  • Vector2 improved and renamed to Vec2.
  • AABB, Circle, Line classes added.
  • CollisionDetector added.
  • Example updated.

1.0.15 #

  • Documentation added.

1.0.14 #

  • saveImage and generateMasked functions added to ImageUtils.
  • A boolean mask field added to Sprite class.

1.0.13 #

  • randTake added to MathUtils.

1.0.12 #

  • normalizeAngle and lerpAngle added to MathUtils class.

1.0.11 #

  • Tween class introduced.

1.0.10 #

  • Parametrics class added with bunch of 1d nonlinear functions. (Tweening)
  • Vector2 class added.
  • SecondOrderDynamics class added.

1.0.9 #

  • reset function added to the StateMachine.
  • You can set the initial state of StateMachine now.

1.0.8 #

  • WaitEvents clear bug fixed.

1.0.7 #

  • ColorUtils introduced.
  • onBeforeStateChange and onAfterStateChange callbacks added to StateMachine.
  • resetState function renamed to restartState.

1.0.6 #

  • Generic StateMachine implemented.

1.0.5 #

  • Statemachine: The bug that caused the previous state to be lost when assigning the current state to itself has been resolved.
  • Statemachine: reset function added.

1.0.4 #

  • Added periodic function to the both WaitChainBuilder and WaitEvents.

1.0.3 #

  • Added blockUntil function to the WaitChainBuilder.
  • SpriteBatch render performance increased.

1.0.2 #

  • Added the WaitChainBuilder class to make WaitEvents easier to use. It allows you to create game cinematics more easily.

1.0.1 #

  • Documentation updated.

1.0.0 #

  • Initial release.
2
likes
140
points
777
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

A Simple Flutter game engine.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on tremble