Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CleanCut/invaders
/ Player
Class
Player
src/player.rs:9–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
7
use std::time::Duration;
8
9
pub struct Player {
10
x: usize,
11
y: usize,
12
shots: Vec<Shot>,
13
}
14
15
impl Player {
16
pub fn new() -> Self {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected