Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CleanCut/invaders
/ explode
Method
explode
src/shot.rs:30–33 ·
view source on GitHub ↗
(&mut self)
Source
from the content-addressed store, hash-verified
28
}
29
}
30
pub fn explode(&mut self) {
31
self.exploding = true;
32
self.timer = Timer::new(Duration::from_millis(250));
33
}
34
pub fn dead(&self) -> bool {
35
(self.exploding && self.timer.finished()) || (self.y == 0)
36
}
Callers
1
detect_hits
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected