Browse Source

Add wasm links to each chapter.

Herbert Wolverson 4 years ago
parent
commit
dfcc9c1b29

+ 2 - 0
book/src/chapter_1.md

@@ -215,6 +215,8 @@ There's a number of ways to get help:
 * The fine people on [/r/rust](https://www.reddit.com/r/rust/) are VERY helpful with Rust language issues.
 * The awesome people of [/r/roguelikedev](https://www.reddit.com/r/roguelikedev/) are VERY helpful when it comes to Roguelike issues. Their Discord is pretty active, too.
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-01-hellorust/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_10.md

@@ -533,6 +533,8 @@ If this sees a `Confused` component, it decrements the timer. If the timer hits
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-10-ranged)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-10-ranged/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_11.md

@@ -692,6 +692,8 @@ This has been a long chapter, with quite heavy content. The great news is that w
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-11-loadsave)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-11-loadsave/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_12.md

@@ -338,6 +338,8 @@ This chapter was a bit easier than the last couple! You can now descend through
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-12-delvingdeeper)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-12-delvingdeeper/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_13.md

@@ -261,6 +261,8 @@ You now have a dungeon that increases in difficulty as you descend! In the next
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-13-difficulty)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-13-difficulty/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_14.md

@@ -818,6 +818,8 @@ That's it for the first section of the tutorial. It sticks relatively closely to
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-14-gear)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-14-gear/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_16.md

@@ -78,6 +78,8 @@ If you `cargo run` the project now, you get a nicer looking set of walls:
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-16-nicewalls)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-16-nicewalls/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_17.md

@@ -125,6 +125,8 @@ If you `cargo run` your project, the map starts to show signs of battle!
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-17-blood)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-17-blood/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_18.md

@@ -326,6 +326,8 @@ That's it for visual effects for now. We've given the game a much more visceral
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-18-particles)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-18-particles/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_19.md

@@ -334,6 +334,8 @@ We now have a working hunger clock system. You may want to tweak the durations t
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-19-food)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-19-food/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_2.md

@@ -738,6 +738,8 @@ This chapter was a lot to digest, but provides a really solid base on which to b
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-02-helloecs)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-02-helloecs/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_20.md

@@ -207,6 +207,8 @@ This was a relatively quick chapter, but we now have another staple of the rogue
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-20-magicmapping)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-20-magicmapping/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_21.md

@@ -123,6 +123,8 @@ If you `cargo run` now, it looks better:
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-21-rexmenu)**
 
+
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-21-rexmenu/)
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_3.md

@@ -356,6 +356,8 @@ fn main() {
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-03-walkmap)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-03-walkmap/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_4.md

@@ -294,6 +294,8 @@ You should now get something like this when you `cargo run` your project:
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-04-newmap)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-04-newmap/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_5.md

@@ -548,6 +548,8 @@ If you `cargo run` your project, you will now have visible tiles as slightly cya
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-05-fov)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-05-fov/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_6.md

@@ -340,6 +340,8 @@ And that's a wrap for chapter 6; we've added a variety of foul-mouthed monsters
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-06-monsters)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-06-monsters/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_7.md

@@ -757,6 +757,8 @@ That was quite the chapter! We added in location indexing, damage, and killing t
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-07-damage)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-07-damage/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_8.md

@@ -280,6 +280,8 @@ Now that we have a GUI, it's starting to look pretty good!
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-08-ui)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-08-ui/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.

+ 2 - 0
book/src/chapter_9.md

@@ -754,6 +754,8 @@ This chapter has shown a fair amount of the power of using an ECS: picking up, u
 
 **The source code for this chapter may be found [here](https://github.com/thebracket/rustrogueliketutorial/tree/master/chapter-09-items)**
 
+[Run this chapter's example with web assembly, in your browser (WebGL2 required)](http://bfnightly.bracketproductions.com/rustbook/wasm/chapter-09-items/)
+
 ---
 
 Copyright (C) 2019, Herbert Wolverson.