codecraft 0.1.1

A minimalist 3D game engine built on parts of Bevy (ECS, color) with wgpu and winit: OpenPBR materials, clustered lighting, an immediate-mode UI, audio and gamepad haptics
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use bevy_ecs::prelude::*;

/// Pointer state for an interactive UI entity, refreshed every frame by
/// [`super::systems::update_interaction_system`].
#[derive(Component, Clone, Copy, Debug, Default)]
pub struct Interaction {
    pub hovered: bool,
    /// True while the left mouse button is held down over this entity.
    pub pressed: bool,
    /// True for exactly the frame the left mouse button went down over this entity.
    pub clicked: bool,
}