From cb2b57449ab9411287508c14d769d0e568be9884 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Mon, 11 Aug 2025 23:37:49 -0500 Subject: [PATCH] Create a "widgets" module (by moving title scene) The non-gameplay scenes are really just a bunch of widgets. I'm going to put them all together and then bundle the functionality with some exported plugin builders. --- src/lib.rs | 4 ++-- src/{preparation_widget.rs => widgets.rs} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename src/{preparation_widget.rs => widgets.rs} (100%) diff --git a/src/lib.rs b/src/lib.rs index 9135198..66ee1a1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,9 +3,9 @@ mod events; mod machinery; mod objects; mod physics; -mod preparation_widget; mod resources; mod title_screen; +mod widgets; use crate::config::{ ASTEROID_SMALL_COLOR, BACKGROUND_COLOR, BULLET_COLOR, BULLET_LIFETIME, BULLET_SPEED, @@ -31,7 +31,7 @@ impl Plugin for AsteroidPlugin { fn build(&self, app: &mut App) { app.add_plugins(( title_screen::GameMenuPlugin, - preparation_widget::preparation_widget_plugin, + widgets::preparation_widget_plugin, RapierPhysicsPlugin::::pixels_per_meter(10.0), RapierDebugRenderPlugin::default(), )) diff --git a/src/preparation_widget.rs b/src/widgets.rs similarity index 100% rename from src/preparation_widget.rs rename to src/widgets.rs