Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Engel Simulator 2020
Engel Simulator 2020
Commits
12b78a6a
Commit
12b78a6a
authored
Dec 20, 2020
by
Rahix
🦀
Browse files
systems: moving: Rename to move_camera_to_player
parent
5fdc9eb1
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/states/ingame.rs
View file @
12b78a6a
...
...
@@ -36,9 +36,10 @@ impl InGameState {
let
schedule
=
legion
::
Schedule
::
builder
()
.add_system
(
colliders
::
synchronize_collisision_world_system
())
.flush
()
.add_thread_local
(
systems
::
moving_system
())
.add_system
(
colliders
::
update_collision_world_system
())
.flush
()
.add_thread_local
(
systems
::
move_camera_to_player_system
())
.flush
()
.add_thread_local
(
systems
::
camera_system
())
.flush
()
.add_thread_local
(
systems
::
draw_level_layer_system
(
background
))
...
...
src/systems/mod.rs
View file @
12b78a6a
...
...
@@ -5,5 +5,5 @@ mod tmp_player;
pub
use
camera
::
camera_system
;
pub
use
level
::
draw_level_layer_system
;
pub
use
moving
::
mov
ing
_system
;
pub
use
moving
::
mov
e_camera_to_player
_system
;
pub
use
tmp_player
::
draw_tmp_player_system
;
src/systems/moving.rs
View file @
12b78a6a
...
...
@@ -4,7 +4,7 @@ use legion::IntoQuery;
#[legion::system]
#[read_component(components::Position)]
pub
fn
mov
ing
(
pub
fn
mov
e_camera_to_player
(
world
:
&
legion
::
world
::
SubWorld
,
#[resource]
camera
:
&
mut
resources
::
Camera
,
#[resource]
player
:
&
resources
::
Player
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment