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.
This commit is contained in:
2025-08-11 23:37:49 -05:00
parent 9a262fcffc
commit cb2b57449a
2 changed files with 2 additions and 2 deletions

View File

@@ -3,9 +3,9 @@ mod events;
mod machinery; mod machinery;
mod objects; mod objects;
mod physics; mod physics;
mod preparation_widget;
mod resources; mod resources;
mod title_screen; mod title_screen;
mod widgets;
use crate::config::{ use crate::config::{
ASTEROID_SMALL_COLOR, BACKGROUND_COLOR, BULLET_COLOR, BULLET_LIFETIME, BULLET_SPEED, 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) { fn build(&self, app: &mut App) {
app.add_plugins(( app.add_plugins((
title_screen::GameMenuPlugin, title_screen::GameMenuPlugin,
preparation_widget::preparation_widget_plugin, widgets::preparation_widget_plugin,
RapierPhysicsPlugin::<NoUserData>::pixels_per_meter(10.0), RapierPhysicsPlugin::<NoUserData>::pixels_per_meter(10.0),
RapierDebugRenderPlugin::default(), RapierDebugRenderPlugin::default(),
)) ))