formatting
This commit is contained in:
parent
a6e254a100
commit
f1f84e0fe5
|
@ -7,11 +7,7 @@ fn main (argc real, argv str[]) {
|
|||
let username = argv[0];
|
||||
let password = argv[1];
|
||||
|
||||
let me = Player(
|
||||
username,
|
||||
(0.0, 1.0, 2.0),
|
||||
PURPLE
|
||||
);
|
||||
let me = Player(username, (0.0, 1.0, 2.0), PURPLE);
|
||||
|
||||
let running = true;
|
||||
while (running) {
|
||||
|
|
|
@ -20,12 +20,8 @@ type Player {
|
|||
this.username = username;
|
||||
this.pos = pos;
|
||||
this.color = color;
|
||||
this.camera = Camera(
|
||||
(this.pos.x + 10.0,
|
||||
this.pos.y + 10.0,
|
||||
this.pos.z),
|
||||
this.pos
|
||||
);
|
||||
this.camera =
|
||||
Camera((this.pos.x + 10.0, this.pos.y + 10.0, this.pos.z), this.pos);
|
||||
}
|
||||
|
||||
login(password str) Player[] {
|
||||
|
|
Loading…
Reference in New Issue