Config Files (日本語)

はじめに

conf.lua ファイルがゲームのフォルダ(または .love ファイル)にある場合、そのファイルは LÖVE のモジュールが読み込まれる前に実行されます。このファイルは love.conf 関数を上書きするために使用でき、後で LÖVE の 'boot' スクリプトにより呼ばれます。 love.conf 関数により、一部の構成オプション、およびウィンドウのデフォルトの大きさ、読み込まれるモジュール、およびその他の要素などを変更できます。

love.conf

love.conf 関数は引数を一つ使用します: テーブルの中にある全てのデフォルト値を望むものへ上書きできます。ウィンドウのデフォルトの大きさを変更したい場合は、例えばこう記述します:

function love.conf(t)
    t.window.width = 1024
    t.window.height = 768
end

physics モジュールまたは joystick モジュールが不要であれば、下記を記述します。

function love.conf(t)
    t.modules.joystick = false
    t.modules.physics = false
end

ゲームの発表時は未使用のモジュールへ false を設定することは推奨されます。これにより起動開始時間を多少短縮して(特に joystick モジュールを無効にした場合)、メモリの使用量を(多少)減らせます。

love.filesystemlove モジュールは選択不能であり、無効化できないことに注意してください。また、 love.graphics を有効にするには love.window が必要です。

In LÖVE version 0.9.2 and earlier, errors in the config file will cause the game to not launch and no error message to appear. If the game doesn't load, check the config file for errors first. In version 0.10.2 and later, errors in the config will now show the blue error screen showing the error in the config file.

最新版の構成ファイル

下記は LÖVE 11.3 のオプションとデフォルト値のリストです:

function love.conf(t)
    t.identity = nil                    -- セーブ・ディレクトリの名称 (string)
    t.appendidentity = false            -- Search files in source directory before save directory (boolean)
    t.version = "11.3"                  -- このゲームの作成に使用した LÖVE のバージョン (string)
    t.console = false                   -- コンソールの表示 (boolean, Windows 専用)
    t.accelerometerjoystick = true      -- iOS と Andorid で加速度センサーをジョイスティックと見せかけることを有効にするか (boolean)
    t.externalstorage = false           -- true にすると Android で外部ストレージにファイルの保存 (およびセーブ・ディレクトリからの読み込み) を行います (boolean)
    t.gammacorrect = false              -- 対応システムでの動作時、ガンマ補正レンダリングを有効にするか (boolean)

    t.audio.mic = false                 -- Request and use microphone capabilities in Android (boolean)
    t.audio.mixwithsystem = true        -- Keep background music playing when opening LOVE (boolean, iOS and Android only)

    t.window.title = "Untitled"         -- ウィンドウのタイトル (string)
    t.window.icon = nil                 -- ウィンドウのアイコンとして使用する画像のファイルパス (string)
    t.window.width = 800                -- ウィンドウの幅 (number)
    t.window.height = 600               -- ウィンドウの高さ (number)
    t.window.borderless = false         -- ウィンドウの境界線を非表示 (boolean)
    t.window.resizable = false          -- 利用者がウィンドウの大きさを変更できるかどうか (boolean)
    t.window.minwidth = 1               -- ウィンドウの大きさが変更可能な場合におけるウィンドウの最小の幅 (number)
    t.window.minheight = 1              -- ウィンドウの大きさが変更可能な場合におけるウィンドウの最小の高さ (number)
    t.window.fullscreen = false         -- 全画面表示の有効化 (boolean)
    t.window.fullscreentype = "desktop" -- 排他的な全画面表示 ("exclusive") またはデスクトップ ("desktop") による全画面表示方式の中から選択 (string)
    t.window.usedpiscale = true         -- Enable automatic DPI scaling (boolean)
    t.window.vsync = 1                  -- 垂直同期の有効化 (boolean)
    t.window.msaa = 0                   -- 多重サンプリングされたアンチエイリアシングにて使用するサンプル数 (number)
    t.window.depth = nil                -- The number of bits per sample in the depth buffer
    t.window.stencil = nil              -- The number of bits per sample in the stencil buffer
    t.window.display = 1                -- ウィンドウの表示先となるモニタの番号 (number)
    t.window.highdpi = false            -- Retina ディスプレイ上のウィンドウで high-dpi モードを有効にするか (boolean)
    t.window.x = nil                    -- 指定先のディスプレイにあるウィンドウ位置の x 座標 (number)
    t.window.y = nil                    -- 指定先のディスプレイにあるウィンドウ位置の y 座標 (number)

    t.modules.audio = true              -- audio モジュールの有効化 (boolean)
    t.modules.data = true               -- data モジュールの有効化 (boolean)
    t.modules.event = true              -- event モジュールの有効化 (boolean)
    t.modules.font = true               -- font モジュールの有効化 (boolean)
    t.modules.graphics = true           -- graphics モジュールの有効化 (boolean)
    t.modules.image = true              -- image モジュールの有効化 (boolean)
    t.modules.joystick = true           -- joystick モジュールの有効化 (boolean)
    t.modules.keyboard = true           -- keyboard モジュールの有効化 (boolean)
    t.modules.math = true               -- math モジュールの有効化 (boolean)
    t.modules.mouse = true              -- mouse モジュールの有効化 (boolean)
    t.modules.physics = true            -- physics モジュールの有効化 (boolean)
    t.modules.sound = true              -- sound モジュールの有効化 (boolean)
    t.modules.system = true             -- system モジュールの有効化 (boolean)
    t.modules.thread = true             -- thread モジュールの有効化 (boolean)
    t.modules.timer = true              -- timer モジュールの有効化 (boolean)、無効にすると love.update のデルタ時間は 0 になります。
    t.modules.touch = true              -- touch モジュールの有効化 (boolean)
    t.modules.video = true              -- video モジュールの有効化 (boolean)
    t.modules.window = true             -- window モジュールの有効化 (boolean)
end

フラグ

identity

このフラグはゲーム用のセーブ・ディレクトリの名前を決定します。作成場所ではなく、名前のみ指定することに注意してください。

t.identity = "gabe_HL3" -- 正しい
t.identity = "c:/Users/gabe/HL3" -- 誤り

代わりに love.filesystem.setIdentity を構成ファイルの外部にてセーブ・ディレクトリを設定するために使用することができます。

appendidentity

LÖVE 11.0 から使用可能
このフラグは以前のバージョンでは非対応です。

This flag determines if game directory should be searched first then save directory (true) or otherwise (false)

version

LÖVE 0.8.0 から使用可能
このフラグは以前のバージョンでは非対応です。

t.version は文字列であり、ゲームの制作に使用された LÖVE のバージョン表記です。

11.0 以前では、 "X.Y.Z" 形式であり、 X は上位リリース番号、 Y は下位リリース番号、および Z は修正レベルです。 11.0 以降では、 "X.Y.Z" 形式であり、 X および Y は上位と下位のリリース番号です。

このフラグを構成ファイルに設定した場合はゲーム実行開始時に、現在のバージョンの LÖVE とゲームとの互換性がないならば LÖVE で警告は表示します。デフォルトでは実行中の LÖVE のバージョンです。

console

ゲームのウィンドウの横にコンソールを開くかどうかを決定します (Windows 専用)。注意: OSX では、ターミナルから LÖVE を実行することによりコンソール出力を取得することができます。

Determines whether a console should be opened alongside the game window (Windows only) or not. Note: On OSX you can get console output by running LÖVE through the terminal, or on Windows with LÖVE 0.10.2, by running lovec.exe instead of love.exe.

accelerometerjoystick

LÖVE 0.10.0 から使用可能
このフラグは以前のバージョンでは非対応です。

iOS と Andorid で加速度センサーデバイスを三軸のジョイスティックとして割り当てるかどうかを設定します。この機能を使用しない場合は加速度センサーを停止することにより CPU の使用量を減らせるかもしれません。

externalstorage

LÖVE 0.10.1 から使用可能
このフラグは以前のバージョンでは非対応です。

Android でファイルを外部ストレージ (true) または内部ストレージ (false) に保存するかどうかを設定します。

gammacorrect

LÖVE 0.10.0 から使用可能
このフラグは以前のバージョンでは非対応です。

システムで対応している場合に、ガンマ補正レンダリングを有効にするかどうかを決定します。

audio.mic

LÖVE 11.3 から使用可能
このフラグは以前のバージョンでは非対応です。

Request microphone permission from the user. When user allows it, love.audio.getRecordingDevices will lists recording devices available. Otherwise, love.audio.getRecordingDevices returns empty table and a message is shown to inform user when called.

audio.mixwithsystem

LÖVE 11.0 から使用可能
このフラグは以前のバージョンでは非対応です。

Sets whether background audio / music from other apps should play while LÖVE is open. See love.system.hasBackgroundMusic for more details.

window

LÖVE 0.9.0 から使用可能
これらのフラグsは以前のバージョンでは非対応です。

love.window.setMode をコードから最初に呼ぶまでウィンドウの作成を延期することが可能になります。こうするには、 t.window = nil (または旧版では t.screen = nil) にて設定してください。これが処理された場合は、最初の love.window.setMode の前に love.graphics にあるいずれかの関数をコードから呼び出すと LÖVE はクラッシュします。

t.window テーブルは LÖVE 0.9.0 以前のバージョンでは t.screen の名称でした。 t.screen テーブルは LÖVE 0.9.0 の love.conf では存在せず、 t.window テーブルは LÖVE 0.8.0 の love.conf では存在しません。 この意味は使用されている LÖVE のバージョンに関する正確なテーブルを使用することに注意しない場合には、 love.conf の実行は失敗します (従って保護機能によりデフォルト値に復帰されます)。

window.title

LÖVE 0.9.0 から使用可能
このフラグは以前のバージョンでは非対応です。

ゲームのウィンドウのタイトルを設定します。構成ファイル以外でウィンドウのタイトルを変更するには love.window.setTitle を使用します。

window.icon

LÖVE 0.9.0 から使用可能
このフラグは以前のバージョンでは非対応です。

ウィンドウのアイコンとして使用する画像のファイルパスです。全てのオペレーティングシステムが非常に大きいアイコンの画像に対応しているわけではありません。 アイコンは love.window.setIcon により変更することができます。

window.width & window.height

LÖVE 0.9.0 から使用可能
これらのフラグは以前のバージョンでは非対応です。

ウィンドウの寸法を設定します。これらのフラグへ 0 を設定する場合、LÖVE は自動的に利用者のデスクトップの寸法を使用します。

window.borderless

LÖVE 0.9.0 から使用可能
このフラグは以前のバージョンでは非対応です。

ウィンドウからボーダー・ビジュアルを除去します。オペレーティング・システム間での効果に警戒することに注意してください。

window.resizable

LÖVE 0.9.0 から使用可能
このフラグは以前のバージョンでは非対応です。

true に設定された場合は利用者によりゲーム・ウィンドウの大きさを変更することを許可します。

window.minwidth と window.minheight

LÖVE 0.9.0 から使用可能
これらのフラグは以前のバージョンでは非対応です。

利用者がウィンドウの大きさを変更できる場合にゲームのウィンドウの最小幅および高さを設定します。 window.width および window.height へ低い値を設定する場合、 LÖVE は window.minwidth および window.minheight を用いて常に最小寸法を指定します。

window.fullscreen

LÖVE 0.9.0 から使用可能
このフラグは以前のバージョンでは非対応です。

ゲームを全画面表示 (true) またはウィンドウ (false) 表示方式で実行するかどうかを指定します。全画面表示に関しては love.window.setFullscreen または love.window.setMode を用いて全画面表示・ウィンドウ表示の相互間切り替えを行うことができます。

window.fullscreentype

LÖVE 0.9.0 から使用可能
このフラグは以前のバージョンでは非対応です。

全画面表示方式の種類として使用する方式を指定します (exclusive または desktop)。一部のオペレーティング・システムにおいて exclusive 方式ほど制限は少ないため一般的には desktop が推奨されます (注釈: 0.9.2 以前では exclusive の代わりに normal を使用します)。

window.usedpiscale

LÖVE 11.3 から使用可能
このフラグは以前のバージョンでは非対応です。

Sets whetever to enable or disable automatic DPI scaling.

window.vsync

LÖVE 0.9.0 から使用可能
このフラグは以前のバージョンでは非対応です。

垂直同期 (VSYNC) の有効または無効化をします。 VSYNC は安定したフレームレートでゲームを持続させることで画面のティアリング (ちらつき、歪み) に関する問題を防ぐことができます。これを無効にする意味に関してなるべく多くの知識がなければ VSYNC を有効にしたままにおくことが推奨されます。 Before LÖVE 11.0, this value was boolean (true or false). Since LÖVE 11.0, this value is number (1 to enable vsync, 0 to disable vsync, -1 to use adaptive vsync when supported).

Note that in iOS, vertical synchronization is always enabled and cannot be changed.

window.depth

LÖVE 11.0 から使用可能
このフラグは以前のバージョンでは非対応です。

The number of bits per sample in the depth buffer (16/24/32, default nil)

window.stencil

LÖVE 11.0 から使用可能
このフラグは以前のバージョンでは非対応です。

Then number of bits per sample in the depth buffer (generally 8, default nil)

window.msaa

LÖVE 0.9.2 から使用可能
このフラグは以前のバージョンでは非対応です。

多重サンプリングされたアンチエイアシングで使用するサンプル数。

window.display

LÖVE 0.9.0 から使用可能
このフラグは以前のバージョンでは非対応です。

マルチモニターを利用できるならば、ウィンドウを表示するディスプレイの番号を指定します。

window.highdpi

LÖVE 0.9.1 から使用可能
このフラグは以前のバージョンでは非対応です。

love.window.getPixelScale, love.window.toPixels, および love.window.fromPixels を参照してください。正確な表示を確実にするためにコードの微調整が必要であるため、Retina ディスプレイが搭載されている Mac または iOS システムでゲームの動作確認ができない場合は、このオプションは無効にしたままにしておくことを推奨します。

Please note that since 11.0, high DPI is always enabled in Android regardless of this flag!

window.x と window.y

LÖVE 0.9.2 から使用可能
これらのフラグは以前のバージョンでは非対応です。

利用者の画面上にあるウィンドウの位置を決定します。代わりに love.window.setPosition を位置の即時変更にて使用することができます。

window.fsaa

LÖVE 0.9.0 まで使用可能でしたが LÖVE 0.10.0 で廃止されました
このフラグは window.msaa フラグへ変更されました。

多重サンプリングされたアンチエイアシングで使用するサンプル数。

window.srgb

LÖVE 0.9.1 まで使用可能でしたが LÖVE 0.10.0 で廃止されました
このフラグは gammacorrect フラグへ変更されました。

このウィンドウのフラグを有効にすると、主画面へ描画された全ての物に対して線形 RGB 色空間から sRGB 色空間へ自動的に色を変換します - ウィンドウの表面はガンマ空間の sRGB として処理されます。これはガンマ補正表示の要素のみであり、混乱しやすい高度な話題であるため、意味が理解できない場合は、このオプションは無効化しておくことを推奨します。

リリース・モード

LÖVE 0.8.0 まで使用可能でしたが LÖVE 0.9.0 で廃止されました
このフラグは以降のバージョンでは非対応です。


t.release を有効にしたとき、 LÖVE はリリース・エラー・ハンドラを使用します。これにより、デフォルトの情報は少しだけ出力されるようになります。もちろん、オーバーライドできます。

デフォルトのリリース・エラー・ハンドラは開発者と連絡を取るための情報として conf.lua にて指定された title, author および url の値を使用して遊技者へ通知メッセージを出力します。

リリース・モードで結合型実行形式 (fused mode) を有効にしたゲームを実行する場合は LÖVE のセーブ・ディレクトリには保存されません。正確には Windows において、以前は %APPDATA%\\LOVE\\game でしたが、現在は %APPDATA%\\game となります。この概念は Windows 以外の動作環境でも適用されます。

旧バージョン

下記は LÖVE 11.011.2 までのオプションとデフォルト値のリストです:

function love.conf(t)
    t.identity = nil                    -- セーブ・ディレクトリの名称 (string)
    t.appendidentity = false            -- Search files in source directory before save directory (boolean)
    t.version = "11.0"                  -- このゲームの作成に使用した LÖVE のバージョン (string)
    t.console = false                   -- コンソールの表示 (boolean, Windows 専用)
    t.accelerometerjoystick = true      -- iOS と Andorid で加速度センサーをジョイスティックと見せかけることを有効にするか (boolean)
    t.externalstorage = false           -- true にすると Android で外部ストレージにファイルの保存 (およびセーブ・ディレクトリからの読み込み) を行います (boolean)
    t.gammacorrect = false              -- 対応システムでの動作時、ガンマ補正レンダリングを有効にするか (boolean)

    t.audio.mixwithsystem = true        -- Keep background music playing when opening LOVE (boolean, iOS and Android only)

    t.window.title = "Untitled"         -- ウィンドウのタイトル (string)
    t.window.icon = nil                 -- ウィンドウのアイコンとして使用する画像のファイルパス (string)
    t.window.width = 800                -- ウィンドウの幅 (number)
    t.window.height = 600               -- ウィンドウの高さ (number)
    t.window.borderless = false         -- ウィンドウの境界線を非表示 (boolean)
    t.window.resizable = false          -- 利用者がウィンドウの大きさを変更できるかどうか (boolean)
    t.window.minwidth = 1               -- ウィンドウの大きさが変更可能な場合におけるウィンドウの最小の幅 (number)
    t.window.minheight = 1              -- ウィンドウの大きさが変更可能な場合におけるウィンドウの最小の高さ (number)
    t.window.fullscreen = false         -- 全画面表示の有効化 (boolean)
    t.window.fullscreentype = "desktop" -- 排他的な全画面表示 ("exclusive") またはデスクトップ ("desktop") による全画面表示方式の中から選択 (string)
    t.window.vsync = 1                  -- 垂直同期の有効化 (boolean)
    t.window.msaa = 0                   -- 多重サンプリングされたアンチエイリアシングにて使用するサンプル数 (number)
    t.window.depth = nil                -- The number of bits per sample in the depth buffer
    t.window.stencil = nil              -- The number of bits per sample in the stencil buffer
    t.window.display = 1                -- ウィンドウの表示先となるモニタの番号 (number)
    t.window.highdpi = false            -- Retina ディスプレイ上のウィンドウで high-dpi モードを有効にするか (boolean)
    t.window.x = nil                    -- 指定先のディスプレイにあるウィンドウ位置の x 座標 (number)
    t.window.y = nil                    -- 指定先のディスプレイにあるウィンドウ位置の y 座標 (number)

    t.modules.audio = true              -- audio モジュールの有効化 (boolean)
    t.modules.data = true               -- data モジュールの有効化 (boolean)
    t.modules.event = true              -- event モジュールの有効化 (boolean)
    t.modules.font = true               -- font モジュールの有効化 (boolean)
    t.modules.graphics = true           -- graphics モジュールの有効化 (boolean)
    t.modules.image = true              -- image モジュールの有効化 (boolean)
    t.modules.joystick = true           -- joystick モジュールの有効化 (boolean)
    t.modules.keyboard = true           -- keyboard モジュールの有効化 (boolean)
    t.modules.math = true               -- math モジュールの有効化 (boolean)
    t.modules.mouse = true              -- mouse モジュールの有効化 (boolean)
    t.modules.physics = true            -- physics モジュールの有効化 (boolean)
    t.modules.sound = true              -- sound モジュールの有効化 (boolean)
    t.modules.system = true             -- system モジュールの有効化 (boolean)
    t.modules.thread = true             -- thread モジュールの有効化 (boolean)
    t.modules.timer = true              -- timer モジュールの有効化 (boolean)、無効にすると love.update のデルタ時間は 0 になります。
    t.modules.touch = true              -- touch モジュールの有効化 (boolean)
    t.modules.video = true              -- video モジュールの有効化 (boolean)
    t.modules.window = true             -- window モジュールの有効化 (boolean)
end

下記は LÖVE 0.10.1 および 0.10.2 のオプションとデフォルト値における全てのリストです:

function love.conf(t)
    t.identity = nil                    -- セーブ・ディレクトリの名称 (string)
    t.version = "0.10.2"                -- このゲームの作成に使用した LÖVE のバージョン (string)
    t.console = false                   -- コンソールの表示 (boolean, Windows 専用)
    t.accelerometerjoystick = true      -- iOS と Andorid で加速度センサーをジョイスティックと見せかけることを有効にするか (boolean)
    t.externalstorage = false           -- true にすると Android で外部ストレージにファイルの保存 (およびセーブ・ディレクトリからの読み込み) を行います (boolean)
    t.gammacorrect = false              -- 対応システムでの動作時、ガンマ補正レンダリングを有効にするか (boolean)

    t.window.title = "Untitled"         -- ウィンドウのタイトル (string)
    t.window.icon = nil                 -- ウィンドウのアイコンとして使用する画像のファイルパス (string)
    t.window.width = 800                -- ウィンドウの幅 (number)
    t.window.height = 600               -- ウィンドウの高さ (number)
    t.window.borderless = false         -- ウィンドウの境界線を非表示 (boolean)
    t.window.resizable = false          -- 利用者がウィンドウの大きさを変更できるかどうか (boolean)
    t.window.minwidth = 1               -- ウィンドウの大きさが変更可能な場合におけるウィンドウの最小の幅 (number)
    t.window.minheight = 1              -- ウィンドウの大きさが変更可能な場合におけるウィンドウの最小の高さ (number)
    t.window.fullscreen = false         -- 全画面表示の有効化 (boolean)
    t.window.fullscreentype = "desktop" -- 排他的な全画面表示 ("exclusive") またはデスクトップ ("desktop") による全画面表示方式の中から選択 (string)
    t.window.vsync = true               -- 垂直同期の有効化 (boolean)
    t.window.msaa = 0                   -- 多重サンプリングされたアンチエイリアシングにて使用するサンプル数 (number)
    t.window.display = 1                -- ウィンドウの表示先となるモニタの番号 (number)
    t.window.highdpi = false            -- Retina ディスプレイ上のウィンドウで high-dpi モードを有効にするか (boolean)
    t.window.x = nil                    -- 指定先のディスプレイにあるウィンドウ位置の x 座標 (number)
    t.window.y = nil                    -- 指定先のディスプレイにあるウィンドウ位置の y 座標 (number)

    t.modules.audio = true              -- audio モジュールの有効化 (boolean)
    t.modules.event = true              -- event モジュールの有効化 (boolean)
    t.modules.graphics = true           -- graphics モジュールの有効化 (boolean)
    t.modules.image = true              -- image モジュールの有効化 (boolean)
    t.modules.joystick = true           -- joystick モジュールの有効化 (boolean)
    t.modules.keyboard = true           -- keyboard モジュールの有効化 (boolean)
    t.modules.math = true               -- math モジュールの有効化 (boolean)
    t.modules.mouse = true              -- mouse モジュールの有効化 (boolean)
    t.modules.physics = true            -- physics モジュールの有効化 (boolean)
    t.modules.sound = true              -- sound モジュールの有効化 (boolean)
    t.modules.system = true             -- system モジュールの有効化 (boolean)
    t.modules.timer = true              -- timer モジュールの有効化 (boolean)、無効にすると love.update のデルタ時間は 0 になります。
    t.modules.touch = true              -- touch モジュールの有効化 (boolean)
    t.modules.video = true              -- video モジュールの有効化 (boolean)
    t.modules.window = true             -- window モジュールの有効化 (boolean)
    t.modules.thread = true             -- thread モジュールの有効化 (boolean)
end

下記は LÖVE 0.10.0 のオプションとデフォルト値のリストです:

function love.conf(t)
    t.identity = nil                    -- セーブ・ディレクトリの名称 (string)
    t.version = "0.10.0"                -- このゲームの作成に使用した LÖVE のバージョン (string)
    t.console = false                   -- コンソールの表示 (boolean, Windows 専用)
    t.accelerometerjoystick = true      -- iOS と Andorid で加速度センサーをジョイスティックと見せかけることを有効にするか (boolean)
    t.gammacorrect = false              -- 対応システムでの動作時、ガンマ補正レンダリングを有効にするか (boolean)

    t.window.title = "Untitled"         -- ウィンドウのタイトル (string)
    t.window.icon = nil                 -- ウィンドウのアイコンとして使用する画像のファイルパス (string)
    t.window.width = 800                -- ウィンドウの幅 (number)
    t.window.height = 600               -- ウィンドウの高さ (number)
    t.window.borderless = false         -- ウィンドウの境界線を非表示 (boolean)
    t.window.resizable = false          -- 利用者がウィンドウの大きさを変更できるかどうか (boolean)
    t.window.minwidth = 1               -- ウィンドウの大きさが変更可能な場合におけるウィンドウの最小の幅 (number)
    t.window.minheight = 1              -- ウィンドウの大きさが変更可能な場合におけるウィンドウの最小の高さ (number)
    t.window.fullscreen = false         -- 全画面表示の有効化 (boolean)
    t.window.fullscreentype = "desktop" -- 排他的な全画面表示 ("exclusive") またはデスクトップ ("desktop") による全画面表示方式の中から選択 (string)
    t.window.vsync = true               -- 垂直同期の有効化 (boolean)
    t.window.msaa = 0                   -- 多重サンプリングされたアンチエイリアシングにて使用するサンプル数 (number)
    t.window.display = 1                -- ウィンドウの表示先となるモニタの番号 (number)
    t.window.highdpi = false            -- Retina ディスプレイ上のウィンドウで high-dpi モードを有効にするか (boolean)
    t.window.x = nil                    -- 指定先のディスプレイにあるウィンドウ位置の x 座標 (number)
    t.window.y = nil                    -- 指定先のディスプレイにあるウィンドウ位置の y 座標 (number)

    t.modules.audio = true              -- audio モジュールの有効化 (boolean)
    t.modules.event = true              -- event モジュールの有効化 (boolean)
    t.modules.graphics = true           -- graphics モジュールの有効化 (boolean)
    t.modules.image = true              -- image モジュールの有効化 (boolean)
    t.modules.joystick = true           -- joystick モジュールの有効化 (boolean)
    t.modules.keyboard = true           -- keyboard モジュールの有効化 (boolean)
    t.modules.math = true               -- math モジュールの有効化 (boolean)
    t.modules.mouse = true              -- mouse モジュールの有効化 (boolean)
    t.modules.physics = true            -- physics モジュールの有効化 (boolean)
    t.modules.sound = true              -- sound モジュールの有効化 (boolean)
    t.modules.system = true             -- system モジュールの有効化 (boolean)
    t.modules.timer = true              -- timer モジュールの有効化 (boolean)、無効にすると love.update のデルタ時間は 0 になります。
    t.modules.touch = true              -- touch モジュールの有効化 (boolean)
    t.modules.video = true              -- video モジュールの有効化 (boolean)
    t.modules.window = true             -- window モジュールの有効化 (boolean)
    t.modules.thread = true             -- thread モジュールの有効化 (boolean)
end

下記は LÖVE 0.9.2 のオプションとデフォルト値のリストです:

function love.conf(t)
    t.identity = nil                   -- セーブ・ディレクトリの名称 (string)
    t.version = "0.9.2"                -- このゲームの作成に使用した LÖVE のバージョン (string)
    t.console = false                  -- コンソールの表示 (boolean, Windows 専用)

    t.window.title = "Untitled"        -- ウィンドウのタイトル (string)
    t.window.icon = nil                -- ウィンドウのアイコンとして使用する画像のファイルパス (string)
    t.window.width = 800               -- ウィンドウの幅 (number)
    t.window.height = 600              -- ウィンドウの高さ (number)
    t.window.borderless = false        -- ウィンドウの境界線を非表示 (boolean)
    t.window.resizable = false         -- 利用者がウィンドウの大きさを変更できるかどうか (boolean)
    t.window.minwidth = 1              -- ウィンドウの大きさが変更可能な場合におけるウィンドウの最小の幅 (number)
    t.window.minheight = 1             -- ウィンドウの大きさが変更可能な場合におけるウィンドウの最小の高さ (number)
    t.window.fullscreen = false        -- 全画面表示の有効化 (boolean)
    t.window.fullscreentype = "normal" -- デフォルト的な全画面表示 ("normal") またはデスクトップ ("desktop") による全画面表示方式の中から選択 (string)
    t.window.vsync = true              -- 垂直同期の有効化 (boolean)
    t.window.fsaa = 0                  -- 多重サンプリングされたアンチエイリアシングにて使用するサンプル数 (number)
    t.window.display = 1               -- ウィンドウの表示先となるモニタの番号 (number)
    t.window.highdpi = false           -- Retina ディスプレイ上のウィンドウで high-dpi モードを有効にするか (boolean)
    t.window.srgb = false              -- 画面描画時の sRGB ガンマ補正の有効化 (boolean)
    t.window.x = nil                   -- 指定先のディスプレイにあるウィンドウ位置の x 座標 (number)
    t.window.y = nil                   -- 指定先のディスプレイにあるウィンドウ位置の y 座標 (number)

    t.modules.audio = true             -- audio モジュールの有効化 (boolean)
    t.modules.event = true             -- event モジュールの有効化 (boolean)
    t.modules.graphics = true          -- graphics モジュールの有効化 (boolean)
    t.modules.image = true             -- image モジュールの有効化 (boolean)
    t.modules.joystick = true          -- joystick モジュールの有効化 (boolean)
    t.modules.keyboard = true          -- keyboard モジュールの有効化 (boolean)
    t.modules.math = true              -- math モジュールの有効化 (boolean)
    t.modules.mouse = true             -- mouse モジュールの有効化 (boolean)
    t.modules.physics = true           -- physics モジュールの有効化 (boolean)
    t.modules.sound = true             -- sound モジュールの有効化 (boolean)
    t.modules.system = true            -- system モジュールの有効化 (boolean)
    t.modules.timer = true             -- timer モジュールの有効化 (boolean)、無効にすると love.update のデルタ時間は 0 になります。
    t.modules.window = true            -- window モジュールの有効化 (boolean)
    t.modules.thread = true            -- thread モジュールの有効化 (boolean)
end

下記は LÖVE 0.9.1 のオプションとデフォルト値のリストです:

function love.conf(t)
    t.identity = nil                   -- セーブ・ディレクトリの名称 (string)
    t.version = "0.9.1"                -- このゲームの作成に使用した LÖVE のバージョン (string)
    t.console = false                  -- コンソールの表示 (boolean, Windows 専用)

    t.window.title = "Untitled"        -- ウィンドウのタイトル (string)
    t.window.icon = nil                -- ウィンドウのアイコンとして使用する画像のファイルパス (string)
    t.window.width = 800               -- ウィンドウの幅 (number)
    t.window.height = 600              -- ウィンドウの高さ (number)
    t.window.borderless = false        -- ウィンドウの境界線を非表示 (boolean)
    t.window.resizable = false         -- 利用者がウィンドウの大きさを変更できるかどうか (boolean)
    t.window.minwidth = 1              -- ウィンドウの大きさが変更可能な場合におけるウィンドウの最小の幅 (number)
    t.window.minheight = 1             -- ウィンドウの大きさが変更可能な場合におけるウィンドウの最小の高さ (number)
    t.window.fullscreen = false        -- 全画面表示の有効化 (boolean)
    t.window.fullscreentype = "normal" -- 準的な全画面表示またはデスクトップによる全画面表示方式 (string)
    t.window.vsync = true              -- 垂直同期の有効化 (boolean)
    t.window.fsaa = 0                  -- 多重サンプリングされたアンチエイリアシングにて使用するサンプル数 (number)
    t.window.display = 1               -- ウィンドウの表示先となるモニタの番号 (number)
    t.window.highdpi = false           -- Retina ディスプレイ上のウィンドウで high-dpi モードを有効にするか (boolean)
    t.window.srgb = false              -- 画面描画時の sRGB ガンマ補正の有効化 (boolean)

    t.modules.audio = true             -- audio モジュールの有効化 (boolean)
    t.modules.event = true             -- event モジュールの有効化 (boolean)
    t.modules.graphics = true          -- graphics モジュールの有効化 (boolean)
    t.modules.image = true             -- image モジュールの有効化 (boolean)
    t.modules.joystick = true          -- joystick モジュールの有効化 (boolean)
    t.modules.keyboard = true          -- keyboard モジュールの有効化 (boolean)
    t.modules.math = true              -- math モジュールの有効化 (boolean)
    t.modules.mouse = true             -- mouse モジュールの有効化 (boolean)
    t.modules.physics = true           -- physics モジュールの有効化 (boolean)
    t.modules.sound = true             -- sound モジュールの有効化 (boolean)
    t.modules.system = true            -- system モジュールの有効化 (boolean)
    t.modules.timer = true             -- timer モジュールの有効化 (boolean)
    t.modules.window = true            -- window モジュールの有効化 (boolean)
    t.modules.thread = true            -- thread モジュールの有効化 (boolean)
end

下記は LÖVE 0.9.0 のオプションとデフォルト値のリストです:

function love.conf(t)
    t.identity = nil                   -- セーブ・ディレクトリの名称 (string)
    t.version = "0.9.0"                -- このゲームの作成に使用した LÖVE のバージョン (string)
    t.console = false                  -- コンソールの表示 (boolean, Windows 専用)

    t.window.title = "Untitled"        -- ウィンドウのタイトル (string)
    t.window.icon = nil                -- ウィンドウのアイコンとして使用する画像のファイルパス (string)
    t.window.width = 800               -- ウィンドウの幅 (number)
    t.window.height = 600              -- ウィンドウの高さ (number)
    t.window.borderless = false        -- ウィンドウの境界線を非表示 (boolean)
    t.window.resizable = false         -- 利用者がウィンドウの大きさを変更できるかどうか (boolean)
    t.window.minwidth = 1              -- ウィンドウの大きさが変更可能な場合におけるウィンドウの最小の幅 (number)
    t.window.minheight = 1             -- ウィンドウの大きさが変更可能な場合におけるウィンドウの最小の高さ (number)
    t.window.fullscreen = false        -- 全画面表示の有効化 (boolean)
    t.window.fullscreentype = "normal" -- 準的な全画面表示またはデスクトップによる全画面表示方式 (string)
    t.window.vsync = true              -- 垂直同期の有効化 (boolean)
    t.window.fsaa = 0                  -- 多重サンプリングされたアンチエイリアシングにて使用するサンプル数 (number)
    t.window.display = 1               -- ウィンドウの表示先となるモニタの番号 (number)

    t.modules.audio = true             -- audio モジュールの有効化 (boolean)
    t.modules.event = true             -- event モジュールの有効化 (boolean)
    t.modules.graphics = true          -- graphics モジュールの有効化 (boolean)
    t.modules.image = true             -- image モジュールの有効化 (boolean)
    t.modules.joystick = true          -- joystick モジュールの有効化 (boolean)
    t.modules.keyboard = true          -- keyboard モジュールの有効化 (boolean)
    t.modules.math = true              -- math モジュールの有効化 (boolean)
    t.modules.mouse = true             -- mouse モジュールの有効化 (boolean)
    t.modules.physics = true           -- physics モジュールの有効化 (boolean)
    t.modules.sound = true             -- sound モジュールの有効化 (boolean)
    t.modules.system = true            -- system モジュールの有効化 (boolean)
    t.modules.timer = true             -- timer モジュールの有効化 (boolean)
    t.modules.window = true            -- window モジュールの有効化 (boolean)
    t.modules.thread = true            -- thread モジュールの有効化 (boolean)
end

下記は LÖVE 0.8.0 のオプションとデフォルト値のリストです:

function love.conf(t)
    t.title = "Untitled"        -- ゲームのウィンドウ・タイトル (string)
    t.author = "Unnamed"        -- ゲーム開発者の名称 (string)
    t.url = nil                 -- ゲームのウェブサイトの URL アドレス (string)
    t.identity = nil            -- セーブ・ディレクトリの名称 (string)
    t.version = "0.8.0"         -- このゲームの作成に使用した LÖVE のバージョン (string)
    t.console = false           -- コンソールの表示 (boolean, Windows 専用)
    t.release = false           -- リリース・モードの有効化 (boolean)
    t.screen.width = 800        -- ウィンドウの幅 (number)
    t.screen.height = 600       -- ウィンドウの高さ (number)
    t.screen.fullscreen = false -- 全画面表示の有効化 (boolean)
    t.screen.vsync = true       -- 垂直同期の有効化 (boolean)
    t.screen.fsaa = 0           -- MSAA のサンプル数 (number)
    t.modules.joystick = true   -- joystick モジュールの有効化 (boolean)
    t.modules.audio = true      -- audio モジュールの有効化 (boolean)
    t.modules.keyboard = true   -- keyboard モジュールの有効化 (boolean)
    t.modules.event = true      -- event モジュールの有効化 (boolean)
    t.modules.image = true      -- image モジュールの有効化 (boolean)
    t.modules.graphics = true   -- graphics モジュールの有効化 (boolean)
    t.modules.timer = true      -- timer モジュールの有効化 (boolean)
    t.modules.mouse = true      -- mouse モジュールの有効化 (boolean)
    t.modules.sound = true      -- sound モジュールの有効化 (boolean)
    t.modules.physics = true    -- physics モジュールの有効化 (boolean)
    t.modules.thread = true     -- thread モジュールの有効化 (boolean)
end

下記は LÖVE 0.7.2 以前のオプションとデフォルト値のリストです:

function love.conf(t)
    t.title = "Untitled"        -- ゲームのウィンドウ・タイトル (string)
    t.author = "Unnamed"        -- ゲーム開発者の名称 (string)
    t.identity = nil            -- セーブ・ディレクトリの名称 (string)
    t.version = 0               -- このゲームの作成に使用した LÖVE のバージョン (number)
    t.console = false           -- コンソールの表示 (boolean, Windows 専用)
    t.screen.width = 800        -- ウィンドウの幅 (number)
    t.screen.height = 600       -- ウィンドウの高さ (number)
    t.screen.fullscreen = false -- 全画面表示の有効化 (boolean)
    t.screen.vsync = true       -- 垂直同期の有効化 (boolean)
    t.screen.fsaa = 0           -- MSAA のサンプル数 (number)
    t.modules.joystick = true   -- joystick モジュールの有効化 (boolean)
    t.modules.audio = true      -- audio モジュールの有効化 (boolean)
    t.modules.keyboard = true   -- keyboard モジュールの有効化 (boolean)
    t.modules.event = true      -- event モジュールの有効化 (boolean)
    t.modules.image = true      -- image モジュールの有効化 (boolean)
    t.modules.graphics = true   -- graphics モジュールの有効化 (boolean)
    t.modules.timer = true      -- timer モジュールの有効化 (boolean)
    t.modules.mouse = true      -- mouse モジュールの有効化 (boolean)
    t.modules.sound = true      -- sound モジュールの有効化 (boolean)
    t.modules.physics = true    -- physics モジュールの有効化 (boolean)
end

関連


そのほかの言語