1.0.0-releasecandidate.14
版本发布时间: 2021-09-17 22:22:53
flame-engine/flame最新发布版本:v1.22.0(2024-11-25 18:46:44)
CHANGELOG
[1.0.0-releasecandidate.14]
- Reset effects after they are done so that they can be repeated
- Remove integrated joystick buttons
- Add
MarginHudComponent
, used when components need to have a margin to the viewport edge - Refactor
JoystickComponent
- Add
SpriteAnimationWidget.asset
- Add
SpriteWidget.asset
- Add
SpriteButton.asset
- Add
NineTileBox.asset
- Fix resolution of
TextBoxComponent
- Add
BaseGame.remove
andBaseGame.removeAll
helpers for removing components - Add
BaseComponent.remove
andBaseComponent.removeAll
helpers for removing children - Rename
Camera.cameraSpeed
toCamera.speed
- Rename
addShape
toaddHitbox
inHitbox
mixin - Fix bug with Events and Draggables
- Add generics to components with HasGameRef so that they can be extended and have another gameRef
- Fix parallax fullscreen bug when game is resized
- Generalize
paint
usage on components - Create
OpacityEffect
- Create
ColorEffect
- Adding ability to pause
SpriteAnimationComponent
- Adding
SpriteGroupComponent
- Fix truncated last frame in non-looping animations
- Default size of
SpriteComponent
issrcSize
instead of spritesheet size - Export test helper methods
- Rename
ScaleEffect
toSizeEffect
- Introduce
scale
onPositionComponent
- Add
ScaleEffect
that works onscale
instead ofsize
- Add class
NotifyingVector2
- Add class
Transform2D
- Added helper functions
testRandom()
andtestWidgetsRandom()
- Remove
FPSCounter
fromBaseGame
- Refactor
PositionComponent
to work withTransform2D
: the component now works more reliably when nested - Properties
renderFlipX
,renderFlipY
removed and replaced with methodsflipHorizontally()
andflipVertically()
. - Method
.angleTo
removed as it was not working properly. - In debug mode
PositionComponent
now displays an indicator for the anchor position. - Update
Camera
docs to showcase usage withGame
class - Fixed a bug with
worldBounds
being set tonull
inCamera
- Remove
.viewport
fromBaseGame
, usecamera.viewport
instead -
MockCanvas
is now strongly typed and matches numeric coordinates up to a tolerance - Add
loadAllImages
toImages
, which loads all images from the prefixed path - Reviewed the keyboard API with new mixins (
KeyboardHandler
andHasKeyboardHandlerComponents
) - Added
FocusNode
on the game widget and improved keyboard handling in the game. - Added ability to have custom mouse cursor on the
GameWidget
region - Change sprite component to default to the Sprite size if not provided
-
TextBoxComponent
waits for cache to be filled ononLoad
-
TextBoxComponent
can have customizablepixelRatio
- Add
ContainsAtLeastMockCanvas
to facilitate testing withMockCanvas
- Support for
drawImage
forMockCanvas
-
Game
is now aComponent
-
ComponentEffect
is now aComponent
-
HasGameRef
can now operate independently fromGame
-
initialDelay
andpeakDelay
for effects to handle time before and after an effect -
component.onMount
now runs every time a component gets a new parent - Add collision detection between child components