rendered paste bodyplayer::player(){ timec = clock(); jstate = 0; vely = 0.0f; velx = 0.0f; angle = 0.0f; x = 50.0f; y = 50.0f; ttorso.type = Line; ttorso.x[0] = 419.0f; ttorso.y[0] = 260.0f; ttorso.x[1] = 419.0f; ttorso.y[1] = 520.0f; head.type = Triangle; head.x[0] = ttorso.x[0] - 358.0f; head.y[0] = ttorso.y[0] - 258.0f; head.x[1] = head.x[0] + 423.0f; head.y[1] = head.y[0] + 246.0f; head.x[2] = head.x[0] + 423.0f; head.y[2] = head.y[0] + 48.0f; btorso.type = Line; btorso.x[0] = ttorso.x[1]; btorso.y[0] = ttorso.y[1]; btorso.x[1] = btorso.x[0]; btorso.y[1] = btorso.y[0] + 254.0f; larm.type = Line; larm.x[0] = ttorso.x[0]; larm.y[0] = ttorso.y[0]; larm.x[1] = ttorso.x[0] - 238.0f; larm.y[1] = ttorso.y[0] + 386.0f; // Arm is only so long in size! rarm.type = Line; rarm.x[0] = ttorso.x[0]; rarm.y[0] = ttorso.y[0]; rarm.x[1] = ttorso.x[0] + 146.0f; rarm.y[1] = ttorso.y[0] + 410.0f; // Arm is only so long in size! lhand.type = Triangle; lhand.x[0] = larm.x[1]; lhand.y[0] = larm.y[1];// So it's at the end of the arm lhand.x[1] = larm.x[1] - 136.0f; lhand.y[1] = larm.y[1] + 268.0f; lhand.x[2] = larm.x[1] + 10.0f; lhand.y[2] = larm.y[1] + 294.0f; rhand.type = Triangle; rhand.x[0] = rarm.x[1]; rhand.y[0] = rarm.y[1];// So it's at the end of the arm rhand.x[1] = rarm.x[1] + 116.0f; rhand.y[1] = rarm.y[1] + 302.0f; rhand.x[2] = rarm.x[1] + 224.0f; rhand.y[2] = rarm.y[1] + 204.0f; lleg.type = Line; lleg.x[0] = btorso.x[1]; lleg.y[0] = btorso.y[1]; lleg.x[1] = btorso.x[1] - 114.0f; lleg.y[1] = btorso.y[1] + 314.0f; rleg.type = Line; rleg.x[0] = btorso.x[1]; rleg.y[0] = btorso.y[1]; rleg.x[1] = btorso.x[1] + 138.0f; rleg.y[1] = btorso.y[1] + 314.0f; lfoot.type = Triangle; lfoot.x[0] = lleg.x[1]; lfoot.y[0] = lleg.y[1]; lfoot.x[1] = lfoot.x[0] - 66.0f; lfoot.y[1] = lfoot.y[0] + 500.0f; lfoot.x[2] = lfoot.x[0] + 104.0f; lfoot.y[2] = lfoot.y[0] + 500.0f; rfoot.type = Triangle; rfoot.x[0] = rleg.x[1]; rfoot.y[0] = rleg.y[1]; rfoot.x[1] = rfoot.x[0] - 66.0f; rfoot.y[1] = rfoot.y[0] + 500.0f; rfoot.x[2] = rfoot.x[0] + 104.0f; rfoot.y[2] = rfoot.y[0] + 500.0f;}