Difference between revisions of "Config Files (한국어)"

(Created page with "== Introduction == <code>conf.lua</code>라는 파일은 당신의 게임 폴더(혹은 .love 파일) 안에 있습니다. 이것은 LÖVE 모듈들이 로드되기 전, LÖVE...")
(No difference)

Revision as of 14:54, 18 January 2013

Introduction

conf.lua라는 파일은 당신의 게임 폴더(혹은 .love 파일) 안에 있습니다. 이것은 LÖVE 모듈들이 로드되기 전, LÖVE의 '부트'스크립트에 의해 실행됩니다. love.conf 함수를 사용하여 당신은 설정을 선택할 수 있고, 창의 기본 크기, 어떤 모듈들을 불러올 것이냐, 등등의 것들을 바꿀 수 있습니다.

love.conf

love.conf 함수에 대해 말하자면, 이것은 당신이 좋아하는대로 쓸 수 있는 기본값들의 표입니다. 예를 들어, 기본 창 크기를 바꾸고 싶다면:

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

당신이 물리 모듈이나 조이스틱 모듈을 필요로 하지 않는다면, 이렇게 하세요.

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

사용되지 않는 모듈들을 끄는 것은 권장됩니다. 이것은 (약간) 게임이 시작하는 시간을 줄여주고, (약간) 메모리 사용량을 줄입니다.

여기 LÖVE 0.8.0에서의 옵션 목록과 기본값들이 나와있습니다:

 
function love.conf(t)
    t.title = "Untitled"        -- 게임의 창 제목 (string)
    t.author = "Unnamed"        -- 게임의 제작자 (string)
    t.url = nil                 -- 게임의 웹 사이트 (string)
    t.identity = nil            -- 세이브 디렉토리의 이름 (string)
    t.version = "0.8.0"         -- 만들어진 LÖVE 버젼 (string)
    t.console = false           -- 옆에 콘솔을 띄움 (boolean, 윈도우만)
    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           -- FSAA-버퍼의 수 (number)
    t.modules.joystick = true   -- 조이스틱 모듈 활성화 (boolean)
    t.modules.audio = true      -- 오디오 모듈 활성화 (boolean)
    t.modules.keyboard = true   -- 키보드 모듈 활성화 (boolean)
    t.modules.event = true      -- 이벤트 모듈 활성화 (boolean)
    t.modules.image = true      -- 이미지 모듈 활성화 (boolean)
    t.modules.graphics = true   -- 그래픽 모듈 활성화 (boolean)
    t.modules.timer = true      -- 타이머 모듈 활성화 (boolean)
    t.modules.mouse = true      -- 마우스 모듈 활성화 (boolean)
    t.modules.sound = true      -- 사운드 모듈 활성화 (boolean)
    t.modules.physics = true    -- 물리 모듈 활성화 (boolean)
end

love.filesystem은 끌 수 없습니다; 이것은 꼭 필요합니다. love모듈 자체도 마찬가지입니다.

버전

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

t.version은 게임이 만들어진 LÖVE 버전의 문자열이어야 합니다. "X.Y.Z" 형식으로 지정되어야 하며, X은 주 릴리즈 넘버, Y는 부 릴리즈 넘버, Z는 패치 단계입니다. 이것은 게임이 호환되지 않을 경우 게임이 만들어진 LÖVE의 버전을 알려줄 때 씁니다.

릴리즈 모드

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

t.release이 활성화되었다면, LÖVE는 오류에 대한 정보를 제공하는 에러 핸들러(love.releaseerrhand)를 사용합니다.

기본 릴리즈 모드의 에러 핸들러는 conf.lua에 나온 게임 제목, 제작자와 URL을 통해 제작자와 연락할 수 있는 메세지를 출력합니다.

릴리즈 모드에서 합쳐진 게임은 love 세이브 디렉토리에 저장되지 않고 다른 경로에 저장됩니다. 이전 게임이 %APPDATA%\\LOVE\\game에 저장되었다면 이제는 %APPDATA%\\game에 저장될 것입니다. 이것은 다른 플랫폼들에도 적용됩니다.

구버전

Here is a full list of options and their default values for LÖVE 0.7.2 and earlier:

 
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 FSAA-buffers (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

다른 언어로