![]() ![]() The library itself is written in C, and we have to install the native development files to compile any program that uses it. Keep in mind that the rust-sdl2 crate just provides the Rust bindings for the new SDL2.0 libraries. Note that this tutorial assumes Rust is already set up with Rustup. Reading user input to control the snake game.Using sdl_context, video_subsystem, and window.In this blog post, we are going to create a simple Rust game that uses the rust-sdl2 crate. These features make SDL a reasonable and popular choice for writing games from scratch, as you can see from this extensive list of games made with SDL. It also supports the most popular desktop and mobile operating systems - and even web browsers with WebAssembly - making it easier to write cross-platform code. SDL stands for Simple DirectMedia Layer, which is an open source library that provides APIs for user input, audio, and graphics. Using SDL2 bindings in Rust for game development ![]() Paulo Henrique Cuchi Follow I'm a software engineer who likes to delete code more than I like to write it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |