function init_level()
  cam_x = 0
  cam_y = -3000

  rel_lat = -math.pi/2
  sm_v_x = 0
  sm_v_y = 0
  sm_acc_x = 0
  sm_acc_y = 0
  sm_ang = 0
  sm_angv = 0
  sm_orient = 1

  numplanets = 60
  thisplanet = numplanets
  p_pos_x[numplanets] = 512
  p_pos_y[numplanets] = 384
  p_rad[numplanets] = 3000
  p_density[numplanets] = 0.2
  p_ang[numplanets] = 0
  p_angv[numplanets] = 0
  p_style[numplanets] = 4

  p_pos_x[1] = p_pos_x[numplanets] + (p_rad[numplanets] + 180) * math.cos(-1.8 * math.pi / 5)
  p_pos_y[1] = p_pos_y[numplanets] + (p_rad[numplanets] + 180) * math.sin(-1.8 * math.pi / 5)
  p_rad[1] = 100
  p_density[1] = 0.4
  p_ang[1] = 0
  p_angv[1] = 0
  p_style[1] = 13
  p_pos_x[2] = p_pos_x[numplanets] + (p_rad[numplanets] + 240) * math.cos(-1.5 * math.pi / 5)
  p_pos_y[2] = p_pos_y[numplanets] + (p_rad[numplanets] + 240) * math.sin(-1.5 * math.pi / 5)
  p_rad[2] = 80
  p_density[2] = 0.4
  p_ang[2] = 0
  p_angv[2] = 0
  p_style[2] = 13
  p_pos_x[3] = p_pos_x[numplanets] + (p_rad[numplanets] + 350) * math.cos(-1.3 * math.pi / 5)
  p_pos_y[3] = p_pos_y[numplanets] + (p_rad[numplanets] + 350) * math.sin(-1.3 * math.pi / 5)
  p_rad[3] = 100
  p_density[3] = 0.4
  p_ang[3] = 0
  p_angv[3] = 0
  p_style[3] = 13
  p_pos_x[4] = p_pos_x[numplanets] + (p_rad[numplanets] + 600) * math.cos(-1.0 * math.pi / 5)
  p_pos_y[4] = p_pos_y[numplanets] + (p_rad[numplanets] + 600) * math.sin(-1.0 * math.pi / 5)
  p_rad[4] = 70
  p_density[4] = 1.2
  p_ang[4] = 0
  p_angv[4] = 0
  p_style[4] = 13
  p_pos_x[5] = p_pos_x[numplanets] + (p_rad[numplanets] + 1000) * math.cos(-1.17 * math.pi / 5)
  p_pos_y[5] = p_pos_y[numplanets] + (p_rad[numplanets] + 1000) * math.sin(-1.17 * math.pi / 5)
  p_rad[5] = 90
  p_density[5] = 0.7
  p_ang[5] = 0
  p_angv[5] = 0
  p_style[5] = 14
  p_pos_x[6] = p_pos_x[numplanets] + (p_rad[numplanets] + 200) * math.cos(-0.8 * math.pi / 5)
  p_pos_y[6] = p_pos_y[numplanets] + (p_rad[numplanets] + 200) * math.sin(-0.8 * math.pi / 5)
  p_rad[6] = 100
  p_density[6] = 0.6
  p_ang[6] = 0
  p_angv[6] = 0
  p_style[6] = 13
  p_pos_x[7] = p_pos_x[numplanets] + (p_rad[numplanets] + 450) * math.cos(-0.6 * math.pi / 5)
  p_pos_y[7] = p_pos_y[numplanets] + (p_rad[numplanets] + 450) * math.sin(-0.6 * math.pi / 5)
  p_rad[7] = 100
  p_density[7] = 0.6
  p_ang[7] = 0
  p_angv[7] = 0
  p_style[7] = 13
  p_pos_x[8] = p_pos_x[numplanets] + (p_rad[numplanets] + 550) * math.cos(-0.2 * math.pi / 5)
  p_pos_y[8] = p_pos_y[numplanets] + (p_rad[numplanets] + 550) * math.sin(-0.2 * math.pi / 5)
  p_rad[8] = 100
  p_density[8] = 0.6
  p_ang[8] = 0
  p_angv[8] = 0
  p_style[8] = 13
  p_pos_x[9] = p_pos_x[numplanets] + (p_rad[numplanets] + 450) * math.cos(0.2 * math.pi / 5)
  p_pos_y[9] = p_pos_y[numplanets] + (p_rad[numplanets] + 450) * math.sin(0.2 * math.pi / 5)
  p_rad[9] = 100
  p_density[9] = 0.6
  p_ang[9] = 0
  p_angv[9] = 0
  p_style[9] = 13
  p_pos_x[10] = p_pos_x[numplanets] + (p_rad[numplanets] + 200) * math.cos(0.4 * math.pi / 5)
  p_pos_y[10] = p_pos_y[numplanets] + (p_rad[numplanets] + 200) * math.sin(0.4 * math.pi / 5)
  p_rad[10] = 100
  p_density[10] = 0.4
  p_ang[10] = 0
  p_angv[10] = 0
  p_style[10] = 13
  for i = 1, 11, 1 do
    p_pos_x[10 + i] = p_pos_x[numplanets] + (p_rad[numplanets] + 0) * math.cos((-0.8 + 0.1 * i) * math.pi / 5)
    p_pos_y[10 + i] = p_pos_y[numplanets] + (p_rad[numplanets] + 0) * math.sin((-0.8 + 0.1 * i) * math.pi / 5)
    p_rad[10 + i] = 100
    p_density[10 + i] = 0
    p_ang[10 + i] = 2 * math.pi * math.random()
    p_angv[10 + i] = 12
    p_style[10 + i] = 17
  end
  for i = 0, 2, 1 do
    for j = 0, 2, 1 do
      p_pos_x[22 + i * 3 + j] = p_pos_x[numplanets] + (p_rad[numplanets] + 200 + i * 600) * math.cos((4.0 + j * 0.3) * math.pi / 5)
      p_pos_y[22 + i * 3 + j] = p_pos_y[numplanets] + (p_rad[numplanets] + 200 + i * 600) * math.sin((4.0 + j * 0.3) * math.pi / 5)
      p_rad[22 + i * 3 + j] = 100
      p_density[22 + i * 3 + j] = 0.6
      p_ang[22 + i * 3 + j] = 0
      p_angv[22 + i * 3 + j] = 0
      p_style[22 + i * 3 + j] = 13
    end
  end
  for i = 0, 2, 1 do
    for j = 0, 1, 1 do
      p_pos_x[31 + j * 3 + i] = p_pos_x[numplanets] + (p_rad[numplanets] + 500 + i * 600) * math.cos((4.15 + j * 0.3) * math.pi / 5)
      p_pos_y[31 + j * 3 + i] = p_pos_y[numplanets] + (p_rad[numplanets] + 500 + i * 600) * math.sin((4.15 + j * 0.3) * math.pi / 5)
      p_rad[31 + j * 3 + i] = 50
      p_density[31 + j * 3 + i] = 0.3
      p_ang[31 + j * 3 + i] = 2 * math.pi * math.random()
      p_angv[31 + j * 3 + i] = 12
      p_style[31 + j * 3 + i] = 17
    end
  end
  p_pos_x[37] = p_pos_x[numplanets] + (p_rad[numplanets] + 200) * math.cos(2.4 * math.pi / 5)
  p_pos_y[37] = p_pos_y[numplanets] + (p_rad[numplanets] + 200) * math.sin(2.4 * math.pi / 5)
  p_rad[37] = 100
  p_density[37] = 0.5
  p_ang[37] = 0
  p_angv[37] = 0
  p_style[37] = 15
  p_pos_x[38] = p_pos_x[numplanets] + (p_rad[numplanets] + 600) * math.cos(2.6 * math.pi / 5)
  p_pos_y[38] = p_pos_y[numplanets] + (p_rad[numplanets] + 600) * math.sin(2.6 * math.pi / 5)
  p_rad[38] = 100
  p_density[38] = 0.5
  p_ang[38] = 0
  p_angv[38] = 0
  p_style[38] = 15
  p_pos_x[39] = p_pos_x[numplanets] + (p_rad[numplanets] + 1000) * math.cos(2.41 * math.pi / 5)
  p_pos_y[39] = p_pos_y[numplanets] + (p_rad[numplanets] + 1000) * math.sin(2.41 * math.pi / 5)
  p_rad[39] = 100
  p_density[39] = 0.5
  p_ang[39] = 0
  p_angv[39] = 0
  p_style[39] = 15
  p_pos_x[40] = p_pos_x[numplanets] + (p_rad[numplanets] + 1400) * math.cos(2.59 * math.pi / 5)
  p_pos_y[40] = p_pos_y[numplanets] + (p_rad[numplanets] + 1400) * math.sin(2.59 * math.pi / 5)
  p_rad[40] = 100
  p_density[40] = 0.5
  p_ang[40] = 0
  p_angv[40] = 0
  p_style[40] = 15
  p_pos_x[41] = p_pos_x[numplanets] + (p_rad[numplanets] + 1800) * math.cos(2.5 * math.pi / 5)
  p_pos_y[41] = p_pos_y[numplanets] + (p_rad[numplanets] + 1800) * math.sin(2.5 * math.pi / 5)
  p_rad[41] = 100
  p_density[41] = 0.5
  p_ang[41] = 0
  p_angv[41] = 0
  p_style[41] = 15
  for i = -7, 7, 1 do
    p_pos_x[49 + i] = p_pos_x[41] + 250 * i
    p_pos_y[49 + i] = p_pos_y[41] + 300 + 20 * i^2
    p_rad[49 + i] = 70
    p_density[49 + i] = 0.5
    p_ang[49 + i] = 0
    p_angv[49 + i] = 0
    p_style[49 + i] = 13
  end
  p_pos_x[57] = p_pos_x[numplanets] + (p_rad[numplanets] + 0) * math.cos(1 * math.pi / 5)
  p_pos_y[57] = p_pos_y[numplanets] + (p_rad[numplanets] + 0) * math.sin(1 * math.pi / 5)
  p_rad[57] = 120
  p_density[57] = 0
  p_ang[57] = 2 * math.pi * math.random()
  p_angv[57] = 12
  p_style[57] = 17
  p_pos_x[58] = p_pos_x[numplanets] + (p_rad[numplanets] + 0) * math.cos(-3.2 * math.pi / 5)
  p_pos_y[58] = p_pos_y[numplanets] + (p_rad[numplanets] + 0) * math.sin(-3.2 * math.pi / 5)
  p_rad[58] = 130
  p_density[58] = 0
  p_ang[58] = 2 * math.pi * math.random()
  p_angv[58] = 12
  p_style[58] = 17
  p_pos_x[59] = p_pos_x[numplanets] + (p_rad[numplanets] + 400) * math.cos(-3.2 * math.pi / 5)
  p_pos_y[59] = p_pos_y[numplanets] + (p_rad[numplanets] + 400) * math.sin(-3.2 * math.pi / 5)
  p_rad[59] = 130
  p_density[59] = 0
  p_ang[59] = 2 * math.pi * math.random()
  p_angv[59] = 12
  p_style[59] = 17

  numparts = 16
  part_planet[1] = 1
  part_rel_lat[1] = 0
  part_planet[2] = 2
  part_rel_lat[2] = 0
  part_planet[3] = 4
  part_rel_lat[3] = 0
  part_planet[4] = 5
  part_rel_lat[4] = 0
  part_planet[5] = 7
  part_rel_lat[5] = 0
  part_planet[6] = 8
  part_rel_lat[6] = 0
  part_planet[7] = 9
  part_rel_lat[7] = 0
  part_planet[8] = 49
  part_rel_lat[8] = math.pi/2
  part_planet[9] = 0
  part_pos_x[9] = p_pos_x[47]
  part_pos_y[9] = p_pos_y[47] + 200
  part_planet[10] = 0
  part_pos_x[10] = p_pos_x[53]
  part_pos_y[10] = p_pos_y[53] + 400
  part_planet[11] = 22
  part_rel_lat[11] = 0
  part_planet[12] = 25
  part_rel_lat[12] = 0
  part_planet[13] = 29
  part_rel_lat[13] = 0
  part_planet[14] = 27
  part_rel_lat[14] = 0
  part_planet[15] = 24
  part_rel_lat[15] = 0
  part_planet[16] = 28
  part_rel_lat[16] = 0
  part_planet[16] = 0
  part_pos_x[16] = p_pos_x[numplanets] + (p_rad[numplanets] + 200) * math.cos(-3.2 * math.pi / 5)
  part_pos_y[16] = p_pos_y[numplanets] + (p_rad[numplanets] + 200) * math.sin(-3.2 * math.pi / 5)

  fuel = 100
  fuel_bottles = 1
  fuel_planet[1] = numplanets
  fuel_rel_lat[1] = -4 * math.pi / 5
end

function update_level(dt)
end
