Snake Game With Rust, JavaScript, and WebAssembly

Rodion Chachura
Dec 31, 2019 · 1 min read
GitHub Repository and Deployed Game

In this course, we will build a Snake Game with Rust, JavaScript, and WebAssembly. We will learn how to export API implemented with Rust to JavaScript app. We will get to know canvas rendering, applications of vectors, and basics of game development. You can find the source code in this GitHub repository, and check out the game here.

  1. Game Architecture.
  2. Creating Game Instance.
  3. Rendering the Game.
  4. Placing the Food.
  5. Game Loop.
  6. Moving the Snake.
  7. Eating Food.
  8. Game Over.

Check out my app at increaser.org to get more done by working smarter.

Increaser

More From Medium

More from Rodion Chachura

Related reads

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade