Browse Source

Screenshots for chapters 1-3

Herbert Wolverson 4 years ago
parent
commit
83418a1048
6 changed files with 9 additions and 1 deletions
  1. BIN
      book/src/c2-s1.png
  2. BIN
      book/src/c2-s2.gif
  3. BIN
      book/src/c2-s3.gif
  4. BIN
      book/src/c3-s1.gif
  5. 7 1
      book/src/chapter_2.md
  6. 2 0
      book/src/chapter_3.md

BIN
book/src/c2-s1.png


BIN
book/src/c2-s2.gif


BIN
book/src/c2-s3.gif


BIN
book/src/c3-s1.gif


+ 7 - 1
book/src/chapter_2.md

@@ -291,7 +291,8 @@ fn main() {
 ```
 
 Running it (with `cargo run`) will give you the following:
-TODO: Insert screenshot
+
+![Screenshot](./c2-s1.png)
 
 ## An example system - random movement
 
@@ -484,6 +485,8 @@ fn main() {
 
 If you run it (with `cargo run`), the red smiley faces zoom to the left, while the `@` watches.
 
+![Screenshot](./c2-s2.gif)
+
 ## Moving the player
 
 Finally, lets make the `@` move with keyboard controls. So we know which entity is the player, we'll make a new tag component:
@@ -561,6 +564,8 @@ player_input(self, ctx);
 
 If you run your progam (with `cargo run`), you now have a keyboard controlled `@` symbol, while the smiley faces zoom to the left!
 
+![Screenshot](./c2-s3.gif)
+
 ## The final code for chapter 2
 
 The source code for this completed example may be found ready-to-run in `chapter-02-helloecs`. It looks like this:
@@ -696,6 +701,7 @@ fn main() {
     rltk::main_loop(context, gs);
 }
 ```
+
 This chapter was a lot to digest, but provides a really solid base on which to build. The great part is: you've now got further than many aspiring developers! You have entities on the screen, and can move around with the keyboard.
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-02-helloecs)**

+ 2 - 0
book/src/chapter_3.md

@@ -152,6 +152,8 @@ The new parts are the `let map = ...` part, which uses `fetch` just the same way
 
 Run the program (`cargo run`) now, and you have a player in a map - and can move around, properly obstructed by walls.
 
+![Screenshot](./c3-s1.gif)
+
 The full program now looks like this:
 
 ```rust