Config Files (Indonesia)

Pengantar

Jika berkas bernama conf.lua ada didalam folder permainanmu (atau didalam berkas .love), file itu dijalankan sebelum modul-modul LÖVE dimuat. Kau bisa menggunakan berkas ini untuk mengubah fungsi love.conf, yang nantinya akan dieksekusi oleh skrip 'boot' LÖVE. Menggunakan fungsi love.conf, kau bisa mengatur beberapa pengaturan konfigurasi seperti ukuran awal jendela, modul-modul apa saja yang akan dimuat, dan sebagainya.

love.conf

Fungsi love.conf mengambil satu argumen: table yang diisi dengan nilai awal yang bisa kau ganti sesukamu. Jika kau ingin mengubah ukuran awal jendela, lakukan:

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

Jika kau tidak memerlukan modul simulasi fisika atau modul joystick, lakukan hal berikut.

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

Mengatur modul yang tidak digunakan ke 'false' disarankan saat merilis permainanmu. Hal itu mengurangi waktu untuk memulai permainanmu sedikit (terutama jika modul joystick dimatikan) dan (sedikit) mengurangi penggunaan memori.

Ingatlah bahwa kau tidak bisa mematikan modul love.filesystem; modul itu diperlukan. Hal yang sama juga berlaku untuk modul love sendiri. love.graphics bergantung pada modul love.window.

Berkas Konfigurasi Awal

Berikut ini adalah daftar pengaturan dan nilai awalnya untuk LÖVE versi 11.0:

function love.conf(t)
    t.identity = nil                    -- The name of the save directory (string)
    t.appendidentity = false            -- Search files in source directory before save directory (boolean)
    t.version = "11.0"                  -- The LÖVE version this game was made for (string)
    t.console = false                   -- Attach a console (boolean, Windows only)
    t.accelerometerjoystick = true      -- Enable the accelerometer on iOS and Android by exposing it as a Joystick (boolean)
    t.externalstorage = false           -- True to save files (and read from the save directory) in external storage on Android (boolean) 
    t.gammacorrect = false              -- Enable gamma-correct rendering, when supported by the system (boolean)

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

    t.window.title = "Untitled"         -- The window title (string)
    t.window.icon = nil                 -- Filepath to an image to use as the window's icon (string)
    t.window.width = 800                -- The window width (number)
    t.window.height = 600               -- The window height (number)
    t.window.borderless = false         -- Remove all border visuals from the window (boolean)
    t.window.resizable = false          -- Let the window be user-resizable (boolean)
    t.window.minwidth = 1               -- Minimum window width if the window is resizable (number)
    t.window.minheight = 1              -- Minimum window height if the window is resizable (number)
    t.window.fullscreen = false         -- Enable fullscreen (boolean)
    t.window.fullscreentype = "desktop" -- Choose between "desktop" fullscreen or "exclusive" fullscreen mode (string)
    t.window.vsync = 1                  -- Vertical sync mode (number)
    t.window.msaa = 0                   -- The number of samples to use with multi-sampled antialiasing (number)
    t.window.display = 1                -- Index of the monitor to show the window in (number)
    t.window.highdpi = false            -- Enable high-dpi mode for the window on a Retina display (boolean)
    t.window.x = nil                    -- The x-coordinate of the window's position in the specified display (number)
    t.window.y = nil                    -- The y-coordinate of the window's position in the specified display (number)

    t.modules.audio = true              -- Enable the audio module (boolean)
    t.modules.data = true               -- Enable the data module (boolean)
    t.modules.event = true              -- Enable the event module (boolean)
    t.modules.font = true               -- Enable the font module (boolean)
    t.modules.graphics = true           -- Enable the graphics module (boolean)
    t.modules.image = true              -- Enable the image module (boolean)
    t.modules.joystick = true           -- Enable the joystick module (boolean)
    t.modules.keyboard = true           -- Enable the keyboard module (boolean)
    t.modules.math = true               -- Enable the math module (boolean)
    t.modules.mouse = true              -- Enable the mouse module (boolean)
    t.modules.physics = true            -- Enable the physics module (boolean)
    t.modules.sound = true              -- Enable the sound module (boolean)
    t.modules.system = true             -- Enable the system module (boolean)
    t.modules.thread = true             -- Enable the thread module (boolean)
    t.modules.timer = true              -- Enable the timer module (boolean), Disabling it will result 0 delta time in love.update
    t.modules.touch = true              -- Enable the touch module (boolean)
    t.modules.video = true              -- Enable the video module (boolean)
    t.modules.window = true             -- Enable the window module (boolean)
end

Opsi

identity

Opsi ini menentukan nama dari direktori penyimpanan permainanmu. Ingatlah bahwa kau hanya bisa memberi nama, bukan lokasinya:

t.identity = "gabe_HL3" -- Benar
t.identity = "c:/Users/gabe/HL3" -- Salah

love.filesystem.setIdentity bisa digunakan untuk mengatur direktori penyimpanan permainanmu diluar berkas konfigurasi.

appendidentity

Available since LÖVE 11.0
This flag is not supported in earlier versions.

Opsi ini menentukan sisten pencarian berkas apakah mencari didalam data permainan terlebih dahulu (true) atau tempat penyimpanan data eksternal permainan terlebih dahulu (false).

version

Available since LÖVE 0.8.0
This flag is not supported in earlier versions.

t.version harus berupa string versi LÖVE yang digunakan permainanmu.

Sebelum 11.0, string tersebut harus berformat seperti "X.Y.Z" dimana X adalah angka rilis besar, Y adalah angka rilis kecil, dan Z adalah angka tingkatan tambahan. Sejak 11.0,string tersebut harus berformat seperti "X.Y" dimana X dan Y adalah masing-masing angka rilis besar dan angka rilis kecil.

Variabel ini memungkinkan LÖVE untuk memunculkan peringatan kompatibilitas jika tidak kompatibel. Nilai awalnya adalah versi LÖVE yang sekarang berjalan.

console

Memunculkan konsol bersama dengan jendela permainan (hanya untuk Windows) atau tidak. Catatan: Di OSX, kau bisa mendapatkan keluaran konsol dengan menjalankan LÖVE dari terminal, atau di Windows untuk versi 0.10.2, dengan menjalankan lovec.exe.

accelerometerjoystick

Available since LÖVE 0.10.0
This flag is not supported in earlier versions.

Mengatur apakah akselerometer pada iOS dan Android harus dimunculkan sebagai Joystick 3 arah. Mematikan akselerometer ketika tidak digunakan bisa mengurangi penggunaan CPU.

externalstorage

Available since LÖVE 0.10.1
This flag is not supported in earlier versions.

Mengatur apakah berkas ditaruh di penyimpanan eksternal (true) atau penyimpanan internal (false) di Android.

gammacorrect

Available since LÖVE 0.10.0
This flag is not supported in earlier versions.

Mengatur apakah gamma-correct rendering dinyalakan, ketika sistem mendukung fitur ini.

audio.mixwithsystem

Available since LÖVE 11.0
This flag is not supported in earlier versions.

Mengatur apakah musik/suara latar belakang dari aplikasi lainnya tetap diputar ketika LÖVE dibuka. Lihat love.system.hasBackgroundMusic untuk informasi lebih lanjut.

window

Available since LÖVE 0.9.0
These flags are not supported in earlier versions.

Sebenarnya nenunda pembuatan jendela bisa dilakukan sampai love.window.setMode dipanggil dalam kodemu. Untuk melakukan hal tersebut, atur t.window = nil pada love.conf (atau t.screen = nil untuk versi lama). Jika hal ini dilakukan, LÖVE akan mengalami galat jika fungsi apapun dari love.graphics dipanggil sebelum love.window.setMode dipanggil di kodemu.

Table t.window sebelumnya bernama t.screen di versi sebelum 0.9.0. Table t.screen tidak ada di love.conf pada versi 0.9.0 dan table t.window tidak ada di love.conf pada versi 0.8.0. Ini artinya love.conf akan gagal tereksekusi (dan akan kembali ke nilai awal) jika hal ini tidak ditangani dengan benar.

window.title

Available since LÖVE 0.9.0
This flag is not supported in earlier versions.

Mengatur judul jendela permainanmu. love.window.setTitle juga bisa digunakan untuk mengganti judul jendela permainanmu diluar berkas konfigurasi.

window.icon

Available since LÖVE 0.9.0
This flag is not supported in earlier versions.

Jalur berkas gambar yang akan digunakan sebagai ikon jendela permainanmu. Tidak semua sistem operasi mendukung ikon yang sangat besar. Ikon juga bisa diganti dengan love.window.setIcon

window.width & window.height

Available since LÖVE 0.9.0
These flags are not supported in earlier versions.

Mengatur ukuran jendela permainanmu. Jika opsi ini diatur ke 0, LÖVE secara otomatis akan menggunakan ukuran desktop pengguna.

window.borderless

Available since LÖVE 0.9.0
This flag is not supported in earlier versions.

Menghilangkan semua tampilan pinggir yang ada di jendela. Ingatlah bahwa efek ini mungkin berbeda-beda dari sistem operasi yang satu dan yang lainnya.

window.resizable

Available since LÖVE 0.9.0
This flag is not supported in earlier versions.

Jika diatur ke true, maka pengguna diperbolehkan untuk mengatur ukuran jendela permainan.

window.minwidth & window.minheight

Available since LÖVE 0.9.0
These flags are not supported in earlier versions.

Mengatur ukuran minimal untuk jendela permainanmu jika ukuran jendela bisa diatur oleh pengguna. Jika kau mengatur nilai rendah di window.width dan window.height, LÖVE akan selalu menggunakan nilai minimum yang diatur oleh opsi konfigurasi ini.

window.fullscreen

Available since LÖVE 0.9.0
This flag is not supported in earlier versions.

Mengatur apakah permainanmu akan berjalan pada layar penuh (true) atau dengan jendela (false)

window.fullscreentype

Available since LÖVE 0.9.0
This flag is not supported in earlier versions.

Mengatur mode jenis layar penuh untuk digunakan (exclusive atau desktop). Umumnya desktop disarankan, karena mode tersebut kurang restriktif dibanding mode exclusive di beberapa sistem operasi. (Catatan: Di versi 0.9.2 dan sebelumnya, gunakan normal dari pada exclusive)

window.vsync

Available since LÖVE 0.9.0
This flag is not supported in earlier versions.

Menyalakan atau mematikan sinkronisasi vertikal (vertical synchronization). Vsync mencoba untuk membuat framerate permainan stabil dan mencegah masalah seperti screen tearing. Maka dari itu sangat disarankan mengaktifkan vsync jika kau tidak tahu konsekuensi dari mematikannya. Sebelum LÖVE 11.0, nilai ini adalah boolean (true atau false). Sejak LÖVE 11.0, nilai ini adalah number (1 untuk mengaktifkan vsync, 0 untuk mematikannya).

window.msaa

Available since LÖVE 0.9.2
This flag is not supported in earlier versions.

Banyak sampel yang digunakan untuk multi-sampled antialiasing (MSAA)

window.display

Available since LÖVE 0.9.0
This flag is not supported in earlier versions.

Nomor monitor yang digunakan untuk menampilkan jendela permainan, jika lebih dari satu monitor tersedia.

window.highdpi

Available since LÖVE 0.9.1
This flag is not supported in earlier versions.

Lihat love.window.getPixelScale, love.window.toPixels, dan love.window.fromPixels. Disarankan untuk mematikan opsi ini jika kau tidak bisa menguji permainanmu di Mac atau iOS dengan tampilan Retina, karena kode akan memerlukan sedikit perubahan untuk memastikannya terlihat benar.

Sejak 11.0, DPI tinggi selalu aktif untuk Android, mengabaikan konfigurasi ini.

window.x & window.y

Available since LÖVE 0.9.2
These flags are not supported in earlier versions.

Menentukan posisi jendela di layar pengguna. love.window.setPosition juga bisa digunakan untuk mengganti posisi jendela saat permainanmu berjalan.

window.fsaa

Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0
This flag has been replaced by the window.msaa flag.

Banyak sampel yang digunakan untuk multi-sampled antialiasing (MSAA)

window.srgb

Available since LÖVE 0.9.1 and removed in LÖVE 0.10.0
This flag has been replaced by the gammacorrect flag.

Menyalakan opsi ini akan secara otomatis mengubah warna dari RGB linier ke sRGB. Ini hanyalah satu komponen dari gamma-correct rendering, topik lanjutan yang bisa membuat sesuatu kacau dengan mudah, jadi disarankan untuk mematikan opsi ini jika kau tidak yakin dengan efeknya.

Mode Rilis

Available since LÖVE 0.8.0 and removed in LÖVE 0.9.0
This flag is not supported in earlier or later versions.


Jika t.release dinyalakan, LÖVE menggunakan love.releaseerrhand, yang secara awal meminimalkan informasi, dan bisa, tentu saja, diganti.

Penanganan kesalahan mode rilis yang biasa juga mengeluarkan pesan ke pemain untuk menghubungi kontak pembuat menggunakan nilai title, author dan url yang diatur di conf.lua

Jika permainan fused (permainan yang digabung dengan eksekutabel LÖVE) dijalankan, permainan itu tidak akan menyimpan di direktori love, tapi di tempatnya tersendiri. Contohnya di Windows, dimana sebelumnya %APPDATA%\\LOVE\\game, pada permainan fused, akan berada di %APPDATA%\\game. Konsep ini berlaku untuk sistem yang lain.

Versi Lama

Berikut ini adalah daftar pengaturan dan nilai awalnya untuk LÖVE versi 0.10.1 dan 0.10.2:

function love.conf(t)
    t.identity = nil                    -- The name of the save directory (string)
    t.version = "0.10.2"                -- The LÖVE version this game was made for (string)
    t.console = false                   -- Attach a console (boolean, Windows only)
    t.accelerometerjoystick = true      -- Enable the accelerometer on iOS and Android by exposing it as a Joystick (boolean)
    t.externalstorage = false           -- True to save files (and read from the save directory) in external storage on Android (boolean) 
    t.gammacorrect = false              -- Enable gamma-correct rendering, when supported by the system (boolean)

    t.window.title = "Untitled"         -- The window title (string)
    t.window.icon = nil                 -- Filepath to an image to use as the window's icon (string)
    t.window.width = 800                -- The window width (number)
    t.window.height = 600               -- The window height (number)
    t.window.borderless = false         -- Remove all border visuals from the window (boolean)
    t.window.resizable = false          -- Let the window be user-resizable (boolean)
    t.window.minwidth = 1               -- Minimum window width if the window is resizable (number)
    t.window.minheight = 1              -- Minimum window height if the window is resizable (number)
    t.window.fullscreen = false         -- Enable fullscreen (boolean)
    t.window.fullscreentype = "desktop" -- Choose between "desktop" fullscreen or "exclusive" fullscreen mode (string)
    t.window.vsync = true               -- Enable vertical sync (boolean)
    t.window.msaa = 0                   -- The number of samples to use with multi-sampled antialiasing (number)
    t.window.display = 1                -- Index of the monitor to show the window in (number)
    t.window.highdpi = false            -- Enable high-dpi mode for the window on a Retina display (boolean)
    t.window.x = nil                    -- The x-coordinate of the window's position in the specified display (number)
    t.window.y = nil                    -- The y-coordinate of the window's position in the specified display (number)

    t.modules.audio = true              -- Enable the audio module (boolean)
    t.modules.event = true              -- Enable the event module (boolean)
    t.modules.graphics = true           -- Enable the graphics module (boolean)
    t.modules.image = true              -- Enable the image module (boolean)
    t.modules.joystick = true           -- Enable the joystick module (boolean)
    t.modules.keyboard = true           -- Enable the keyboard module (boolean)
    t.modules.math = true               -- Enable the math module (boolean)
    t.modules.mouse = true              -- Enable the mouse module (boolean)
    t.modules.physics = true            -- Enable the physics module (boolean)
    t.modules.sound = true              -- Enable the sound module (boolean)
    t.modules.system = true             -- Enable the system module (boolean)
    t.modules.timer = true              -- Enable the timer module (boolean), Disabling it will result 0 delta time in love.update
    t.modules.touch = true              -- Enable the touch module (boolean)
    t.modules.video = true              -- Enable the video module (boolean)
    t.modules.window = true             -- Enable the window module (boolean)
    t.modules.thread = true             -- Enable the thread module (boolean)
end

Berikut ini adalah daftar pengaturan dan nilai awalnya untuk LÖVE versi 0.10.0:

function love.conf(t)
    t.identity = nil                    -- The name of the save directory (string)
    t.version = "0.10.0"                -- The LÖVE version this game was made for (string)
    t.console = false                   -- Attach a console (boolean, Windows only)
    t.accelerometerjoystick = true      -- Enable the accelerometer on iOS and Android by exposing it as a Joystick (boolean)
    t.gammacorrect = false              -- Enable gamma-correct rendering, when supported by the system (boolean)

    t.window.title = "Untitled"         -- The window title (string)
    t.window.icon = nil                 -- Filepath to an image to use as the window's icon (string)
    t.window.width = 800                -- The window width (number)
    t.window.height = 600               -- The window height (number)
    t.window.borderless = false         -- Remove all border visuals from the window (boolean)
    t.window.resizable = false          -- Let the window be user-resizable (boolean)
    t.window.minwidth = 1               -- Minimum window width if the window is resizable (number)
    t.window.minheight = 1              -- Minimum window height if the window is resizable (number)
    t.window.fullscreen = false         -- Enable fullscreen (boolean)
    t.window.fullscreentype = "desktop" -- Choose between "desktop" fullscreen or "exclusive" fullscreen mode (string)
    t.window.vsync = true               -- Enable vertical sync (boolean)
    t.window.msaa = 0                   -- The number of samples to use with multi-sampled antialiasing (number)
    t.window.display = 1                -- Index of the monitor to show the window in (number)
    t.window.highdpi = false            -- Enable high-dpi mode for the window on a Retina display (boolean)
    t.window.x = nil                    -- The x-coordinate of the window's position in the specified display (number)
    t.window.y = nil                    -- The y-coordinate of the window's position in the specified display (number)

    t.modules.audio = true              -- Enable the audio module (boolean)
    t.modules.event = true              -- Enable the event module (boolean)
    t.modules.graphics = true           -- Enable the graphics module (boolean)
    t.modules.image = true              -- Enable the image module (boolean)
    t.modules.joystick = true           -- Enable the joystick module (boolean)
    t.modules.keyboard = true           -- Enable the keyboard module (boolean)
    t.modules.math = true               -- Enable the math module (boolean)
    t.modules.mouse = true              -- Enable the mouse module (boolean)
    t.modules.physics = true            -- Enable the physics module (boolean)
    t.modules.sound = true              -- Enable the sound module (boolean)
    t.modules.system = true             -- Enable the system module (boolean)
    t.modules.timer = true              -- Enable the timer module (boolean), Disabling it will result 0 delta time in love.update
    t.modules.touch = true              -- Enable the touch module (boolean)
    t.modules.video = true              -- Enable the video module (boolean)
    t.modules.window = true             -- Enable the window module (boolean)
    t.modules.thread = true             -- Enable the thread module (boolean)
end

Berikut ini adalah daftar pengaturan dan nilai awalnya untuk LÖVE versi 0.9.2:

function love.conf(t)
    t.identity = nil                   -- The name of the save directory (string)
    t.version = "0.9.2"                -- The LÖVE version this game was made for (string)
    t.console = false                  -- Attach a console (boolean, Windows only)

    t.window.title = "Untitled"        -- The window title (string)
    t.window.icon = nil                -- Filepath to an image to use as the window's icon (string)
    t.window.width = 800               -- The window width (number)
    t.window.height = 600              -- The window height (number)
    t.window.borderless = false        -- Remove all border visuals from the window (boolean)
    t.window.resizable = false         -- Let the window be user-resizable (boolean)
    t.window.minwidth = 1              -- Minimum window width if the window is resizable (number)
    t.window.minheight = 1             -- Minimum window height if the window is resizable (number)
    t.window.fullscreen = false        -- Enable fullscreen (boolean)
    t.window.fullscreentype = "normal" -- Choose between "normal" fullscreen or "desktop" fullscreen mode (string)
    t.window.vsync = true              -- Enable vertical sync (boolean)
    t.window.fsaa = 0                  -- The number of samples to use with multi-sampled antialiasing (number)
    t.window.display = 1               -- Index of the monitor to show the window in (number)
    t.window.highdpi = false           -- Enable high-dpi mode for the window on a Retina display (boolean)
    t.window.srgb = false              -- Enable sRGB gamma correction when drawing to the screen (boolean)
    t.window.x = nil                   -- The x-coordinate of the window's position in the specified display (number)
    t.window.y = nil                   -- The y-coordinate of the window's position in the specified display (number)

    t.modules.audio = true             -- Enable the audio module (boolean)
    t.modules.event = true             -- Enable the event module (boolean)
    t.modules.graphics = true          -- Enable the graphics module (boolean)
    t.modules.image = true             -- Enable the image module (boolean)
    t.modules.joystick = true          -- Enable the joystick module (boolean)
    t.modules.keyboard = true          -- Enable the keyboard module (boolean)
    t.modules.math = true              -- Enable the math module (boolean)
    t.modules.mouse = true             -- Enable the mouse module (boolean)
    t.modules.physics = true           -- Enable the physics module (boolean)
    t.modules.sound = true             -- Enable the sound module (boolean)
    t.modules.system = true            -- Enable the system module (boolean)
    t.modules.timer = true             -- Enable the timer module (boolean), Disabling it will result 0 delta time in love.update
    t.modules.window = true            -- Enable the window module (boolean)
    t.modules.thread = true            -- Enable the thread module (boolean)
end

Berikut ini adalah daftar pengaturan dan nilai awalnya untuk LÖVE versi 0.9.1:

function love.conf(t)
    t.identity = nil                   -- The name of the save directory (string)
    t.version = "0.9.1"                -- The LÖVE version this game was made for (string)
    t.console = false                  -- Attach a console (boolean, Windows only)

    t.window.title = "Untitled"        -- The window title (string)
    t.window.icon = nil                -- Filepath to an image to use as the window's icon (string)
    t.window.width = 800               -- The window width (number)
    t.window.height = 600              -- The window height (number)
    t.window.borderless = false        -- Remove all border visuals from the window (boolean)
    t.window.resizable = false         -- Let the window be user-resizable (boolean)
    t.window.minwidth = 1              -- Minimum window width if the window is resizable (number)
    t.window.minheight = 1             -- Minimum window height if the window is resizable (number)
    t.window.fullscreen = false        -- Enable fullscreen (boolean)
    t.window.fullscreentype = "normal" -- Standard fullscreen or desktop fullscreen mode (string)
    t.window.vsync = true              -- Enable vertical sync (boolean)
    t.window.fsaa = 0                  -- The number of samples to use with multi-sampled antialiasing (number)
    t.window.display = 1               -- Index of the monitor to show the window in (number)
    t.window.highdpi = false           -- Enable high-dpi mode for the window on a Retina display (boolean)
    t.window.srgb = false              -- Enable sRGB gamma correction when drawing to the screen (boolean)

    t.modules.audio = true             -- Enable the audio module (boolean)
    t.modules.event = true             -- Enable the event module (boolean)
    t.modules.graphics = true          -- Enable the graphics module (boolean)
    t.modules.image = true             -- Enable the image module (boolean)
    t.modules.joystick = true          -- Enable the joystick module (boolean)
    t.modules.keyboard = true          -- Enable the keyboard module (boolean)
    t.modules.math = true              -- Enable the math module (boolean)
    t.modules.mouse = true             -- Enable the mouse module (boolean)
    t.modules.physics = true           -- Enable the physics module (boolean)
    t.modules.sound = true             -- Enable the sound module (boolean)
    t.modules.system = true            -- Enable the system module (boolean)
    t.modules.timer = true             -- Enable the timer module (boolean)
    t.modules.window = true            -- Enable the window module (boolean)
    t.modules.thread = true            -- Enable the thread module (boolean)
end

Berikut ini adalah daftar pengaturan dan nilai awalnya untuk LÖVE versi 0.9.0:

function love.conf(t)
    t.identity = nil                   -- The name of the save directory (string)
    t.version = "0.9.0"                -- The LÖVE version this game was made for (string)
    t.console = false                  -- Attach a console (boolean, Windows only)

    t.window.title = "Untitled"        -- The window title (string)
    t.window.icon = nil                -- Filepath to an image to use as the window's icon (string)
    t.window.width = 800               -- The window width (number)
    t.window.height = 600              -- The window height (number)
    t.window.borderless = false        -- Remove all border visuals from the window (boolean)
    t.window.resizable = false         -- Let the window be user-resizable (boolean)
    t.window.minwidth = 1              -- Minimum window width if the window is resizable (number)
    t.window.minheight = 1             -- Minimum window height if the window is resizable (number)
    t.window.fullscreen = false        -- Enable fullscreen (boolean)
    t.window.fullscreentype = "normal" -- Standard fullscreen or desktop fullscreen mode (string)
    t.window.vsync = true              -- Enable vertical sync (boolean)
    t.window.fsaa = 0                  -- The number of samples to use with multi-sampled antialiasing (number)
    t.window.display = 1               -- Index of the monitor to show the window in (number)

    t.modules.audio = true             -- Enable the audio module (boolean)
    t.modules.event = true             -- Enable the event module (boolean)
    t.modules.graphics = true          -- Enable the graphics module (boolean)
    t.modules.image = true             -- Enable the image module (boolean)
    t.modules.joystick = true          -- Enable the joystick module (boolean)
    t.modules.keyboard = true          -- Enable the keyboard module (boolean)
    t.modules.math = true              -- Enable the math module (boolean)
    t.modules.mouse = true             -- Enable the mouse module (boolean)
    t.modules.physics = true           -- Enable the physics module (boolean)
    t.modules.sound = true             -- Enable the sound module (boolean)
    t.modules.system = true            -- Enable the system module (boolean)
    t.modules.timer = true             -- Enable the timer module (boolean)
    t.modules.window = true            -- Enable the window module (boolean)
    t.modules.thread = true            -- Enable the thread module (boolean)
end

Berikut ini adalah daftar pengaturan dan nilai awalnya untuk LÖVE versi 0.8.0:

function love.conf(t)
    t.title = "Untitled"        -- The title of the window the game is in (string)
    t.author = "Unnamed"        -- The author of the game (string)
    t.url = nil                 -- The website of the game (string)
    t.identity = nil            -- The name of the save directory (string)
    t.version = "0.8.0"         -- The LÖVE version this game was made for (string)
    t.console = false           -- Attach a console (boolean, Windows only)
    t.release = false           -- Enable release mode (boolean)
    t.screen.width = 800        -- The window width (number)
    t.screen.height = 600       -- The window height (number)
    t.screen.fullscreen = false -- Enable fullscreen (boolean)
    t.screen.vsync = true       -- Enable vertical sync (boolean)
    t.screen.fsaa = 0           -- The number of MSAA samples (number)
    t.modules.joystick = true   -- Enable the joystick module (boolean)
    t.modules.audio = true      -- Enable the audio module (boolean)
    t.modules.keyboard = true   -- Enable the keyboard module (boolean)
    t.modules.event = true      -- Enable the event module (boolean)
    t.modules.image = true      -- Enable the image module (boolean)
    t.modules.graphics = true   -- Enable the graphics module (boolean)
    t.modules.timer = true      -- Enable the timer module (boolean)
    t.modules.mouse = true      -- Enable the mouse module (boolean)
    t.modules.sound = true      -- Enable the sound module (boolean)
    t.modules.physics = true    -- Enable the physics module (boolean)
    t.modules.thread = true     -- Enable the thread module (boolean)
end

Berikut ini adalah daftar pengaturan dan nilai awalnya untuk LÖVE versi 0.7.2 dan sebelumnya:

function love.conf(t)
    t.title = "Untitled"        -- The title of the window the game is in (string)
    t.author = "Unnamed"        -- The author of the game (string)
    t.identity = nil            -- The name of the save directory (string)
    t.version = 0               -- The LÖVE version this game was made for (number)
    t.console = false           -- Attach a console (boolean, Windows only)
    t.screen.width = 800        -- The window width (number)
    t.screen.height = 600       -- The window height (number)
    t.screen.fullscreen = false -- Enable fullscreen (boolean)
    t.screen.vsync = true       -- Enable vertical sync (boolean)
    t.screen.fsaa = 0           -- The number of MSAA samples (number)
    t.modules.joystick = true   -- Enable the joystick module (boolean)
    t.modules.audio = true      -- Enable the audio module (boolean)
    t.modules.keyboard = true   -- Enable the keyboard module (boolean)
    t.modules.event = true      -- Enable the event module (boolean)
    t.modules.image = true      -- Enable the image module (boolean)
    t.modules.graphics = true   -- Enable the graphics module (boolean)
    t.modules.timer = true      -- Enable the timer module (boolean)
    t.modules.mouse = true      -- Enable the mouse module (boolean)
    t.modules.sound = true      -- Enable the sound module (boolean)
    t.modules.physics = true    -- Enable the physics module (boolean)
end

Lihat Juga


Bahasa Lainnya