Solution: Hello Game Loop
Let's have a look at the solution of the hello game loop exercise.
We'll cover the following...
Solution
The complete implementation of the problem is provided below. Let’s look at it.
[package] name = "hello_game_loop" version = "0.1.0" edition = "2018" [dependencies] bracket-lib = "0.8"
Solution: Hello game loop
Explanation
- First, we’ll add the
bracket-lib
dependency in the[dependencies]
present in theCargo.toml
file.
In main.rs
:
-
...