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

Method new

src/level.rs:10–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9impl Level {
10 pub fn new() -> Self {
11 Self { level: 1 }
12 }
13
14 pub fn increment_level(&mut self) -> bool {
15 if self.level <= MAX_LEVEL {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected