Game Development with Rust and WebAssembly

Game Development with Rust and WebAssembly
Author :
Publisher : Packt Publishing Ltd
Total Pages : 476
Release :
ISBN-10 : 9781801074995
ISBN-13 : 1801074992
Rating : 4/5 (992 Downloads)

Book Synopsis Game Development with Rust and WebAssembly by : Eric Smith

Download or read book Game Development with Rust and WebAssembly written by Eric Smith and published by Packt Publishing Ltd. This book was released on 2022-04-29 with total page 476 pages. Available in PDF, EPUB and Kindle. Book excerpt: Write an endless runner game for the web in Rust and test, deploy, and debug your 2D game using the WebAssembly toolchain Key FeaturesBuild and deploy an endless runner game for the web from scratch through this helpful guide with key images printed in colorLearn how to use Rust for web development with WebAssemblyExplore modern game development and programming techniques to build 2D games using RustBook Description The Rust programming language has held the most-loved technology ranking on Stack Overflow for 6 years running, while JavaScript has been the most-used programming language for 9 years straight as it runs on every web browser. Now, thanks to WebAssembly (or Wasm), you can use the language you love on the platform that's everywhere. This book is an easy-to-follow reference to help you develop your own games, teaching you all about game development and how to create an endless runner from scratch. You'll begin by drawing simple graphics in the browser window, and then learn how to move the main character across the screen. You'll also create a game loop, a renderer, and more, all written entirely in Rust. After getting simple shapes onto the screen, you'll scale the challenge by adding sprites, sounds, and user input. As you advance, you'll discover how to implement a procedurally generated world. Finally, you'll learn how to keep your Rust code clean and organized so you can continue to implement new features and deploy your app on the web. By the end of this Rust programming book, you'll build a 2D game in Rust, deploy it to the web, and be confident enough to start building your own games. What you will learnBuild and deploy a Rust application to the web using WebAssemblyUse wasm-bindgen and the Canvas API to draw real-time graphicsWrite a game loop and take keyboard input for dynamic actionExplore collision detection and create a dynamic character that can jump on and off platforms and fall down holesManage animations using state machinesGenerate levels procedurally for an endless runnerLoad and display sprites and sprite sheets for animationsTest, refactor, and keep your code clean and maintainableWho this book is for This game development book is for developers interested in Rust who want to create and deploy 2D games to the web. Game developers looking to build a game on the web platform using WebAssembly without C++ programming or web developers who want to explore WebAssembly along with JavaScript web will also find this book useful. The book will also help Rust developers who want to move from the server side to the client side by familiarizing them with the WebAssembly toolchain. Basic knowledge of Rust programming is assumed.


Game Development with Rust and WebAssembly Related Books

Game Development with Rust and WebAssembly
Language: en
Pages: 476
Authors: Eric Smith
Categories: Computers
Type: BOOK - Published: 2022-04-29 - Publisher: Packt Publishing Ltd

GET EBOOK

Write an endless runner game for the web in Rust and test, deploy, and debug your 2D game using the WebAssembly toolchain Key FeaturesBuild and deploy an endles
Hands-on Rust
Language: en
Pages: 446
Authors: Herbert Wolverson
Categories: Computers
Type: BOOK - Published: 2021-06-30 - Publisher: Pragmatic Bookshelf

GET EBOOK

Rust is an exciting new programming language combining the power of C with memory safety, fearless concurrency, and productivity boosters - and what better way
Programming WebAssembly with Rust
Language: en
Pages: 220
Authors: Kevin Hoffman
Categories: Computers
Type: BOOK - Published: 2019-05-31 - Publisher: Pragmatic Bookshelf

GET EBOOK

WebAssembly fulfills the long-awaited promise of web technologies: fast code, type-safe at compile time, execution in the browser, on embedded devices, or anywh
Hands-On Game Development with WebAssembly
Language: en
Pages: 588
Authors: Rick Battagline
Categories: Computers
Type: BOOK - Published: 2019-05-31 - Publisher: Packt Publishing Ltd

GET EBOOK

Make your WebAssembly journey fun while making a game with it Key FeaturesCreate a WebAssembly game that implements sprites, animations, physics, particle syste
Rust Web Development
Language: en
Pages: 398
Authors: Bastian Gruber
Categories: Computers
Type: BOOK - Published: 2023-03-07 - Publisher: Simon and Schuster

GET EBOOK

Create bulletproof, high-performance web apps and servers with Rust. In Rust Web Development you will learn: Handling the borrow checker in an asynchronous envi