From 826da4711950c5021aee1399312ad375708e4182 Mon Sep 17 00:00:00 2001 From: richelbilderbeek Date: Fri, 5 Jul 2024 14:04:31 +0200 Subject: [PATCH] Add 'move_camera' chapter --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 86d5e2c..e809d34 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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] @@ -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