From 543e4765e95f5789586e0ef8408941f59b9f70b9 Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Sun, 24 Sep 2023 17:18:46 -0500 Subject: [PATCH] get rid of old learning code --- src/game.rs | 37 ------------------------------------- src/start_menu.rs | 1 - 2 files changed, 38 deletions(-) diff --git a/src/game.rs b/src/game.rs index d3ed80f..87fbfa8 100644 --- a/src/game.rs +++ b/src/game.rs @@ -6,47 +6,10 @@ use crate::start_menu::StartMenu; /// The top-level structure of our game, which is a bevy plugin pub struct Game {} -#[derive(Component)] -struct Person; - -#[derive(Component)] -struct Name(String); - -#[derive(Resource)] -struct Greeter { - timer: Timer, -} - -fn register_people(mut commands: Commands) { - commands.spawn((Person, Name(String::from("Alice")))); - commands.spawn((Person, Name(String::from("Bob")))); - commands.spawn((Person, Name(String::from("Carol")))); -} - -fn greet(time: Res