본문 바로가기

#DevStudy34

UE4 - 컨트롤 가능한 오브젝트 만들기 유니티에서는 GameObject 하나로 다 퉁쳤지만 언리얼에서는 용도에 따라 미리 세팅된 액터 타입이 존재한다. 액터 Actor 유니티의 GameObject와 비슷. 가장 기본이 되는 형태. 폰 Pawn 컨트롤러에 의해 플레이어나 AI가 제어 가능한 액터. 캐릭터 Character 이족 보행 아바타로 디자인된 복잡한 형태의 폰. 컨트롤 가능한 오브젝트를 만들려면 최소한 폰을 사용해야 한다. 목표는 직접 컨트롤 할 수 있는 폰을 만들어보자. 아래 유튜브 영상을 보고 따라하였다. https://www.youtube.com/watch?v=vQsOIGWRdXQ 영상에서의 목표는 아래와 같은 동작을 하는 오브젝트를 만드는 것이다. W, S : 앞뒤 이동 A, D : 좌우 이동 G : 누르고 있으면 커짐. 떼고 있.. 2020. 1. 4.
UE4 - 로그 남기기 출력 로그에 로그 남기기 UE_LOG(LogTemp, Warning, TEXT("Log Test")); 카테고리, 로그유형, 내용 게임 좌상단에 로그 남기기 GEngine::AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT("TETTETE")); 고유Key, 지속시간, 글자색, 내용 (고유Key가 -1이면 계속 쌓음.) 2020. 1. 3.
[Baekjoon] 9625 - BABBA https://www.acmicpc.net/problem/9625 피보나치 문제.ABBA = B + ABAB = BA + BBABBA = BAB + BA.... 123456789101112131415161718192021222324252627282930313233#include #include #include #define MAX 50int countA[MAX];int countB[MAX]; int main() { int count; scanf("%d", &count); memset(countA, 0, sizeof(int) * MAX); memset(countB, 0, sizeof(int) * MAX); countA[2] = 1; countB[1] = 1; countB[2] = 1; for(int i =.. 2016. 10. 13.
[Baekjoon] 1932 - 숫자삼각형 https://www.acmicpc.net/problem/1932 12345678910111213141516171819202122232425262728293031323334353637383940414243#include #include #include #define MAX 501 int max(int a, int b){ return a > b ? a : b;} int main() { int count; int sum[MAX]; int prevSum[MAX]; int result = 0; scanf("%d\n", &count); // init memset(sum, 0, sizeof(int) * MAX); memset(prevSum, 0, sizeof(int) * MAX); for(int i = 1; i 2016. 10. 12.
[Baekjoon] 2579 - 계단오르기 https://www.acmicpc.net/problem/2579 123456789101112131415161718192021222324252627282930313233#include #include int stairCount;int stairScore[300]; int totalScore[300]; int max(int a, int b){ return a > b ? a : b;} int main() { scanf("%d\n", &stairCount); for(int i = 0; i 2016. 10. 11.
[Baekjoon] 1149 - RGB https://www.acmicpc.net/problem/1149 [재귀함수 활용]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354#include #include int houseCount;int houseColor[1000][3]; int min(int a, int b){ return a > b ? b : a;} int GetPaintCost(int n, int color){ if(n == houseCount) return 0; // 다음 위치 색상을 정해야 한다. // 내 색이 아닌 것 중에 고른다. int cost = 0; if(color == 0) cost = min(G.. 2016. 10. 11.