전체 글
-
deterministic physics카테고리 없음 2021. 11. 24. 10:58
1. 부동소수점 다른 머신에서 동일한 부동 소수점 계산이 다른 결과로 나온다. 그래서 게임 로직이 결과론적인지 확인 하려면 부동 소수점 연산을 피해야 합니다. 그러나 결코 쉬운 일이 아닙니다. 부동 소수점은 게임 엔진, 미들웨어 및 라이브러리의 모든 곳에 있는 기본 타입 입니다. 논리 계산에는 일반적으로 고정 소수점 라이브러리를 사용할 수 있습니다. 2. 결정론적 램덤 이것은 비교적으로 쉽습니다. 게임 세션이 시작되면 모든 플레이어는 동일한 랜덤 시드를 가져와야 하며, 이는 임의의 모든 랜덤성이 결정적이어야 합니다. 3. 정렬된 데이터 구조 예를들어 대부분의 언어에서 해시(map, dictionary)의 항목 순서는 보장되지 않습니다. 따라서 해시를 통한 반복은 신중하게 검토하고 SortedDiction..
-
PHP 윈도우즈 디버깅카테고리 없음 2021. 11. 23. 18:19
1. visual studio code 설치 2. File > Preferences > Settings > PHP > Edit in settings.json "php.validate.enable" : false "php.validate.executablePath" : "E:/Bitnami/wampstack-7.1.31-0/php/php.exe" 확장탭 > PHP intellisense 설치 3. XDebug 설치 참조 : https://xdebug.org/wizard Xdebug: Support — Tailored Installation Instructions Installation Wizard This page helps you finding which file to download, and how t..
-
PHP 윈도우즈 설치카테고리 없음 2021. 11. 23. 17:51
1. bitnami의 wamp 설치 apache, mysql, php 패키지를 한번에 설치해줌 다운로드 : https://downloads.bitnami.com/files/stacks/wampstack/7.1.31-0/bitnami-wampstack-7.1.31-0-windows-x64-installer.exe 2. php.ini 변경 extension_dir = "절대 경로" extension= php_pod_mysql.dll ;주석 해제 3. 소스 코드 클래스 이름과 생성자 네이밍 중복 function __construct($message, $priority = null) { 참조 : https://stackoverflow.com/questions/37100373/php-deprecated-metho..
-
gRPC 와 android java를 활용한 채팅 어플 만들기카테고리 없음 2021. 10. 8. 15:49
프로토콜 정의 service ChatService { // Sends a greeting rpc SayHello (HelloRequest) returns (HelloReply) {} rpc CreateRoom(CreateRoomRequest) returns (stream ChatMessage) {} rpc JoinRoom(JoinRoomRequest) returns (stream ChatMessage) {} rpc SendChat(SendChatRequest) returns (SendChatReply) {} rpc GetChatRooms(GetChatRoomsRequest) returns (GetChatRoomsReply) {} rpc LeaveRoom(LeaveRoomRequest) returns (L..