Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Bevy Sprite Animations
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microhacks
Bevy Sprite Animations
Commits
cb727060
Verified
Commit
cb727060
authored
1 year ago
by
Louis
Browse files
Options
Downloads
Patches
Plain Diff
Use base sets for animation stages
parent
29b12830
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Cargo.toml
+1
-1
1 addition, 1 deletion
Cargo.toml
src/systems.rs
+8
-7
8 additions, 7 deletions
src/systems.rs
with
9 additions
and
8 deletions
Cargo.toml
+
1
−
1
View file @
cb727060
[package]
[package]
name
=
"micro_banimate"
name
=
"micro_banimate"
version
=
"0.5.0-beta.
0
"
version
=
"0.5.0-beta.
1
"
edition
=
"2021"
edition
=
"2021"
license
=
"Apache-2.0"
license
=
"Apache-2.0"
description
=
"Easily manage complex Bevy 2D sprite animations"
description
=
"Easily manage complex Bevy 2D sprite animations"
...
...
This diff is collapsed.
Click to expand it.
src/systems.rs
+
8
−
7
View file @
cb727060
...
@@ -4,6 +4,7 @@ use crate::definitions::*;
...
@@ -4,6 +4,7 @@ use crate::definitions::*;
use
crate
::
query
::
AnimationQuery
;
use
crate
::
query
::
AnimationQuery
;
#[derive(Debug,
Clone,
Copy,
PartialEq,
Eq,
Hash,
SystemSet)]
#[derive(Debug,
Clone,
Copy,
PartialEq,
Eq,
Hash,
SystemSet)]
#[system_set(base)]
pub
enum
AnimationSystems
{
pub
enum
AnimationSystems
{
TickAnimations
,
TickAnimations
,
SyncAnimations
,
SyncAnimations
,
...
@@ -83,18 +84,18 @@ pub struct AnimationSystemsPlugin;
...
@@ -83,18 +84,18 @@ pub struct AnimationSystemsPlugin;
impl
Plugin
for
AnimationSystemsPlugin
{
impl
Plugin
for
AnimationSystemsPlugin
{
fn
build
(
&
self
,
app
:
&
mut
App
)
{
fn
build
(
&
self
,
app
:
&
mut
App
)
{
app
.configure_set
(
app
.configure_set
s
(
(
AnimationSystems
::
SyncAnimations
CoreSet
::
PostUpdate
,
.after
(
AnimationSystems
::
TickAnimations
)
AnimationSystems
::
TickAnimations
,
.in_base_set
(
CoreSet
::
PostUpdate
)
,
AnimationSystems
::
SyncAnimations
,
);
)
);
app
.add_event
::
<
AnimationCompleted
>
()
app
.add_event
::
<
AnimationCompleted
>
()
.add_systems
(
.add_systems
(
(
tick_animations
,
tick_simple_sprite_animations
)
(
tick_animations
,
tick_simple_sprite_animations
)
.in_set
(
AnimationSystems
::
TickAnimations
),
.in_
base_
set
(
AnimationSystems
::
TickAnimations
),
)
)
.add_system
(
sync_parent_animations
.in_set
(
AnimationSystems
::
SyncAnimations
));
.add_system
(
sync_parent_animations
.in_
base_
set
(
AnimationSystems
::
SyncAnimations
));
// #[cfg(feature = "ecs_tilemap")]
// #[cfg(feature = "ecs_tilemap")]
// {
// {
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment