(menu
  ; **Required** to name each menu, the top level menu is always named "main"
  (name main)
  ; **Required** This is placement of the menu list x | y | width | height
  (position 100 200 450 250)
  ; **Optional** This is body color of above menu red | blue | green | alpha
  (position-body 0 0 0 128)
  ; **Optional** This is border color of above menu red | blue | green | alpha
  (position-border 200 200 200 255)
  ; **Optional** This is the fade speed of the appearing menus, default at 12
  (fade-speed 12)
  ; **Required** for the toplevel menu "main", submenu's are optional
  (background menu/paintown.png)
  ; **Required** The option info text placement
  ; location centered on the x and y coordinate
  (info-position 320 100)
  ; **Optional** to use music
  (music music/aqua.s3m)
  ; **Optional** to use a sound for menu item selection
  (select-sound menu/sounds/menu-select.wav)
  (back-sound menu/sounds/menu-back.wav)
  (ok-sound menu/sounds/menu-ok.wav)
  ; **Optional** Set default gamespeed
  (action (fixedspeed 1.0))
  ; **Optional** Font name and size (default /fonts/arial.ttf 24 24) 
  ;(font "fonts/arial.ttf" 24 24)
  (font "fonts/Neuropol.ttf" 24 24)
  ; Main options which are basically optional
  ; Each mode will have be similar to this
  (option
    (adventure
      ; ** Each option is required to have a name! >:E
      (name "Adventure Mode")
      ; ** Optional** This is a popup with information regarding the selected item
      ; Place text
      ; location is optional which is centered on the x and y coordinate and overwrites info-position in the main menu
      (info "Play through an adventure yourself")))
  (option
    (adventure-cpu
      (name "Adventure Mode with computer")
      (info "Play through and adventure with\nthe computers help")))
  ; Write more menus
  (option
    (menu
      (name "Versus Mode")
      (select-sound menu/sounds/menu-select.wav)
      (back-sound menu/sounds/menu-back.wav)
      (ok-sound menu/sounds/menu-ok.wav)
      (position 100 300 450 100)
      ; **Optional** This is body color of above menu red | blue | green | alpha
      (position-body 0 0 0 128)
      ; **Optional** This is border color of above menu red | blue | green | alpha
      (position-border 200 200 200 255)
      (option (versus (name "Player Vs. Player")
		      (human)))
      ; cpu is default so essentially it's not needed, but is shown here for clarity
      (option (versus (name "Player Vs. Computer")
		      (cpu)))
      (info "Play a 1 on 1 fight")))
  ; a submenu can be created inline
  (option
    (network-host
      (name "Network - Host")
      (info "Host a game that can be\nplayed over the internet")))
  (option
    (network-join
      (name "Network - Join")
      (info "Join a game over the internet")))
  (option
    (menu
      (name Options)
      (select-sound menu/sounds/menu-select.wav)
      (back-sound menu/sounds/menu-back.wav)
      (ok-sound menu/sounds/menu-ok.wav)
      (info "Change various game options")
      (position 100 200 450 250)
      ; **Optional** This is body color of above menu red | blue | green | alpha
      (position-body 0 0 0 128)
      ; **Optional** This is border color of above menu red | blue | green | alpha
      (position-border 200 200 200 255)
      ; User settable invincibility
      (option
	(invincible
	  (name "Invincibility")
	  (info "Players will be invincible for the entire game")))
      ; User settable speed
      (option
	(speed
	  (name "Default speed")
	  (info "Set the relative speed of the game")))
      (option
	(play-mode
	  (name "Play mode")
	  (info "Free for all mode lets you attack other players.\nIn cooperative you cannot")))

      (option
	(screen-size
	  (name "Screen size")
	  (info "Set the size of the screen")))
      ; User settable fullscreen
      (option
	(fullscreen
	  (name "Fullscreen")
	  (info "Make the game windowed or fullscreen")))
      ; User settable lives
      (option
	(lives
	  (name "Lives")
	  (info "Set the starting number of\nlives in adventure mode")))
      (option
	(npc
	  (name "NPC Buddies")
	  (info "Set the number of computer\nplayers in adventure mode")))
      (option
	(menu
	  (name "Player1 Keys")
	  (select-sound menu/sounds/menu-select.wav)
	  (back-sound menu/sounds/menu-back.wav)
	  (ok-sound menu/sounds/menu-ok.wav)
	  (info "Change the keys for player 1")
	  (position 120 200 400 250)
	  (position-body 0 0 0 192)
	  (position-border 200 200 200 255)
	  ; Keys are for reconfiguring, not for setting menu keys :P
	  ; params: 1st = key, 2nd = Menu text
	  (option (key (name "UP Button") (player 0) (type up)))
	  (option (key (name "Down Button") (player 0) (type down)))
	  (option (key (name "Left Button") (player 0) (type left)))
	  (option (key (name "Right Button") (player 0) (type right)))
	  (option (key (name "Jump Button") (player 0) (type jump)))
	  (option (key (name "Attack1 Button") (player 0) (type attack1)))	
	  (option (key (name "Attack2 Button") (player 0) (type attack2)))
	  (option (key (name "Attack3 Button") (player 0) (type attack3)))))
      (option
	(menu
	  (name "Player2 Keys")
	  (select-sound menu/sounds/menu-select.wav)
	  (back-sound menu/sounds/menu-back.wav)
	  (ok-sound menu/sounds/menu-ok.wav)
	  (info "Change the keys for player 2")
	  (position 120 200 400 250)
	  (position-body 0 0 0 192)
	  (position-border 200 200 200 255)
	  ; Keys are for reconfiguring, not for setting menu keys :P
	  ; params: 1st = key, 2nd = Menu text
	  (option (key (name "UP Button") (player 1) (type up)))
	  (option (key (name "Down Button") (player 1) (type down)))
	  (option (key (name "Left Button") (player 1) (type left)))
	  (option (key (name "Right Button") (player 1) (type right)))
	  (option (key (name "Jump Button") (player 1) (type jump)))
	  (option (key (name "Attack1 Button") (player 1) (type attack1)))	
	  (option (key (name "Attack2 Button") (player 1) (type attack2)))
	  (option (key (name "Attack3 Button") (player 1) (type attack3)))))
      (option 
      (menu 
	  (name "Adjust Font") 
	  (select-sound menu/sounds/menu-select.wav)
	  (back-sound menu/sounds/menu-back.wav)
	  (ok-sound menu/sounds/menu-ok.wav)
	  (info "Change the menu fonts")
	  (position 120 200 400 130)
	  (position-body 0 0 0 192) 
	  (position-border 200 200 200 255)
	  ; To adjust the font options
	  (option (font-select (adjust "name")))
	  (option (font-select (adjust "width")))
	  (option (font-select (adjust "height")))))))
  ; And submenu can also be created via another file
  ; (option (menu menu/options.txt))
  (option
    (credits
      (name Credits)
      (info "See who did what on Paintown")
      ; set music
      (music music/kilimanz.mod)
      ; Optional else you'll have a black background
      (background menu/paintown.png)
      ; Optional to set colors of fonts
      ; This is the first word
      (titlecolor 0 255 255)
      ; This is the rest of the text
      (color 255 255 255)
      ; This adds additional credits to the static ones included with the game
      (additional "Additional thanks")
      (additional "Paintown logo by Mark Oates")))
  ; Added a test menu, that gets ommited
  ; (option (menu (name Test)(info Test)(position 120 200 400 130)(position-body 0 0 0 192)(position-border 200 200 200 255)))
  (option
    (quit
      (info "Exit the game")
      (name Quit)
      ; These add to a vector in the option so it can be used for animations or whatever
      ; (option-image "menu/bgs/seizure-bg/00200000.png")
      ; (option-image "menu/bgs/seizure-bg/00200001.png")
      ; (option-image "menu/bgs/seizure-bg/00200002.png")
      ; (option-image "menu/bgs/seizure-bg/00200003.png")
      ; (option-image "menu/bgs/seizure-bg/00200004.png")
      ; (option-image "menu/bgs/seizure-bg/00200005.png")
      ; (option-image "menu/bgs/seizure-bg/00200006.png")
      ; (option-image "menu/bgs/seizure-bg/00200007.png")
      ; (option-image "menu/bgs/seizure-bg/00200008.png")
      ; (option-image "menu/bgs/seizure-bg/00200009.png")
      ; (option-image "menu/bgs/seizure-bg/00200010.png")
      ; (option-image "menu/bgs/seizure-bg/00200011.png")
      ; (option-image "menu/bgs/seizure-bg/00200012.png")
      ; (option-image "menu/bgs/seizure-bg/00200013.png")
      ))
  )
