(menu
  ; **Required** to name each menu
  (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, submenu's are optional
  (background
  	; **Optional** Animation delay defalt 5 for now, will be changed later
  	(delay 10)
  	; **Optional** however you should at least have one image...
  	; You can have as many img tags as you want, they will load in order and be used in an animated sequence
        ;(image paintown-title.png))
        (image menu/paintown.png))
  ; **Optional** to use music
  (music music/aqua.s3m)
  ; **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)
  ; 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")))
  (option
    (adventure-cpu
      (name "Adventure Mode with the computer")))
  ; Write more menus
  (option
    (menu
      (name "Versus Mode")
      (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)))))
  ; a submenu can be created inline
  (option
    (network-host
      (name "Network - Host")))
  (option
    (network-join
      (name "Network - Join")))
  (option
    (menu
      (name Options)
      (position 100 230 450 220)
      ; **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")))
      ; User settable speed
      (option
	(speed (name "Default speed")))
      ; User settable fullscreen
      (option
	(fullscreen (name "Fullscreen")))
      ; User settable lives
      (option
	(lives (name "Lives")))
      (option
	(npc (name "NPC Buddies")))
      (option
	(menu
	  (name "Player1 Keys")
	  (position 120 100 400 300)
	  (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")
	  (position 120 100 400 300)
	  (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)))))))
  ; And submenu can also be created via another file
  ; (option (menu menu/options.txt))
  (option
    (credits
      (name Credits)
      ; 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")))
  (option
    (quit
      (name Quit)))
  )
