tremble 1.2.8
tremble: ^1.2.8 copied to clipboard
A Simple Flutter game engine.
1.2.8 #
[BREAKING]Gridis now generic —Grid<T>.Grid.emptyrenamed toGrid.filledand now requires avalue.[BREAKING]Gridno longer imports Flutter.Grid.draw,Grid.forEachDrawArea,Grid.debugDraw,Grid.debugPalette,Grid.toJson1dandGrid.toJson2dmoved to theIntGridXextension onGrid<int>.debugDrawnow accepts apaletteparameter.[BREAKING]AABB.copyWithandCircle.copyWithremoved. Replaced byShape.clone()—AABB.clone(),Circle.clone()andLine.clone()added.Sweepintroduced —expand,expandAABB,expandCircle,expandAABBAndCircle,expandCircleAndAABBfor swept collision (Minkowski-style expansion of a moving shape against a target).Minkowski.getPenetrationsign convention flipped so the penetration vector points outward from the overlapping AABB.Raydirection now usesnormalized()instead of normalizing the passed vector in place.analysis_options.yamlnow excludes platform and build directories from analysis.
1.2.7 #
SpriteBatch.drawnow acceptsAABB? cullArea.SpriteBatch.getEnumupdated.
1.2.6 #
CollisionDetector.shapeToShapeadded — detects collisions between any twoShapes.Vec2.dampandVec2.moveTowardsadded.Gridextended:clone,screenToGrid, neighbor helpers (hasNeighbor*,*NeighborTile),forEachNeighbor4/forEachNeighbor8,neighborTiles4/neighborTiles8.Grid.drawandGrid.debugDrawadded for easy tile map rendering.Grid.setTile2dScreennow floors coordinates correctly for negative values.TileMapculling fixed for negative positions andassertadded for emptytileAreas.Cameratranslate sign fixed.SpriteBatch.getAnimationnow returns a typedAnimationData<T>.
1.2.5 #
- Modulate bug fixed.
1.2.4 #
- Faster
TileMaprendering.
1.2.3 #
[BREAKING]AssetNameinterface removed. Enums must overridetoString()instead of implementingAssetName.[BREAKING]SpriteBatch.drawsignature changed:Paint?parameter removed,BlendModeis now a named param.[BREAKING]Rect.gridrenamed toRect.gridByCount.SpriteBatch.fromOldGdxPackerremoved — usefromGdxPackerinstead.SpriteBatch.getRectremoved — usegetTextureinstead.SpriteBatch.getEnumadded — generates enum code from atlas for debugging.SpriteBatch.paintmade public.Raycaster.raycastGridparamtileSizerenamed tocellSize.Rect.gridBySizeadded — splits rect into cells of a fixed pixel size.Helpers.toCamelCaseadded — converts snake/PascalCase strings to camelCase.Helperschanged toabstract final class.GridandTileMapclasses have been introduced.FixedUpdateandlifecycleChangedadded (1.2.2 items, now released).
1.2.2 #
FixedUpdateimplemented. You can have multiple of them and update them whenever.lifecycleChangedadded toScreenController.
1.2.1 #
- Readme and examples updated.
1.2.0 #
- Big structural changes. You might need to rename some imports.
[BREAKING] SignalValueadded andSignalBuilderchanged toSignalValueBuilder.RigidBody,CollisionResolver,SpatialHash,Raycaster,Minkowskiintroduced.AABB,CircleandLineclasses got adraw(canvas, color)function.drawfunction added toVec2..circlegetter added toAABBand.aabbgetter added toSprite.SpriteBatch.getAnimationand.getTexturenow expectsAssetNameimplementated object..speedfield added toAnimation.CanvasTextintroduced.
1.0.24 #
AnimationsetAnimation will now instantly change frame.
1.0.23 #
Animationclass improvements and renames. (See docs)inflateanddeflateadded toAABB.randWeightedPickandrandWeightedTakeadded toMathUtils.
1.0.22 #
reverseandmoderemoved fromAnimationDatait is instead added toAnimationitself.
1.0.21 #
AnimationDataloopreplaced with bunch of animation modes, seeAnimModeenum.moveTowardsanddampfunctions added toMathUtils.Spring1DandSpring2Dadded.
1.0.20 #
SpriteBatchgetAnimation function now gets single textures if it doesn't find any animation frames.
1.0.19 #
- Multiple page texture atlas support added to
SpriteBatch. Signalimprovements.StateMachinenow clears theonBeforeStateChangeandonAfterStateChangeupon callingclear()
1.0.18 #
\nwindows split bug fixed.
1.0.17 #
StateMachineupdated.Animationupdated.
1.0.16 #
SpriteBatchperformance increased.Cameraadded.Vector2improved and renamed toVec2.AABB,Circle,Lineclasses added.CollisionDetectoradded.- Example updated.
1.0.15 #
- Documentation added.
1.0.14 #
saveImageandgenerateMaskedfunctions added toImageUtils.- A boolean
maskfield added toSpriteclass.
1.0.13 #
randTakeadded to MathUtils.
1.0.12 #
normalizeAngleandlerpAngleadded toMathUtilsclass.
1.0.11 #
Tweenclass introduced.
1.0.10 #
Parametricsclass added with bunch of 1d nonlinear functions. (Tweening)Vector2class added.SecondOrderDynamicsclass added.
1.0.9 #
resetfunction added to theStateMachine.- You can set the initial state of
StateMachinenow.
1.0.8 #
WaitEventsclear bug fixed.
1.0.7 #
ColorUtilsintroduced.onBeforeStateChangeandonAfterStateChangecallbacks added toStateMachine.resetStatefunction renamed torestartState.
1.0.6 #
- Generic
StateMachineimplemented.
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:resetfunction added.
1.0.4 #
- Added
periodicfunction to the bothWaitChainBuilderandWaitEvents.
1.0.3 #
- Added
blockUntilfunction to theWaitChainBuilder. SpriteBatchrender performance increased.
1.0.2 #
- Added the
WaitChainBuilderclass to makeWaitEventseasier to use. It allows you to create game cinematics more easily.
1.0.1 #
- Documentation updated.
1.0.0 #
- Initial release.