In this tutorial we’ll use the Rust programming language to code a tiny game engine. Our game engine will respond to key presses, draw rectangles, and define a structure that could accomodate a larger engine.
Our engine will use no code other than Rust’s standard library and the APIs the browser provides us. It will compile near-instantly (less than a second on my computer) and be about 130 lines of code total.
If you aren’t familiar with Rust it’s a relatively new programming language that runs fast and helps you write better code.
This tutorial includes some Javascript and web code, but the general ideas apply to non-web as well.
To follow along you should already know the basics of programming. This tutorial is written to be legible for a Rust beginner and skimmable for a Rust expert.
Let’s begin!
Read in full here:
https://ianjk.com/game-engine-in-rust/
This thread was posted by one of our members via one of our news source trackers.