Lua로 게임 개발하기 좋은(?) 엔진이다.

 

1. Love2d를 다운 받고, 설치

 

1) Love2d 다운받아서 적당한 위치에 압축을 푼다.

https://love2d.org/

 

LÖVE - Free 2D Game Engine

Hi there! LÖVE is an *awesome* framework you can use to make 2D games in Lua. It's free, open-source, and works on Windows, Mac OS X, Linux, Android and iOS.

love2d.org

2) Atom을 다운 받는다. (강력한 텍스트 에디터)

https://atom.io/

 

A hackable text editor for the 21st Century

At GitHub, we’re building the text editor we’ve always wanted: hackable to the core, but approachable on the first day without ever touching a config file. We can’t wait to see what you build with it.

atom.io

  (2) atom을 설치하고, install a package에서 love-ide 를 설치하고, love-ide package의 세팅에 들어가서 Love2 설치경로를 지정해준다.

  ex> D:\games\make\Love2d\love-11.2.0-win64\love.exe

 

2. atom을 실행하고, 간단한 코드를 작성하여 실행한다.

  1)  atom 실행 후, 새 파일로 main.lua 라는 파일을 생성한다.

  2) 아래의 코드를 적는다. (tistory는 code highlighting에 lua를 지원하지 않아서 그냥 javascript로 지정해서 색깔이 이상함.) 

function love.load(arg)
  --body
  -- 타이틀 지정
  love.window.setTitle("Test Love2d")
end

function love.update(dt)
  --body
 end
 
 function love.draw()
   --body
   love.graphics.print("Hello, World")
 end

 3) 저장하고, Play 버튼 같은 삼각형 눌러서, 화면 왼쪽 상단에 Hello, World 가 제대로 뜨면 성공

 

3. Tutorial 추천 강좌

  *. 영어 이긴한데, youtube에 자막 넣고, 한글 자동번역 하면 된다.

  *. 간단한 비행기 게임을 만들면서 진행하는 튜터리얼 강좌이다.

https://www.youtube.com/watch?v=FUiz1kL0QtI

 

4. End

+ Recent posts