boot_config.rst 988 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. boot.config reference
  2. =====================
  3. Generic configurations
  4. ----------------------
  5. ``boot_script = "lua/game"``
  6. Lua script to launch on boot.
  7. ``boot_package = "boot"``
  8. Package to load on boot.
  9. ``window_title = "My window"``
  10. Title of the main window on platforms that support it.
  11. Platform-specific configurations
  12. --------------------------------
  13. All configurations for a given *platform* are placed under a key named *platform*. E.g.:
  14. .. code::
  15. // Linux-only configs
  16. linux = {
  17. renderer = {
  18. resolution = [ 1280 720 ]
  19. aspect_ratio = -1
  20. vsync = true
  21. }
  22. }
  23. Renderer configurations
  24. ~~~~~~~~~~~~~~~~~~~~~~~
  25. ``resolution = [ 1280 720 ]``
  26. Sets the width and height of the main window.
  27. ``aspect_ratio = -1``
  28. Sets the aspect ratio.
  29. If the value is set to ``-1``, the aspect ratio is computed as ``width/height`` of the main window.
  30. ``vsync = true``
  31. Sets whether to enable the vsync.
  32. ``fullscreen = false``
  33. Sets whether to enable fullscreen.