use "common.ztl"; fn main (argc int, argv str[]) int { let screen_width = 800; let screen_height = 450; let username = argv[0]; let password = argv[1]; let me = Player( username, Vec3(0.0, 1.0, 2.0), purple ); let players = me.login(password); let window = Window("zwl client", screen_width, screen_height); while ( not window.should_close() ) { me.update(); window.begin_drawing(); window.clear_background(WHITE); window.begin_mode_3d(camera); window.draw_grid(30, 1.0); window.draw_cube(me.pos, 0.5, 0.5, 0.5, me.apperance); for (player in players) { window.draw_cube(player.pos, 0.5, 0.5, 0.5, player.apperance); } window.end_mode_3d(); window.end_drawing(); } me.logout(); window.close(); return 0; }