Chapter 1: Hello WebAssembly
Let's cut to the chase – if you're holding this book, you probably already know you love Rust, and you think WebAssembly is a great way to deploy your Rust programs to the web. Good news – you're right! Rust and WebAssembly are a match made in programmer heaven, and while WebAssembly is still in its early days, game development is an ideal candidate for WebAssembly. I am excited to be guiding you through building a game for the web in Stack Overflow's "most-loved" language, Rust.
This chapter is all about equipping yourself with the tools for the game development journey. In this chapter, we'll cover the following topics:
- What is WebAssembly?
- Creating a Rust and WebAssembly project skeleton
- Translating JavaScript code into Rust code
- Drawing to the screen with HTML5 Canvas