MCPcopy Create free account
hub / github.com/CleanCut/invaders / dead

Method dead

src/shot.rs:34–36  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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 }
37}
38
39impl Drawable for Shot {

Callers 1

updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected