Skip to content

Commit

Permalink
Add 'move_camera' chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Jul 5, 2024
1 parent b0ec2f9 commit 826da47
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ Code
[code](https://github.com/richelbilderbeek/bevy_tdd_book_hello_world) |[![codecov](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_hello_world/graph/badge.svg?token=XAVFZYDQKZ)](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_hello_world) |[hello_world.md](hello_world.md) |Hello world |A minimal `App`
[code](https://github.com/richelbilderbeek/bevy_tdd_book_add_player) |[![codecov](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_add_player/graph/badge.svg?token=XAVFZYDQKZ)](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_add_player) |[add_player.md](add_player.md) |Adding a player |Using `Components`
[code](https://github.com/richelbilderbeek/bevy_tdd_book_add_player_sprite) |[![codecov](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_add_player_sprite/graph/badge.svg?token=XAVFZYDQKZ)](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_add_player_sprite) |[add_player_sprite.md](add_player_sprite.md) |Adding a player sprite |Using closures and `SpriteBundles`
[code](https://github.com/richelbilderbeek/bevy_tdd_book_add_camera) |[![codecov](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_add_camera/graph/badge.svg?token=XAVFZYDQKZ)](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_add_camera) |[add_camera.md](add_camera.md) |Adding a camera |Minimal example, using the `Camera` `Component`
[code](https://github.com/richelbilderbeek/bevy_tdd_book_move_player) |[![codecov](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_move_player/graph/badge.svg?token=XAVFZYDQKZ)](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_move_player) |[move_player.md](move_player.md) |Move a player |Extending a structure, using a `Query`
[code](https://github.com/richelbilderbeek/bevy_tdd_book_add_camera) |[![codecov](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_add_camera/graph/badge.svg?token=XAVFZYDQKZ)](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_add_camera) |[add_camera.md](add_camera.md) |Adding a camera |Using closures and `Camera2dBundle`
[code](https://github.com/richelbilderbeek/bevy_tdd_book_move_player) |[![codecov](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_move_player/graph/badge.svg?token=XAVFZYDQKZ)](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_move_player) |[move_player.md](move_player.md) |Move the player |Extending a structure, using a `Query`
[code](https://github.com/richelbilderbeek/bevy_tdd_book_move_camera) |[![codecov](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_move_camera/graph/badge.svg?token=XAVFZYDQKZ)](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_move_camera) |[add_camera.md](add_camera.md) |Move the camera |.
[code](https://github.com/richelbilderbeek/bevy_tdd_book_move_player_with_keyboard) |[![codecov](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_move_player_with_keyboard/graph/badge.svg?token=XAVFZYDQKZ)](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_move_player_with_keyboard) |[move_player_with_keyboard.md](move_player_with_keyboard.md) |Respond to keyboard |.
[code](https://github.com/richelbilderbeek/bevy_tdd_book_respond_to_keypress) |[![codecov](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_respond_to_keypress/graph/badge.svg?token=XAVFZYDQKZ)](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_respond_to_keypress) |[respond_to_keypress.md](respond_to_keypress.md) |Respond to keyboard, minimal example |Minimal example, key press
[code](https://github.com/richelbilderbeek/bevy_tdd_book_respond_to_just_keypressed)|[![codecov](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_respond_to_just_keypressed/graph/badge.svg?token=XAVFZYDQKZ)](https://codecov.io/gh/richelbilderbeek/bevy_tdd_book_respond_to_just_keypressed)|[respond_to_just_keypressed.md](respond_to_just_keypressed.md)|Respond to keyboard, minimal example |Minimal example, key just being pressed
Expand All @@ -26,9 +27,10 @@ flowchart TD
add_player[add_player\nAdd a player]
add_player_sprite[add_player_sprite\nAdd a player sprite]
add_camera[add_camera\nAdd a camara]
move_player[move_player\nMove a player]
move_player_keyboard[move_player_keyboard\nMove a player\nusing keyboard]
move_player_mouse[move_player_mouse\nMove a player\nusing mouse]
move_camera[move_camera\nMove the camera]
move_player[move_player\nMove the player]
move_player_keyboard[move_player_keyboard\nMove the player\nusing keyboard]
move_player_mouse[move_player_mouse\nMove the player\nusing mouse]
respond_to_keypress[respond_to_keypress\nRespond to a\nkey press]
respond_to_just_keypressed[respond_to_just_keypressed\nRespond to a key\nthat has just been pressed]
Expand All @@ -43,6 +45,9 @@ flowchart TD
add_player --> add_player_sprite
add_player_sprite --> move_player
add_player_sprite --> add_camera
add_camera --> move_camera
move_camera -.- |similar\nchapters| move_player
move_player --> move_player_keyboard
move_player --> move_player_mouse
Expand Down

0 comments on commit 826da47

Please sign in to comment.