attempt noise gen
This commit is contained in:
+3
-5
@@ -1,11 +1,9 @@
|
||||
use crate::constants::*;
|
||||
use bevy::{prelude::*, winit::cursor};
|
||||
use bevy::prelude::*;
|
||||
|
||||
#[derive(Component)]
|
||||
#[require(Transform)]
|
||||
pub struct Cursor {
|
||||
id: f32,
|
||||
}
|
||||
pub struct Cursor {}
|
||||
|
||||
pub fn setup_curor(mut commands: Commands, asset_server: Res<AssetServer>) {
|
||||
commands.spawn((
|
||||
@@ -14,7 +12,7 @@ pub fn setup_curor(mut commands: Commands, asset_server: Res<AssetServer>) {
|
||||
image: asset_server.load("cursor.png"),
|
||||
..Default::default()
|
||||
},
|
||||
Cursor { id: 1. },
|
||||
Cursor {},
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user