2016๋ 12์ 11์ผ ์ผ์์ผ
2015๋ 7์ 23์ผ ๋ชฉ์์ผ
Posted by ColaLib on ์ค์ 11:07 with No comments
๊ทธ๋๊ฐ ์ ์๋ ๊ณณ์์,
๊ทธ๋๊ฐ ๊ฐ์ง ๊ฒ์ผ๋ก,
๊ทธ๋๊ฐ ํ ์ ์๋
์ต์ ์ ์ผ์ ํ๋ผ.
-๋ฃจ์ฆ๋ฒจํธ
2015๋ 7์ 16์ผ ๋ชฉ์์ผ
Posted by ColaLib on ์คํ 7:11 with 3 comments
Explain.
Visual Sutdio Extensions ํ๋ก๊ทธ๋จ์ค
Code Maid์ ๋ํด ์ ๋ฆฌ.
Join Line, Sort Line ,Code CleanUp, Code space ๋ฑ์ ๊ธฐ๋ฅ ์ ๊ณต.
์ค์น๋ฐฉ๋ฒ ๋ฐ ๋ํ์ ์ธ ๊ธฐ๋ฅ ์ ๋ฆฌ ์์ ...
Visual Sutdio Extensions ํ๋ก๊ทธ๋จ์ค
Code Maid์ ๋ํด ์ ๋ฆฌ.
Join Line, Sort Line ,Code CleanUp, Code space ๋ฑ์ ๊ธฐ๋ฅ ์ ๊ณต.
์ค์น๋ฐฉ๋ฒ ๋ฐ ๋ํ์ ์ธ ๊ธฐ๋ฅ ์ ๋ฆฌ ์์ ...
Posted by ColaLib on ์คํ 7:04 with No comments
Explain.
Visual Studio Hot key list
์์ฃผ์ฐ๋ ๋ด์ฉ Bold
Rename : Ctrl + R, R
Extract Method : Ctrl + R , M
Extract Interface : Ctrl + R, I
Navigator : Ctrl + ,
Find All Reference : Shift + F12
Class View : Ctrl + Shift + C
Auto Document : Ctrl + K + D
Comment Selection : Ctrl + K + C
UnComment Selection : Ctrl + K + U
Go to : Ctrl + G
2015๋ 6์ 21์ผ ์ผ์์ผ
Posted by ColaLib on ์ค์ 1:32 with 2 comments
AnalysisEngine.
class AnalysisEngine
{
public enum Step
{
WEB,
IN,
CAFE,
BLOG
}
const string NAVER_OPENAPI_KEY = "InputYourNaverAPIKey";
const string NAVER_OPENAPI_URL = "http://openapi.naver.com/search?";
const int NAVER_SEARCH_COUNT = 100;
string keyword;
string url;
string blog;
string cafe;
public AnalysisEngine(string keyword, string url, string blog, string cafe)
{
this.keyword = keyword;
this.url = url;
this.blog = blog;
this.cafe = cafe;
}
public void Analysis()
{
AnalysisResult result = new AnalysisResult();
result.webRank = AnalysisProccess(Step.WEB, url);
result.blogRank = AnalysisProccess(Step.BLOG, blog);
result.cafeRank = AnalysisProccess(Step.CAFE, cafe);
Console.WriteLine("0 = 100์์์ ์์.");
Console.WriteLine("๋ค์ด๋ฒ ์น๋ฌธ์ ๋ถ์ ๊ฒฐ๊ณผ : " + result.webRank);
Console.WriteLine("๋ค์ด๋ฒ ๋ธ๋ก๊ทธ ๋ถ์ ๊ฒฐ๊ณผ : " + result.blogRank);
Console.WriteLine("๋ค์ด๋ฒ ์นดํ ๋ถ์ ๊ฒฐ๊ณผ : " + result.cafeRank);
Console.ReadLine();
}
int AnalysisProccess(Step step, string target)
{
string html = AnalysisTools.GetHTML(CreateURL(step));
XmlDocument doc = new XmlDocument();
doc.LoadXml(html);
int rank = 0;
foreach (XmlNode node in doc.SelectNodes("rss/channel/item/link"))
{
string realURL = GetRealURL(node.InnerText);
if (realURL.Length > target.Length)
realURL = realURL.Substring(0, target.Length);
Console.WriteLine(realURL);
++rank;
if (target == realURL)
{
return rank;
}
}
return 0;
}
string CreateURL(Step step)
{
string target = "";
switch (step)
{
case Step.WEB: target = "webkr";
break;
case Step.IN: target = "in";
break;
case Step.CAFE: target = "cafearticle";
break;
case Step.BLOG: target = "blog";
break;
default:
break;
}
return string.Format("{0}key={1}&query={2}&display={4}&start=1&target={3}", NAVER_OPENAPI_URL, NAVER_OPENAPI_KEY, keyword, target, NAVER_SEARCH_COUNT);
}
/*
Naver API๋ฅผ ํ์ฉํ์ฌ url์ฃผ์๋ฅผ ํ๋ ํ ์
์ค์ฃผ์๊ฐ ์๋ API ๋ก ๋งตํ๋ ๊ฐ์์ฃผ์๋ฅผ ์ ๊ณต ํด์ฃผ๊ธฐ ๋๋ฌธ์
์ง์ ๋ฆฌ๋ค์ด๋ ํธ ์ฃผ์๋ฅผ ํ๋ํ์ฌ ๋ฐ์ ํ๊ธฐ์ํ ํจ์.
*/
string GetRealURL(string url)
{
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url);
webRequest.AllowAutoRedirect = false;
webRequest.Timeout = 10000;
webRequest.Method = "HEAD";
HttpWebResponse webResponse;
string uriString = string.Empty;
using (webResponse = (HttpWebResponse)webRequest.GetResponse())
{
if ((int)webResponse.StatusCode >= 300 && (int)webResponse.StatusCode <= 399)
{
uriString = webResponse.Headers["Location"];
webResponse.Close();
}
}
return uriString;
}
}
AnalysisResult
class AnalysisResult
{
public int webRank;
public int cafeRank;
public int blogRank;
}
AnalysisTool
class AnalysisTools
{
public static string GetHTML(string url)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
if (response.StatusCode == HttpStatusCode.OK)
{
Stream receiveStream = response.GetResponseStream();
StreamReader readStream = null;
if (response.CharacterSet == null)
{
readStream = new StreamReader(receiveStream);
}
else
{
readStream = new StreamReader(receiveStream, Encoding.UTF8);
}
string data = readStream.ReadToEnd();
response.Close();
readStream.Close();
return data;
}
return string.Empty;
}
}
Main
class Program
{
static string keyword = ""; //ํค์๋
static string homepage = ""; //ํํ์ด์ง ์ฃผ์
static string blog = ""; //๋ธ๋ก๊ทธ ์ฃผ์
static string cafe = ""; //์นดํ ์ฃผ์
static void Main(string[] args)
{
AnalysisEngine engine = new AnalysisEngine(
keyword ,
homepage,
blog,
cafe);
engine.Analysis();
}
}2015๋ 6์ 2์ผ ํ์์ผ
Posted by ColaLib on ์คํ 8:23 with No comments
Explain.
Unity Coroutine ํจ์๋ฅผ ํ์ฉํ Object์ Lerp(์ ํ๋ณด๊ฐ)์ด๋ ๊ตฌํ๊ตฌํ
๊ฐ์ฅ ์ฌํํ๊ฒ ๊ตฌํํ ์์ .
C#์ Generic , Reflection์ ํ์ฉํ์ฌ ๊ธฐ๋ฅ ํ์ฅ ๊ฐ๋ฅ.
Code.
Unity Coroutine ํจ์๋ฅผ ํ์ฉํ Object์ Lerp(์ ํ๋ณด๊ฐ)์ด๋ ๊ตฌํ๊ตฌํ
๊ฐ์ฅ ์ฌํํ๊ฒ ๊ตฌํํ ์์ .
C#์ Generic , Reflection์ ํ์ฉํ์ฌ ๊ธฐ๋ฅ ํ์ฅ ๊ฐ๋ฅ.
Code.
IEnumerator moveCoroutine(float duration, Vector3 end)
{
WaitEndOfFrame wait = new WaitEndOfFrame();
Vector3 start = transform.position;
float elapsed = 0.0f;
while(elapsed < duration){
elapsed += Time.deltatime;
transform.position = Vector3.Lerp(start,end elapsed / duration);
yield return wait;
}
transform.position = end;
}
IEnumerator colorCoroutine(float duration, Color start, Color end)
{
WaitEndOfFrame wait += new WaitEndOfFrame();
float elapsed = 0.0f;
while(elapsed < duration){
elapsed = Time.deltaTime;
renderer.material.color = Color.Lerp(start,end elapsed / duration);
yield return wait;
}
renderer.material.color = end;
}
2015๋ 5์ 14์ผ ๋ชฉ์์ผ
Posted by ColaLib on ์คํ 11:00 with 1 comment
์์ ์ ๋ง๋ค์ด๋ 3-Matchํ์(์ ๋ํก) ์์ค๋ฅผ Github์ ์ฌ๋ ค๋๊ฒ ์์ด์ ํฌ์คํ .
References.
Github.
PlayStore.
Posted by ColaLib on ์ค์ 12:43 with No comments
Explain.
C#ํ๊ฒฝ ์์ ๋ค์ด๋ฒ ์คํ ๊ฒ์ API ๋ฅผ ํ์ฉํ๋ ์์ .
Input - ํค์๋(๊ฒ์๊ฐ), ํ์ด์ง(URL)
Output - ๋ค์ด๋ฒ ๋ ธ์ถ ์์
Environment.
Visual Studio 2015 Comunity.
Naver Search API KEY
Logic flow.
1. Input / Keyword, Home Page URL
2. WebRequest๋ฅผ ํ์ฉํ์ฌ ๋ค์ด๋ฒ ์คํ API์ request ์์ฒญ ํ respawn ๋ฐ์ดํฐ ์ ์ฅ.
3. 2.์ respawn ๋ฐ์ดํฐ ๋ค์ด๋ฒ ๋ ธ์ถ ์์ ๊ฒ์.
์์ค ์ฝ๋
Result.
์์ค ์ฝ๋
2015๋ 4์ 15์ผ ์์์ผ
Posted by ColaLib on ์คํ 10:25 with No comments
Explain.
๊ฒ์ ์ ์์ MainFrame(MainManager, GameManager ๋ฑ)์์ FSM์ ๊ตฌํํ๋ ๋ฐฉ๋ฒ ์ ๋ฆฌ
MainFrame.cs
๊ฒ์ ์ ์์ MainFrame(MainManager, GameManager ๋ฑ)์์ FSM์ ๊ตฌํํ๋ ๋ฐฉ๋ฒ ์ ๋ฆฌ
MainFrame.cs
class MainFrame
{
public enum State
{
Game,
Lobby
}
FiniteStateMachine<MainFrame, State> FSM;
LobbyState stateLobby = new LobbyState();
GameState stateGame = new GameState();
void Awake()
{
FSM = new FiniteStateMachine<MainFrame, State>(this);
FSM.AddState(stateLobby);
FSM.AddState(stateGame);
FSM.ChangeState(stateLobby); // ์์์ stateLobby State
}
}
LobbyState.csclass LobbyState : FiniteState<MainFrame, MainFrame.State>
{
public override void SetEntity(MainFrame entity)
{
base.SetEntity(entity);
}
public override void Enter()
{
base.Enter();
//๊ฒ์ ์
์ฅ์ ์ด๋ฒคํธ ๊ตฌํ๋ถ
}
public override void Excute()
{
base.Excute();
//๊ฒ์ ์คํ์ ์ด๋ฒคํธ ๊ตฌํ๋ถ
}
public override void Exit()
{
base.Exit();
//๊ฒ์ ํด์ฅ์ ์ด๋ฒคํธ ๊ตฌํ๋ถ
}
public override MainFrame.State _StateID
{
get
{
return MainFrame.State.Game;
}
}
}
GameState.csclass GameState : FiniteState<MainFrame, MainFrame.State>
{
public override void SetEntity(MainFrame entity)
{
base.SetEntity(entity);
}
public override void Enter()
{
base.Enter();
//๊ฒ์ ์
์ฅ์ ์ด๋ฒคํธ ๊ตฌํ๋ถ
}
public override void Excute()
{
base.Excute();
//๊ฒ์ ์คํ์ ์ด๋ฒคํธ ๊ตฌํ๋ถ
}
public override void Exit()
{
base.Exit();
//๊ฒ์ ํด์ฅ์ ์ด๋ฒคํธ ๊ตฌํ๋ถ
}
public override MainFrame.State _StateID
{
get
{
return MainFrame.State.Game;
}
}
}
Posted by ColaLib on ์คํ 9:27 with No comments
Explain.
์ ํ ์ํ ๊ธฐ๊ณ๋ผ๊ณ ํ๋ฉฐ, ํน์ ํ Input(event) ์ ๋ฐ๋ผ ํด๋นํ๋ state(output)์ผ๋ก ๋ณํํ๋ ๋ฐฉ๋ฒ๋ก . ๋ค์ํ ๋ถ์ผ(ํนํ ๊ฒ์)์ ์ฌ์ฉ๋์ด ์ง๊ณ ์์ผ๋ฉฐ ์ํ์ ๋ณํ์ ๋ฐ๋ฅธ ์ด๋ฒคํธ๋ฅผ ๋ฐ์์ํฌ์์์ผ๋ฏ๋ก ์ข๋ ์ ์ฐํ ๋ก์ง์ ๊ตฌ์ฑํ ์์๋ค. ์ด์ ์ ๊ฒ์ ์ ์์ ์ฌ์ฉํ๋ ํ์ฌ๋ ์ฌ์ฉํ๊ณ ์๋ FSM์ ๋ํด ์ ๋ฆฌ. ์คํฌ๋ฆฝํธ ์ค๋ช ์๊ฒฝ์ฐ ์ฃผ์์ผ๋ก ์งํ.
Step.
1. FiniteStateMachine ๊ตฌํ
2. ๊ฐ๋จํ ์ฌ์ฉ๋ฒ
FSM ๊ตฌํ
Summary.
IState ( FiniteState์ ๋ช ์ธ๋ฅผ ๋ด์ Interface )
FiniteState ( State ํด๋์ค )
FiniteStateMachine ( FSM ํด๋์ค )
IState.cs
FiniteState.cs
FiniteStateMachine.cs
์ ํ ์ํ ๊ธฐ๊ณ๋ผ๊ณ ํ๋ฉฐ, ํน์ ํ Input(event) ์ ๋ฐ๋ผ ํด๋นํ๋ state(output)์ผ๋ก ๋ณํํ๋ ๋ฐฉ๋ฒ๋ก . ๋ค์ํ ๋ถ์ผ(ํนํ ๊ฒ์)์ ์ฌ์ฉ๋์ด ์ง๊ณ ์์ผ๋ฉฐ ์ํ์ ๋ณํ์ ๋ฐ๋ฅธ ์ด๋ฒคํธ๋ฅผ ๋ฐ์์ํฌ์์์ผ๋ฏ๋ก ์ข๋ ์ ์ฐํ ๋ก์ง์ ๊ตฌ์ฑํ ์์๋ค. ์ด์ ์ ๊ฒ์ ์ ์์ ์ฌ์ฉํ๋ ํ์ฌ๋ ์ฌ์ฉํ๊ณ ์๋ FSM์ ๋ํด ์ ๋ฆฌ. ์คํฌ๋ฆฝํธ ์ค๋ช ์๊ฒฝ์ฐ ์ฃผ์์ผ๋ก ์งํ.
Step.
1. FiniteStateMachine ๊ตฌํ
2. ๊ฐ๋จํ ์ฌ์ฉ๋ฒ
FSM ๊ตฌํ
Summary.
IState ( FiniteState์ ๋ช ์ธ๋ฅผ ๋ด์ Interface )
FiniteState ( State ํด๋์ค )
FiniteStateMachine ( FSM ํด๋์ค )
IState.cs
interface IState<T>
{
void Enter();
void Excute();
void Exit();
T _StateID
{
get;
}
}FiniteState.cs
class FiniteState<T, U> : IState<U>
{
protected T entity;
public virtual void SetEntity(T entity)
{
this.entity = entity;
}
public virtual void Enter()
{
Console.WriteLine(typeof(T).ToString() + "Enter");
}
public virtual void Excute()
{
Console.WriteLine(typeof(T).ToString() + "Excute");
}
public virtual void Exit()
{
Console.WriteLine(typeof(T).ToString() + "Exite");
}
public virtual U _StateID
{
get
{
throw new ArgumentException("Exception");
}
}
}FiniteStateMachine.cs
class FiniteStateMachine<T, U>
{
private T entity; // State์ ์ฃผ์ฒด๊ฐ ๋๋ class
private Dictionary<U, FiniteState<T, U>> stateDic; // ์ ์ฒด State
private FiniteState<T, U> currentState; // ํ์ฌ ์ํ
private FiniteState<T, U> previousState; // ์ด์ ์ํ
/// <summary>
/// ์์ฑ์
/// </summary>
/// <param name="entity">์ฃผ์ฒด class</param>
public FiniteStateMachine(T entity)
{
this.entity = entity;
stateDic = new Dictionary<U, FiniteState<T, U>>();
}
public void ExcuteState()
{
if (currentState != null) currentState.Excute();
}
public void ChangeState(FiniteState<T, U> nextState)
{
if (currentState == nextState) return;
if(currentState != null)
{
currentState.Exit();
previousState = currentState;
}
currentState = nextState;
currentState.Enter();
}
public void ChangeState(U stateID)
{
try
{
FiniteState<T, U> state = stateDic[stateID];
ChangeState(state);
}
catch(KeyNotFoundException)
{
// exception ์ฒ๋ฆฌ
}
}
//์ด์ state๋ก ์ํ ๋๋๋ฆฌ๊ธฐ
public void RevertState()
{
if (previousState != null)
ChangeState(previousState);
}
public void AddState(FiniteState<T, U> state)
{
if (state == null) return;
state.SetEntity(entity);
stateDic.Add(state._StateID, state);
}
public void RemoveState(FiniteState<T, U> state)
{
stateDic.Remove(state._StateID);
}
}2015๋ 4์ 8์ผ ์์์ผ
Posted by ColaLib on ์คํ 8:24 with No comments
Summary.
- Boost Library๋? C++ STL์ ํฌํจ๋๊ธฐ์ ์ฒ ์ ํ ๋ฆฌ๋ทฐ๋ฅผ ๊ฑฐ์ณ ์คํ์ ์ธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ. ๋งค์ฐ ๊ด๋ํ ์์ญ์ ํ๊ณ ์์ผ๋ฉฐ ์ค์ ๋ก C++ STL ํ์ค์ ๋ง์ ๋ถ๋ถ์ด ํฌํจ๋์ด์ง๊ธฐ๋ํ๋ค.
๋๋ฌธ์, C++ ํ์ค์ ์ํฅ์ ๋ฏธ์น๊ธฐ๋ ํ๋ค.
Environment.
- Visual Studio 2013 Ultimate.
- Window 7 professional 64bit.
Step.
- 1. boost Library ๋ค์ด๋ก๋ , ์์ถํด์
- 2. Boost Lib ๋น๋
- 3. VS2013 property์ lib ์ถ๊ฐ.
How to used?.
1. boost Library ๋ค์ด๋ก๋ , ์์ถํด์
boost ํํ์ด์ง์ ์ ์ํ์ฌ boost lib ์์ถํ์ผ์ ๋ค์ด๋ก๋ ํ๋ค
์๋ฌด๊ณณ์๋ ์์ถํด์ ํ์ฌ ์์น์ํจ๋ค.
2.Boost Lib ๋น๋
- ์์ถ ํด์ ๋ ํด๋๋ด์ bootstrap.bat ๋ฐฐ์นํ์ผ์ ์คํํ๋ค.
- ๊ทธํ cmd๋ฅผ ์คํํ๋ค ํด๋น ํด๋๋ก ์ด๋ํ๊ณ b2ํ์ผ์ ์คํํ์ฌ ์ปดํ์ผ ํ๋ค.
- b2 toolset=msvc-12.0 --build-type=complete --abbreviate-paths architecture=x86 address-model=32 install -j4
- b2 : build boost
- msvs-12.0 : vs version
- j4 : 4 cores for parallel compilation ์ฌ์ฉ
- ์ดํ 20~30๋ถ ์ ๋์ ๋น๋ ์๊ฐ์ ๊ฑฐ์น ๋ค header ํ์ผ ๋ฐ lib ํ์ผ์ด ์์ฑ ๋๋ค.
- ๊ฒฝ๋ก : C:\Boost
3. VS2013 property์ lib ์ถ๊ฐ.
![]() |
| Project Properties ์ฐฝ์ ์ ํํ๋ค. |
![]() |
| Include Directories ์ C:\Boost\include ํด๋๋ฅผ ํฌํจ์ํจ๋ค. |
Reference.
- How to use boost in visual studio
More.
- ์ดํ boost ํค๋ํ์ผ์ ํฌํจ์ํค๋ฉด์ ์ฝ๋ฉ์ ์งํํ๋ฉด ๋๋ค. ๋ค๋ง link ๋จ๊ณ์์์ ์ข ์์ฑ์ด ์๊ตฌ๋๋ ๋ถ๋ถ์ ์ฌ์ฉํ ๊ฒฝ์ฐ ๋ฐ๋ก ์ค์ ํด์ผํ๋ ๋ถ๋ถ์ด ์์ผ๋ ๊ธฐ์ตํด๋๊ณ ์งํํ๋ค.(๋ ํผ๋ฐ์ค ์ฐธ๊ณ )
2015๋ 2์ 11์ผ ์์์ผ
Posted by ColaLib on ์คํ 5:40 with No comments
Explain.
- ์ด๋ฒ์ ํธ์ฌ์๋ฒ ๊ตฌํ ์งํ์ค AWS ํ์๊ฐ์ ์ FreeTier ๊ถํ์ผ๋ก 1๋ ๊ฐ ๋ฌด๋ฃ๋ก AWS๋ฅผ ์ฌ์ฉํ ์์๋์ ์ ๋ฐ๊ฒฌํด์ ์งํ. ์์ธํ๋ด์ฉ์ AWS ํํ์ด์ง ์ฐธ๊ณ . ํ๊ธ์ด๋ ์ผ๋ถ ์ง์ํ๋๊ฒ์ผ๋ก ๋ณด์ด๊ณ ๊ณ์ ๋ฒ์ญ ์งํ์ค์ธ๊ฒ์ผ๋ก ๋ณด์ฌ์ง.(๊ตฟ)
- ํ์๊ฐ์ ์๊ฒฝ์ฐ ํ๊ธ์ด๋ก ํผ์ ์ง์ํ๊ธฐ๋๋ฌธ์ ๋ฐ๋ก ์ ๋ฆฌํ์ง๋ ์์์ต๋๋ค.
![]() |
| 1.ํ์๊ฐ์
ํ ๋ก๊ทธ์ธ์ ๋ณผ์์๋ AWS์๋น์ค ํ๋ฉด EC2๋ฅผ ํ์ฉํ์ฌ ์๋ฒ๊ตฌํ์ ์งํํ ๊ฒ์ด๋ฏ๋ก EC2๋ฅผ ์ ํํ๋ค. |
![]() |
| 2. ๊ทธํ ์ธ์คํด์ค๋ฅผ ์ถ๊ฐํด์ผ๋๊ธฐ๋๋ฌธ์ ์ข์ธก์ ์ธ์คํด์ค ํด๋ฆญ. |
![]() |
| 3. ํ์ฌ ์คํ์ค์ธ ์ธ์คํด์ค๋ค์ ๋ณด์ฌ์ฃผ๋ ์ฐฝ์ด๋์ค๋๋ฐ ์๋จ์ Launch Instance๋ฅผ ์ ํ |
![]() |
| 4. OS ์ ํ. Amazon Linux๋ฅผ ์ ํํ์ฌ ์งํ.(๋ค๋ฅธ์ด์์ฒด์ ๋ฅผ ์ ํํ์ ๋ ๋ฌด๋ฐฉํฉ๋๋ค.) |
![]() |
| 5. Instance type์ ์ ํํ๋ ๋ถ๋ถ์ธ๋ฐ free tier์ฉ ํ์
(t2.micro) ์ ํ ํ Next |
์ฌ๊ธฐ๊น์ง ์งํํ์ ๊ฒฝ์ฐ 3๋ฒ์ ํ๋ฉด์์ ์์ฑ๋ ์ธ์คํด์ค์ ์ํ์ ์ ๋ณด๋ฅผ ๋ณผ์์์ต๋๋ค.
๋ค์ํฌ์คํ ์์๋ AWS์ LAMP ํ๊ฒฝ ๊ตฌ์ถํ๋๊ฒ์ ์งํ.
Posted by ColaLib on ์คํ 5:02 with No comments
Summary.
-AWS(Amazon Web Services) EC2๋ฅผ ํ์ฉํ์ฌ ์๋๋ก์ด๋ ํธ์ฌ์๋ฒ ๊ตฌํ ๋ด์ฉ ์ ๋ฆฌ.
Server.
-EC2(Amazon Linux) + Apche + php + mysql ๋ก ๊ตฌ์ฑ.(LAMP)
Step.
1. AWS ๊ณ์ ์์ฑ ๋ฐ AWS EC2 Instance ์์ฑ.
2. EC2 Instance ์
ํ
๋ฐ LAMP ํ๊ฒฝ ์
ํ
.
3. ์๋๋ก์ด๋ ํธ์ฌ ์๋ฒ ๊ตฌํ.
4. ์๋๋ก์ด๋ ํธ์ฌ ํด๋ผ์ด์ธํธ(apk) ์์ฑ ๋ฐ ํ
์คํธ.
Environment.
- Window 7
- Eclips
- Sublime Text 3 SFTP
- Filezlia
- Putty
2015๋ 1์ 29์ผ ๋ชฉ์์ผ
Posted by ColaLib on ์คํ 10:51 with No comments
Summary.
-C#ํ๊ฒฝ(.net)์์ ์ฌ์ฉํ ์์๋ HtmlAgilityPack์ ํ์ฉํ์ฌ Web์์ Html๋ฐ์ดํฐ ๋ฐ์์ค๋ ์ฝ๋.
Requirements.
-HtmlAgilityPack Library
: VS ๋ด์ NuGet Pakage Manager๋ฅผ ํตํด ์ค์นํ ์ ์๋ค.
Code.
class HtmlLoader
{
public enum State
{
Working,
End
}
string mURL;
HtmlDocument mDocument;
State mState;
Action mCallback;
Encoding mEncoding;
public HtmlLoader(string url, Encoding enc , Action callback)
{
this.mURL = url;
this.mState = State.End;
this.mCallback = callback;
this.mEncoding = enc;
}
//์๋ก์ด ์ค๋ ๋๋ฅผ ์์ฑํ์ฌ ์คํ.
public void LoadWithThread()
{
if (mState == State.Working) return;
Thread thraed = new Thread(new ThreadStart(LoadHtml));
thraed.Start();
}
//ํธ์ถํ ์ค๋ ๋์์์ ๋ฐ๋ก ์คํ.
public void Load()
{
if (mState == State.Working) return;
LoadHtml();
}
void LoadHtml()
{
mState = State.Working;
mDocument = new HtmlDocument();
HtmlWeb website = new HtmlWeb();
StreamReader reader = new StreamReader(WebRequest.Create(mURL).GetResponse().GetResponseStream(), mEncoding);
mDocument.Load(reader);
mCallback();
mState = State.End;
}
public HtmlDocument _Document
{
get { return mDocument; }
}
}
Use.
string url = textBox1.Text;
loader = new HtmlLoader(url,
Encoding.GetEncoding("euc-kr"),
new Action(() =>
System.IO.File.WriteAllText("web.txt", loader._Document.DocumentNode.InnerText)
));
loader.LoadWithThread();
์ดํ ์์ฑ๋๋ web.txtํ์ผ์ ํ์ธํ ์์๋ค.
2014๋ 11์ 6์ผ ๋ชฉ์์ผ
Posted by ColaLib on ์คํ 8:46 with No comments
Explain.
IOS ์์ Screen Captureํ ์ด๋ฏธ์ง๋ฅผ Social.framework๋ฅผ ํ์ฉํ์ฌ ๊ณต์ ํ๋ ๋ฐฉ๋ฒ์ ๋ฆฌ.
Sequence.
1. Application.CaptureScreenShot() ์ผ๋ก ์บก์ณ์งํ.
2. ์์ ์ด๋ฏธ์ง๋ฅผ ๊ฐ์ง๊ณ IOS์ social.framwork๋ฅผ ํ์ฉํ์ฌ ์์ด์งํ.
In Xcode
์๋ 2ํ์ผ[SocialHelper.h , mm]์ ํ์ฌ ํ๋ก์ ํธ์ Plugin/IOS ์์น ์ํจ๋ค.SocialHelper.h
#import <Foundation/Foundation.h>
@interface SocialHelper : NSObject
{
}
+(void)ImageToTwitter:(NSString*)filePath;
+(void)ImageToFaceBook:(NSString*)filePath;
@end
SocialHelper.mm
#import "SocialHelper.h"
#import <Social/Social.h>
#import <UIKit/UIKit.h>
#import <UnityAppController.h>
#pragma mark - Unity methods
@implementation SocialHelper
+ (void) ImageToTwitter:(NSString *) filePath
{
UIViewController *rootViewController = [GetAppController() rootViewController];
UIImage *image = [UIImage imageWithContentsOfFile:filePath];
if([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]){
SLComposeViewController *mySLComposeSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
[mySLComposeSheet setInitialText:@"Let's Play Together!"];
[mySLComposeSheet addImage:image];
[mySLComposeSheet addURL:[NSURL URLWithString:@"https://myurl.com"]];
[mySLComposeSheet setCompletionHandler:^(SLComposeViewControllerResult result) {
switch (result) {
case SLComposeViewControllerResultCancelled:
NSLog(@"Twtitter - POST Cancel");
break;
case SLComposeViewControllerResultDone :
NSLog(@"Twitter - Post Success");
break;
default:
break;
}
}];
[rootViewController presentViewController:mySLComposeSheet animated:YES completion:nil];
}
}
+ (void) ImageToFaceBook:(NSString *) filePath
{
UIViewController *rootViewController = [GetAppController() rootViewController];
UIImage *image = [UIImage imageWithContentsOfFile:filePath];
if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]){
SLComposeViewController *mySLComposeSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
[mySLComposeSheet setInitialText:@"Let's Play Together!"];
[mySLComposeSheet addImage:image];
[mySLComposeSheet addURL:[NSURL URLWithString:@"https://myurl.com"]];
[mySLComposeSheet setCompletionHandler:^(SLComposeViewControllerResult result) {
switch (result) {
case SLComposeViewControllerResultCancelled:
NSLog(@"Facebook - POST Cancel");
break;
case SLComposeViewControllerResultDone :
NSLog(@"Facebook - Post Success");
break;
default:
break;
}
}];
[rootViewController presentViewController:mySLComposeSheet animated:YES completion:nil];
}
}
extern "C" {
void PostImageToTwitter(const char * filePath)
{
NSLog(@"Share Iamge Path : %@", [NSString stringWithUTF8String:filePath]);
[SocialHelper ImageToTwitter:[NSString stringWithUTF8String:filePath]];
}
void PostImageToFacebook(const char * filePath)
{
NSLog(@"Share Iamge Path : %@", [NSString stringWithUTF8String:filePath]);
[SocialHelper ImageToFaceBook:[NSString stringWithUTF8String:filePath]];
}
}
@end
In Unity
using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;
public enum SocialType : int
{
Twitter,
Facebook
}
public class SocialHelper : MonoBehaviour
{
public static IEnumerator PostImage(SocialType type)
{
string fileName = getCaptureFileName();
Application.CaptureScreenshot(fileName);
yield return new WaitForSeconds(1.0f);
if (type == SocialType.Facebook)
PostImageToFacebook(string.Format("{0}/{1}", Application.persistentDataPath, fileName));
if (type == SocialType.Twitter)
PostImageToTwitter(string.Format("{0}/{1}", Application.persistentDataPath, fileName));
}
static string getCaptureFileName()
{
return string.Format("capture_{0}.png", System.DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss"));
}
[DllImport("__Internal")]
static extern void PostImageToTwitter(string filePath);
[DllImport("__Internal")]
static extern void PostImageToFacebook(string filePath);
}
SocialHelper.PostImage(SocialType.Facebook); // ์ดํ ์ด๋ฐ์์ผ๋ก ๋ฉ์๋๋ฅผ ํธ์ถ์ ๊ณต์ ๊ฐ ์งํ.
Reference.
IOS ์์ Screen Captureํ ์ด๋ฏธ์ง Camera Roll์ ๋ฑ๋กํ๊ธฐ.
Social.Framework
2014๋ 10์ 31์ผ ๊ธ์์ผ
Posted by ColaLib on ์ค์ 4:28 with 2 comments
Explan.
IOS์์ Application.CaptureScreenShot(path) ๋ฉ์๋๋ฅผ ์ฌ์ฉํ ๊ฒฝ์ฐ
์บก์ฒ๋ ์งํ๋๋ ํด๋น app ์ documentํด๋๋ก ๋ค์ด๊ฐ์ ์นด๋ฉ๋ผ ๋กค์์ ํ์ธํ ์๊ฐ ์๋ค.
์ด๋ฅผ ๋ฑ๋กํด์ฃผ๋ ๋ฐฉ๋ฒ ํฌ์คํ .
CaptureHelper.h
#import <Foundation/Foundation.h> @interface CaptureHelper : NSObject +(CaptureHelper *)sharedInstancs; @endCaptureHelper.mm
#import "CaptureHelper.h"
static CaptureHelper * captureHelper = [CaptureHelper sharedInstancs];
@implementation CaptureHelper : NSObject
+ (void)initialize{
if(captureHelper == nil)
captureHelper = [[CaptureHelper alloc] init];
}
+ (CaptureHelper *)sharedInstancs{
return captureHelper;
}
- (id)init{
if(captureHelper != nil){
return captureHelper;
}
self = [super init];
if(self){
captureHelper = self;
}
return self;
}
- (NSString *)getDocumentDirectory {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
return [paths objectAtIndex:0];
}
@end
extern "C"{
void CaptureToCameraRoll(const char *fileName)
{
NSString *file = [NSString stringWithUTF8String:(fileName)];
NSString *filePath = [[captureHelper getDocumentDirectory] stringByAppendingString:file];
UIImage *image = [[UIImage alloc] initWithContentsOfFile:filePath];
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil);
}
}
์ 2๊ฐ์ ํ์ผ์ ์์ฑํ Plugin/IOS ํด๋์ ์์น ๊ทธํ
how to used.
[DllImport("__Internal")]
public static extern void CaptureToCameraRoll(String fileName);
// ๊ทธ์ดํ ์คํฌ๋ฆฐ ์บก์ฒ ์งํ์.
Application.CaptureScreenShot(path);
CaptureToCameraRoll(string.Format("/{0}",path));
์ดํ ์นด๋ฉ๋ผ๋กค์์ ์บก์ณ๋ ์ด๋ฏธ์ง๋ฅผ ํ์ธํ์ค์ ์๋ค.
2014๋ 10์ 1์ผ ์์์ผ
Posted by ColaLib on ์คํ 11:45 with No comments
Explain.
Visual Studio๋ฅผ ์ฌ์ฉํ ๊ฒฝ์ฐ snippetํ์ผ์ ์ง์ ๋ง๋ค์ด์ ์ ์ฉ.
Snippet์ ์ ์ฉํ์ฌ ์์ ํ๋ ์ด์ ๋ ๋ชจ๋ ์คํฌ๋ฆฝํธ์ ์ ์ฒด์ ์ผ๋ก ํต์ผ๋ ๋์์ธ์ ์ ์ฉํ๊ณ ๋ฐ๋ณต๋์ด์ง๋ ์์ ์ ์ต์ํ ์์ผ์ค.
How to use.
์๋์ฒ๋ผ xmlํ์์ผ๋ก snippet ํ์ผ์ ์์ฑํ ์ ์ฅ(*.snippet)์ผ๋ก ์ ์ฅ ํ์ฌ์ผ ํ๋ค.
(์๋ ํ์์ ์ ๊ฐ ์ฌ์ฉํ๋(unity)์์ ํ์์ด๊ณ ๋ด์ฉ์ ํ์ํ๋๋ก ํธ์งํ์ฌ ์ฌ์ฉํ์๋ฉด๋ฉ๋๋ค.)
์ ์ฅ๊ฒฝ๋ก : Users\User\Documents\Visual Studio XXXX\Code Snippets\Visual C#\My Code Snippets
๊ทธ ์ดํ
ํ๋ก์ ํธ์์ ์ฐํด๋ฆญ-> Insert Code Snippet -> My Code Snippet -> ํด๋น Snippet ์ ํ
ํด์ฃผ์๋ฉด snippet์ด ์ง ํ๊ณ ๋ํ๋๋๊ฒ์ ๋ณด์ค์ ์์ต๋๋ค.
ctrl + K + X๊ฐ Hotkey์ด๋ ์ ์ฉํ์๋ฉด ๋ ๋ฏํฉ๋๋ค. -End.
Visual Studio๋ฅผ ์ฌ์ฉํ ๊ฒฝ์ฐ snippetํ์ผ์ ์ง์ ๋ง๋ค์ด์ ์ ์ฉ.
Snippet์ ์ ์ฉํ์ฌ ์์ ํ๋ ์ด์ ๋ ๋ชจ๋ ์คํฌ๋ฆฝํธ์ ์ ์ฒด์ ์ผ๋ก ํต์ผ๋ ๋์์ธ์ ์ ์ฉํ๊ณ ๋ฐ๋ณต๋์ด์ง๋ ์์ ์ ์ต์ํ ์์ผ์ค.
How to use.
์๋์ฒ๋ผ xmlํ์์ผ๋ก snippet ํ์ผ์ ์์ฑํ ์ ์ฅ(*.snippet)์ผ๋ก ์ ์ฅ ํ์ฌ์ผ ํ๋ค.
(์๋ ํ์์ ์ ๊ฐ ์ฌ์ฉํ๋(unity)์์ ํ์์ด๊ณ ๋ด์ฉ์ ํ์ํ๋๋ก ํธ์งํ์ฌ ์ฌ์ฉํ์๋ฉด๋ฉ๋๋ค.)
์ ์ฅ๊ฒฝ๋ก : Users\User\Documents\Visual Studio XXXX\Code Snippets\Visual C#\My Code Snippets
๊ทธ ์ดํ
ํ๋ก์ ํธ์์ ์ฐํด๋ฆญ-> Insert Code Snippet -> My Code Snippet -> ํด๋น Snippet ์ ํ
ํด์ฃผ์๋ฉด snippet์ด ์ง ํ๊ณ ๋ํ๋๋๊ฒ์ ๋ณด์ค์ ์์ต๋๋ค.
ctrl + K + X๊ฐ Hotkey์ด๋ ์ ์ฉํ์๋ฉด ๋ ๋ฏํฉ๋๋ค. -End.
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>#Classregion</Title>
<Shortcut>#Classregion</Shortcut>
<Description>Code snippet for #Classregion</Description>
<Author>Author Name</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
<SnippetType>SurroundsWith</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>name</ID>
<ToolTip>Region name</ToolTip>
<Default>MyRegion</Default>
</Literal>
</Declarations>
<Code Language="csharp">
<![CDATA[
#region -------Public Field-------
$selected$ $end$
#endregion
#region -------Private Field-------
$selected$ $end$
#endregion
#region -------Default Method-------
$selected$ $end$
#endregion
#region -------Public Method-------
$selected$ $end$
#endregion
#region -------Private Method-------
$selected$ $end$
#endregion
#region -------Property-------
$selected$ $end$
#endregion
]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>2014๋ 9์ 24์ผ ์์์ผ
Posted by ColaLib on ์ค์ 12:15 with No comments
Explain.
์์ GPGSํ์ฉ์์ํ ์ ํ ๊น์ง ์๋ฃํ๊ฒฝ์ฐ
Unity Project์์ GPGS์ ๊ธฐ๋ณธ์ ์ ๊ธฐ๋ฅ(์ ์ , ๋ฆฌ๋๋ณด๋)๋ฅผ ํ์ฉํ๊ธฐ์ํ Class ์์ฑ.
์๋ ๋ฐฉ๋ฒ์ ์ฌ๋ฌ๊ฐ์ง ๋ฐฉ๋ฒ์ค ํ๋์ด๋ฏ๋ก ํ๋ก์ ํธ ์ํฉ์ ๋ง๊ฒ๋ ๊ตฌํํ์ฌ ์ฌ์ฉํ๋ฉด ๋ฉ๋๋ค.
![]() |
| 1. Google Game service์ ๋ฆฌ๋๋ณด๋,์
์ ์ ๊ฒฝ์ฐ Id๊ฐ์ ๊ธฐ์ค์ผ๋ก ์คํ์ด ์ด๋ค์ง๋ฏ๋ก Developer Console์ ์ ์ ,๋ฆฌ๋๋ณด๋์์ Get Resources๋ฅผ ํด๋ฆญํ์ฌ ID๊ฐ์ ๋ณต์ฌ |
![]() |
| 2.์ ์ฒ๋ผ ํ ์คํธ ํ์์ผ๋ก Exportํ์ฌ ๋ณต์ฌํ์ฌ ๋ก๋๋ค. |
์ดํ ์๋์ฒ๋ผ GPGS Manager Class๋ฅผ ์์ฑํ ๋ค Scene์ ๋ฐฐ์นํ
์ด๋ฒคํธ ๊ด๋ จ ๋์์(๊ฒ์์ข ๋ฃ)
์ ์ ,๋ฆฌ๋๋ณด๋๊ด๋ จ ๋ฉ์๋๋ฅผ ํธ์ถํ์ฌ ๋์์ ํ์ธํด ๋ณด์ค์์์ต๋๋ค.
๋ฆฌ๋๋ณด๋ , ์ ์ ํ์ธ ๊ด๋ จ UIํธ์ถ์
ShowLeaderBoard, ShowArchievement
๋ฉ์๋๋ฅผ ํธ์ถํ์ฌ ํ์ธ๊ฐ๋ฅ.
์ด์์ผ๋ก GPGS์ ๊ธฐ๋ณธ์ ์ธ ๊ธฐ๋ฅ๋ค ํ์ฉ๋ฐฉ๋ฒ ํฌ์คํ ๋ง์น๊ฒ ์ต๋๋ค.
์ด๋ฒคํธ ๊ด๋ จ ๋์์(๊ฒ์์ข ๋ฃ)
์ ์ ,๋ฆฌ๋๋ณด๋๊ด๋ จ ๋ฉ์๋๋ฅผ ํธ์ถํ์ฌ ๋์์ ํ์ธํด ๋ณด์ค์์์ต๋๋ค.
๋ฆฌ๋๋ณด๋ , ์ ์ ํ์ธ ๊ด๋ จ UIํธ์ถ์
ShowLeaderBoard, ShowArchievement
๋ฉ์๋๋ฅผ ํธ์ถํ์ฌ ํ์ธ๊ฐ๋ฅ.
์ด์์ผ๋ก GPGS์ ๊ธฐ๋ณธ์ ์ธ ๊ธฐ๋ฅ๋ค ํ์ฉ๋ฐฉ๋ฒ ํฌ์คํ ๋ง์น๊ฒ ์ต๋๋ค.
using UnityEngine;
using System.Collections;
using GooglePlayGames;
using UnityEngine.SocialPlatforms;
public class GPGSManager : MonoBehaviour {
private static GPGSManager sInstance;
public static GPGSManager GetInstance
{
get
{
if(sInstance == null) sInstance = this;
return sInstance;
}
}
void Start()
{
init();
}
void init()
{
PlayGamesPlatform.DebugLogEnabled = true;
PlayGamesPlatform.Activate();
Social.localUser.Authenticate((bool success) =>
{
if (success) Debug.Log("Sign in Success");
else Debug.Log("Sign in Fail");
});
}
public void PostScore(float time)
{
Social.ReportScore((long)(time * 1000), IDs.LB, (bool success) => {
if (success) Debug.Log("Post Success");
else Debug.Log("Post Fail");
});
}
public void ProgessiveAchievement(AchievementType type, int value)
{
if (type == AchievementType.PlayCount)
{
//TODO : ์
์ ์ํฉ ๋ฌ์ฑ์ postAchievement(์
์ ID);
}
if(type == AchievementType.PlayTime)
{
//TODO : ์
์ ์ํฉ ๋ฌ์ฑ์ postAchievement(์
์ ID);
}
}
public void ShowLeaderboard()
{
Social.ShowLeaderboardUI();
}
public void ShowAchievement()
{
Social.ShowAchievementsUI();
}
private void postAchievement(string key)
{
if (PlayerPrefs.GetInt(key) == (int)AchievementState.UNLOCK) return;
Social.ReportProgress(key, 100, (bool success) => {
if (success)
{
PlayerPrefs.SetInt(key, (int)AchievementState.UNLOCK);
}
});
}
}
// ์
์ , ๋ฆฌ๋๋ณด๋ ID Class
public class IDs
{
public const string LB = ""; // ๋ฆฌ๋๋ณด๋ ID
//TODO : ์
์ ID ์ถ๊ฐ.
}
public enum AchievementType
{
PlayCount,
PlayTime
}
public enum AchievementState
{
LOCK,
UNLOCK
}
2014๋ 9์ 23์ผ ํ์์ผ
Posted by ColaLib on ์ค์ 3:04 with No comments
Notice.
- ์ด์ ์ ํฌ์คํ ์์์ ์ค๋น์ฌํญ์ด ๋ชจ๋ ์ค๋น๋ ์ํ์์ ์งํ. (์ค๋น์ฌํญ)
- Developer console์ฌ์ฉ๋ฒ๋ฑ์ ๊ธฐํ ๋ฐฉ๋ฒ์ ์์ธํ๊ฒ ์ ๋ฆฌX
| 1. GPGS์ ์ฐ๋ํ application ๋ฑ๋ก. |
| 2.Game Service ๋ํ ๋ฑ๋ก. |
![]() |
| 3.Game Service ๋ฑ๋ก์ ์ถ๋ ฅ๋๋ Application ID๊ฐ ๋ณต์ฌ. |
![]() |
| 4.Unity ํ๋ก์ ํธ์ Google Play Service Plugin Importํ ๋ฉ๋ด๋ฐ์ Google Play Services -> Android Setup ์คํ ์์์ ๋ณต์ฌํด๋ ID๊ฐ ์ ๋ ฅ -> Setup ๋ฒํผ ํด๋ฆญ |
![]() |
| 6. ๊ฒ์์์ ์ฌ์ฉํ ๋ฆฌ๋๋ณด๋ ๋ํ ๋ฑ๋ก. ์ต์ 1๊ฐ ์ด์. |
์ฌ๊ธฐ๊น์ง ์งํํ์๊ฒฝ์ฐ ๊ธฐ๋ณธ์ ์ผ๋ก GPGS Plugin์ ํ์ฉํ์ฌ
์
์ ,๋ฆฌ๋๋ณด๋ ๊ธฐ๋ฅ์ ํ์ฉํ ์ ์๊ฒ๋ ์
ํ
์ด ์๋ฃ๋ ์ํ์ด๋ค.
Very Easy..
์ดํ ๋ฆฌ๋๋ณด๋,์
์ ํ์ฉ๋ฒ์ ๋ํด ์ ๋ฆฌํ๊ฒ ์ต๋๋ค.
2014๋ 9์ 3์ผ ์์์ผ
Posted by ColaLib on ์คํ 11:50 with No comments
Summary.
- Anroid & IOS App ์์ ์งํ์ ๊ฐ์ข ๊ฒ์ ๊ด๋ จ ๊ธฐ๋ฅ๋ค์ ์ ๊ณตํด์ฃผ๋ ํ๋ซํผ์ค
- Anroid & IOS App ์์ ์งํ์ ๊ฐ์ข ๊ฒ์ ๊ด๋ จ ๊ธฐ๋ฅ๋ค์ ์ ๊ณตํด์ฃผ๋ ํ๋ซํผ์ค
๊ฐ์ฅ ๋๋ฆฌ ์๋ ค์ง Google play game service๋ฅผ Unity์์ ํ์ฉํ๋ ๊ธฐ๋ณธ๋ฐฉ๋ฒ ํฌ์คํ
.
- GPGS์๊ฒฝ์ฐ ๊ธฐ๋ณธ์ ์ ๋ฆฌ๋๋ณด๋ , ์ ์ ๋ฑ์ ๊ธฐ๋ฅ ์ธ์๋ Multiplay, cloud game save ๋ฑ์ ๊ธฐ๋ฅ๊น์ง ์ ๊ณตํด์ฃผ๋ฏ๋ก ์ฌ๋ฌ๊ฐ์ง ๋ฐฉ๋ฉด์ผ๋ก ์ ์ฉํ ํ๋ซํผ.
- GPGS์๊ฒฝ์ฐ ๊ธฐ๋ณธ์ ์ ๋ฆฌ๋๋ณด๋ , ์ ์ ๋ฑ์ ๊ธฐ๋ฅ ์ธ์๋ Multiplay, cloud game save ๋ฑ์ ๊ธฐ๋ฅ๊น์ง ์ ๊ณตํด์ฃผ๋ฏ๋ก ์ฌ๋ฌ๊ฐ์ง ๋ฐฉ๋ฉด์ผ๋ก ์ ์ฉํ ํ๋ซํผ.
Requirements.
- Unity 4.3 ์ด์(only Pro)
- Android SDK
- Google Play Services library 4.2.42 ์ด์ (SDK Manager์์ ์ค์น ๊ฐ๋ฅ)
- Google Developer ๊ณ์ (ํ ์คํธ์ฉ์ผ๋ก ์งํํ App ๋ฑ๋ก)
- GPGS Plugin ์ต์ ๋ฒ์ - ๋ค์ด๋ก๋
Index
-step 0 : ์ค๋น ์ฌํญ
-step 1 : GPGS Plugin ์ค์นํ ๊ธฐ๋ณธ์ ์ธ ์๊ตฌ์ฌํญ ์ ํ
-step 2 : GPGS Plugin ํ์ฉ์ ์ํ Manager Class ์์ฑ ํ ์ฌ์ฉ
์ด๋ฒ ํฌ์คํ ์ ์ฌ๊ธฐ๊น์ง ์์ฃผ ๊ธฐ๋ณธ์ ์ธ ๊ธฐ๋ฅ๋ค๋ฉด ์ ๋ฆฌํ ์๊ฐ ์ถํ ๋ฉํฐํ๋ ์ด , ํด๋ผ์ฐ๋ ๊ฒ์ ์ธ์ด๋ธ ๋ฑ์ ๊ธฐ๋ฅ๋ ์ ๋ฆฌ ํ ์์ .
- Google Developer ๊ณ์ (ํ ์คํธ์ฉ์ผ๋ก ์งํํ App ๋ฑ๋ก)
- GPGS Plugin ์ต์ ๋ฒ์ - ๋ค์ด๋ก๋
Index
-step 0 : ์ค๋น ์ฌํญ
-step 1 : GPGS Plugin ์ค์นํ ๊ธฐ๋ณธ์ ์ธ ์๊ตฌ์ฌํญ ์ ํ
-step 2 : GPGS Plugin ํ์ฉ์ ์ํ Manager Class ์์ฑ ํ ์ฌ์ฉ
์ด๋ฒ ํฌ์คํ ์ ์ฌ๊ธฐ๊น์ง ์์ฃผ ๊ธฐ๋ณธ์ ์ธ ๊ธฐ๋ฅ๋ค๋ฉด ์ ๋ฆฌํ ์๊ฐ ์ถํ ๋ฉํฐํ๋ ์ด , ํด๋ผ์ฐ๋ ๊ฒ์ ์ธ์ด๋ธ ๋ฑ์ ๊ธฐ๋ฅ๋ ์ ๋ฆฌ ํ ์์ .
ํผ๋ ๊ตฌ๋
ํ๊ธฐ:
๊ธ (Atom)














