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

Method draw

src/player.rs:69–74  ·  view source on GitHub ↗
(&self, frame: &mut Frame)

Source from the content-addressed store, hash-verified

67
68impl Drawable for Player {
69 fn draw(&self, frame: &mut Frame) {
70 frame[self.x][self.y] = 'A';
71 for shot in self.shots.iter() {
72 shot.draw(frame);
73 }
74 }
75}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected