博文

目前显示的是 十月, 2019的博文

Multi-thread and UDP communication in C#

图片
In my last project I also used the UDP system in c#. I have learned the course of computer network, but have never used c# or .NET(is UDP a part of .NET frame?) for programming. I know that UDP do not require a connection between the client and the server. It is more like a broadcast system, the client and the server can send message to each other, but they can not confirm that if the other side have received the message completely. But I have no idea about how to use it to convey messages in an instance of system. After a period of researching, I found that the basement of UDP in C# is multi-thread. Actually in my experience with unity and C#, I have never used the multi-thread system. At the most time, the coroutine and the function “Invoke” can fulfill most of my requirements. However, if I need to use UDP to receive message in C#, at least I need a while(true) loop in both the client and the server, to keep listening if there is an UDP message needs to be received...

NGUI in unity

图片
Last week I started my internship job as a unity software engineer. My main job is test and modify the existing program , and adjust the UI system based on unity. I will write down some of my work detail and something I learn from my work here as a record. The first project that I involved in is about NGUI and UDP protocol in unity. There was a UI system that was built on NGUI system , and used the UDP protocol to communicate with the client. I have used UGUI system in my own game , but had never used NGUI. I have heard that UGUI was developed by the same develop team as NGUI , but I did not have any other understanding of it.   The first difference that I found between NGUI and UGUI is that there is a strict atlas system in NGUI , while that is nearly not exist in UGUI. When I used the UGUI formerly , I did not even have the concept of atlas , I can put an image into the assets , set it to the sprite type , and use it directly in the image or other components...

Record and summary of Ludum Dare 45

图片
I took part in the game jam activity Ludum Dare 45 last weekend with three friends. Actually this is the second time for us to participate in a jam, we also participated Ludum Dare 44 in April of this year. For me, the main difference between these two jam is my character in the team. In the Ludum Dare 44, we decided to use the Game Maker Studio 2 as our game engine, for I was not very skilled with GMS2, I took more design work, and also did some art related work as auxiliary of our painter(though I was not so skilled with painting, I still could draw some enemies or floors...), while this time I was the main programmer in the team. We used unity this time, which game engine that I think I know it very well.  Design At the first we saw the theme "Start with nothing", we thought this theme is easy to be fitted, actually we found that for any rogue-like or rogue-lite game, you can say you "start with nothing" over and over again in this game, bu...