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 username = argv[0];
|
||||||
let password = argv[1];
|
let password = argv[1];
|
||||||
|
|
||||||
let me = Player(
|
let me = Player(username, (0.0, 1.0, 2.0), PURPLE);
|
||||||
username,
|
|
||||||
(0.0, 1.0, 2.0),
|
|
||||||
PURPLE
|
|
||||||
);
|
|
||||||
|
|
||||||
let running = true;
|
let running = true;
|
||||||
while (running) {
|
while (running) {
|
||||||
|
|
|
@ -20,12 +20,8 @@ type Player {
|
||||||
this.username = username;
|
this.username = username;
|
||||||
this.pos = pos;
|
this.pos = pos;
|
||||||
this.color = color;
|
this.color = color;
|
||||||
this.camera = Camera(
|
this.camera =
|
||||||
(this.pos.x + 10.0,
|
Camera((this.pos.x + 10.0, this.pos.y + 10.0, this.pos.z), this.pos);
|
||||||
this.pos.y + 10.0,
|
|
||||||
this.pos.z),
|
|
||||||
this.pos
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
login(password str) Player[] {
|
login(password str) Player[] {
|
||||||
|
|
Loading…
Reference in New Issue