-
macroquad-egui
Macroquad egui DevTools: adding a visual 🐞 debugging user interface for developers to Rust Macroquad game using ⚡️ egui.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
// Source: https://github.com/optozorax/egui-macroquad#usage use macroquad::prelude::*; #[macroquad::main("egui with macroquad")] async fn main() { loop { clear_background(WHITE); // Process keys, mouse etc. egui_macroquad::ui(|egui_ctx| { egui::Window::new("egui ❤ macroquad") .show(egui_ctx, |ui| { ui.label("Test"); }); }); // Draw things before egui egui_macroquad::draw(); // Draw things after egui next_frame().await; } }
I hope you found this useful. As promised, you can get the full project code on the Rodney Lab GitHub repo. I would love to hear from you, if you are also new to Rust game development. Do you have alternative resources you found useful? How will you use this code in your own projects?
Probably the hardest part, if you are new to egui, is to work out how to display the widgets you want. The egui demo site is quite handy in this regard. It features the egui widgets, and has GitHub links to the Rust code used to make each widget. This will help you replicate them in your own project.