Add pulsing effect when invulnerable/intangible, make airdodge make the player intangible. #75

Merged
EIREXE merged 3 commits from invuln_effect into master 2026-09-28 15:44:50 +00:00
3 changed files with 2 additions and 21 deletions
Showing only changes of commit c0c88d5dbd - Show all commits
+1 -1
View File
@@ -16,7 +16,7 @@ use crate::{
manifest::{FighterManifest, FighterManifestRegistry}, manifest::{FighterManifest, FighterManifestRegistry},
spawn_fighter, spawn_fighter,
visual::FighterAnimations, visual::FighterAnimations,
}, input::{LocalInputAssignments, LocalInputSource, MatchInputAssignments}, match_runtime::MatchState, materials::fighter_material::FighterMaterial, netcode::{ }, input::{LocalInputAssignments, LocalInputSource, MatchInputAssignments}, match_runtime::MatchState, netcode::{
GGRSCfg, GGRSCfg,
session::{ConnectionStatus, SessionConfig, create_session}, session::{ConnectionStatus, SessionConfig, create_session},
}, scripting::FighterAttackScript, stage::{ }, scripting::FighterAttackScript, stage::{
-11
View File
@@ -13,17 +13,6 @@ pub struct FighterMaterialExtension {
status_color: LinearRgba, status_color: LinearRgba,
#[uniform(100)] #[uniform(100)]
status_color_intensity: f32, status_color_intensity: f32,
// Web examples WebGL2 support: structs must be 16 byte aligned.
#[cfg(feature = "webgl2")]
#[uniform(100)]
_webgl2_padding_8b: u32,
#[cfg(feature = "webgl2")]
#[uniform(100)]
_webgl2_padding_12b: u32,
#[cfg(feature = "webgl2")]
#[uniform(100)]
_webgl2_padding_16b: u32,
} }
const SHADER_ASSET_PATH: &str = "embedded://shinespark/shaders/fighter.wgsl"; const SHADER_ASSET_PATH: &str = "embedded://shinespark/shaders/fighter.wgsl";
+1 -9
View File
@@ -1,16 +1,8 @@
use bevy::{ use bevy::{
asset::embedded_asset, gltf::GltfMaterialName, material::OpaqueRendererMethod, pbr::ExtendedMaterial, prelude::*, world_serialization::WorldInstanceReady, asset::embedded_asset, prelude::*,
}; };
use bevy::{
color::palettes::basic::RED,
pbr::{MaterialExtension},
prelude::*,
render::render_resource::*,
shader::ShaderRef,
};
use crate::materials::fighter_material::{FighterMaterial, FighterMaterialExtension};
pub mod fighter_material; pub mod fighter_material;