[ 저의 아이디는 중학생 때 했던 데브캣 스튜디오의 마비노기에서 따왔습니다 ]
[ My ID is from Mabinogi in Devkat studio in junior high school]
안녕하세요? 도적코볼트에요!
벌써 다섯 번째 게임 개발 일지입니다. 오늘 개발 일지는 저번 글에서 마지막 부분에 적어놨던 세포자동자( Cellular Automata )를 이용한 랜덤 맵 생성입니다.
오토마타라는 것은 상태를 가지고 있는 기계라고 보시면 됩니다. 어떤 시간에 하나의 상태만 가지고 있는 것들을 오토마타라고 합니다. 이런 오토마타 중에서 저는 랜덤 맵을 만들기 위해서 ' 세포자동자' 라고 하는 셀룰러 오토마타를 이용했어요!
Good morning? It's a thief kobold!
It is already the fifth game development journal. Today's development journal is a random map generation using Cellular Automata that I wrote in the last part of the article.
Automata are machines that have state.
Those that have only one state at any time are called automata. Among these automata, I used cellular automata to create a random map!
[ 세포자동자를 이용해서 만든 예시 1 ]
[Example made using cellular automata 1]
[ 세포자동자를 이용해서 만든 예시 2]
[Example 2 made using cellular automata 2]
아마도 이쪽 계통에 계시지 않은 분들께서는 조금은 이상하게 보이실 거에요. ( 사실 저도 이상하게 보여요. )
간단하게 설명드리면 바둑판처럼 생긴 각 네모 칸들이 주변의 상태에 영향을 받아서 다른 모습으로 변하는 거에요!
Maybe it's a little strange for those who are not on this line. (Actually, I look strange.)
Simply put, each square that looks like a checkerboard is affected by the state of the surroundings and changes to another shape!
[ 변화하고 있는 셀룰러 오토마타 ]
[ Changing Cellular Automata]
이런 ' 세포 자동자 ' 를 이용해서 게임 쪽에서 랜덤한 맵을 만드는데 사용할 수 있습니다!
You can use this cellular automata to make a random map on the game side!
[ 만들어진 랜덤 맵 ]
[Random map created]
위에 있는 gif의 경우 제가 세포 자동자를 이용해서 만든 랜덤맵입니다. 맵을 만들 때마다 다른 맵이 나오게 되는 것을 확인하실 수 있습니다.
약간 동굴같은 모양이죠? 여러가지 랜덤 맵을 만드는 방식이 존재하는데 동굴 형태의 랜덤 맵을 만들 때 그 분위기나 모습을 적절한 이미지와 함께 만든다면 동굴 느낌이나는 컨셉을 충분히 살릴 수 있습니다.
이렇게 만들어진 랜덤 맵 위에 플레이어를 위치시키고 이동시킨다면..
In the case of the gif above, I am a random map made by using cellular automata. You can see that each time you create a map, another map will come out.
It looks like a little cave, right? There is a way to create various random maps. When you create a cave-like random map, if you create the mood or shape with the proper image, you can fully utilize the cave feeling or concept.
If you place the player on the random map and move it ...
이렇게 저번에 포스팅했던 전장의 안개효과와 함께 섞이게 된다면 마치 랜덤으로 만들어진 곳을 모험할 수 있습니다.
( 인디 게임 개발 #4 ( Indie Game Dev #4 ): 전장의 안개 효과 구현 ( Making Fog of War system )
( @krdoko/4-indie-game-dev-4-making-fog-of-war-system )
마지막에는 전장의 안개효과를 끈 상태에서 개발할 때 사용하는 뷰를 이용해서 전체 맵을 확인해 봤습니다.
하지만 아쉽게도 아직 랜덤 맵이 게임에서 기능적으로 사용되기 위해서는 많이 부족한 상태입니다. 조금 더 다듬어서 " 방 " 의 개념을 만들어야 하거든요. 어떠한 아이템을 파는 상점 " 방 " , 보스 몬스터가 있는 보스 " 방 " 과 같은 것을 만들기 위해서는 조금 더 처리를 해야합니다.
그래서 다음 포스팅은 현재 만들어진 랜덤 한 맵을 다듬어서 " 방 "을 만들겠습니다. 그리고 현재 전체 맵을 보신다면
If you mix it with the fog effects of the battlefield you posted last time, you can venture out of random places.
At last, I checked the entire map using the view I used when I developed the fog effect on the battlefield.
Unfortunately, there is still a shortage of random maps to make them functional in games. I have to make a little more refinement to make the concept of "room". Shop "room" to sell any item, boss with boss monster To make things like "room", you have to do a little more processing.
So the next posting is to create a "room" by trimming the random map that is currently created. And if you look at the entire map now
[ 빨간 색 네모, 파란색 네모 동 떨어진 맵 ]
[Red square, blue square seperated map ]
빨간색으로 친 네모와 파란색으로 친 네모가 동떨어져 있습니다. 이러면 다른 지형으로 이동을 하지 못하게 되겠죠. 이렇게 떨어져 있는 것들을 이어주도록 하겠습니다.
The red square and the blue square are separated. This will prevent you from moving to other terrain. I will keep these things apart.
[ 행복하냐? ]
[Are you happy? ]
항상 포스팅하는 시간대가 새벽대라 그런가.. 많은 분들이 보지는 못하시는 것 같아요. 굉장히 아쉬운 것 같습니다. 낮에는 보통 게임 개발하는 것을 트위치(Twitch)에서 방송하면서 개발하고 있기 때문에 글 쓰기가 참 애매하거든요. 그러다보니 낮에는 작업을 하고 밤에 글을 쓰다보니까... 언제나 새벽인 것 같습니다. 좀 더 많은 분들께서 보잘 것 없는 게임이지만.. 봐주셨으면 하는 마음으로 포스팅을 하고 있거든요.
그렇지만 이렇게 읽어주시는 분들이 한 분, 두 분 계시기 때문에 저도 즐겁게 개발일지를 남길 수 있는 것 같습니다. 트위치에서 하는 방송도 고정적으로 와주시는 8~10명 분들과 함께 떠들면서 개발하기 때문에 요즘에는 즐겁게 개발을 할 수 있는 것 같아요.
읽어주신 분들께 다시 한 번 감사의 말씀을 올리며, 혹시 제 글이 재미있거나 앞으로 기대가 되신다면 친구추천과 리스팀을 부탁드릴게요!
그러면 다음 번에는 위에서 적은 대로 나눠진 곳을 이어붙여서 다시 오겠습니다!
이 글을 쓰는 시간이 많이 늦었네요! 그래서 지금 시간으로 인사드리겠습니다.
다들 좋은 꿈 꾸고 계시죠?
I always post the time zone is dawn or something .. I guess many people do not see it. I feel very sorry. I usually develop games during the day by broadcasting on Twitch (Twitch), so writing is very vague. So I work in the daytime and write at night ... It seems to be always dawn. It's a little game for a lot of people, but I'm posting it with a heartfelt wish.
However, since it is one person who reads like this, and two people, I seem to be able to leave development journal pleasantly. I think that I can develop it happily these days because it develops by talking with 8 ~ 10 people who come to the broadcasting station in a fixed position steadily.
I would like to thank all of you who have read it again, and if you have any interest in my writing or you are looking forward to it, I would like to invite you to a friend recommendation and lease team!
Then, next time, I will come back again by connecting the divided place as I did above!
It is too late to write this article! So, I will say hello to you now.
Are you having a good dream?
---출처---
---source---
세포 자동자를 이용해서 만든 예시 1
Example 1 made using cellular automata
-> http://www.mced-ecology.org/?page_id=590
변화하고 있는 셀룰러 오토마타
Changing cellular automata
-> https://jeremykun.com/2012/07/29/the-cellular-automaton-method-for-cave-generation/