PxSprite
andPxFilter
components to be used instead ofHandle<Px{Sprite,Filter}Asset>
(which were calledHandle<Px{Sprite,Filter}>
)PxAnimation
componentPxMap
component, which containsPxTiles
, which was previously calledPxMap
and is no longer a componentScreenSize
enum, with a variant that allows dynamically changing draw resolution as the window's aspect ratio changes.PxPlugin
now accepts animpl Into<ScreenSize>
for the screen size (which may be aUVec2
, like before).PaletteHandle
resources, which contains the currentHandle<Palette>
SelectLayerFn
trait, which layer selection functions must now implement. It has the additional bound ofClone
.PaletteLoader
(.px_palette.png
),PxSpriteLoader
(.px_sprite.png
),PxFilterLoader
(.px_filter.png
),PxTypefaceLoader
(.px_typeface.png
) andPxTilesetLoader
(.px_tileset.png
)PxButtonSprite
andPxButtonFilter
componentsOrthogonal
andDiagonal
math types
- Updated
bevy
to 0.15 seldom_pixel
entities are extracted to the render world and drawn there. Involved components implementExtractComponent
and involved resources implementExtractResource
. Due to this change, entities on the same layer Z-fight. This behavior may change in the future.PxSpriteData
,PxFilter
, andPxTilesetData
are now calledPxSpriteAsset
,PxFilterAsset
, andPxTileset
respectivelyPxAnimationDirection
,PxAnimationDuration
,PxAnimationFinishBehavior
, andPxAnimationFrameTransition
are no longer components and are instead fields of the newPxAnimation
componentPxText
has aHandle<PxTypeface>
component, replacing the handle's use as a componentPxEmitterFrequency
andPxEmitterSimulation
are no longer components and are instead fields of the newPxEmitter
componentPalette
is an asset instead of a resource#[px_layer]
derivesExtractComponent
PxAnimationFinished
,PxHover
, andPxClick
are table components. They were sparse set.
- The built-in asset management (
PxAsset
,PxAssets
,PxAssetTrait
,PxAssetData
, andLoadingAssets
) in favor of the new asset loaders. - Bundles (
PxSpriteBundle
,PxFilterBundle
,PxAnimationBundle
,PxTextBundle
,PxMapBundle
,PxTileBundle
,PxEmitterBundle
,PxButtonSpriteBundle
, andPxButtonFilterBundle
) in favor of required components PxEmitterSprites
,PxEmitterRange
, andPxEmitterFn
in favor ofVec<Handle<PxSprite>>
,IRect
, andBox<dyn Fn(&mut EntityCommands) + Send + Sync>
fields inPxEmitter
PxIdleSprite
,PxHoverSprite
, andPxClickSprite
in favor ofPxButtonSprite
PxIdleFilter
,PxHoverFilter
, andPxClickFilter
in favor ofPxButtonFilter
PxAnimationStart
in favor of anInstant
field inPxAnimation
- Vestigial variants of
PxSet
(Unloaded
,Loaded
,LoadAssets
,Draw
, andDrawCursor
)
- Updated
bevy
to 0.14
seldom_fn_plugin
integration
- Fixed crash when drawing lines against the bounds of the screen
- Updated
bevy
to 0.13 - Replaced
bevy_ecs_tilemap
with built-in tilemap
RectExt
extension trait forIRect
, with some helper functions
- Updated
bevy
to 0.12
URect
andIRect
in favor ofbevy
's types of the same names
- Updated
bevy
to 0.11
- Updated
seldom_state
to 0.6
- In wasm, spawning a particle emitter with pre-simulation too soon after startup caused a panic
- Some setups had compile errors
- Wasm builds do not run (not fixed with the
particle
feature)
- Updated
bevy
to 0.10 - Text is drawn within a
PxRect
component - Text requires
PxCanvas
- Animations spasmed when
PxAnimationBundle
is added, removed, and then added again