================== 서버 ============================ public class Server {public static void main(String[] arg){ServerSocket server = null;BufferedReader in = null;try{// 서버 포트번호 셋팅server = new ServerSocket(12345);System.out.println("Server Ready");while(true){// 클라이언트가 보내는 연결요청을 기다린다.Socket s = server.accept();// 클라이언트가 보낸 데이터를 읽는 객체를 생성한다.in = new BufferedReader(new InputStreamReader(s.getInputS..
종류별 스트림 1바이트 입출력 형식 1. 콘솔 출력 FileOutputStream fos = new FileOutputStream(FileDescriptor.out);BufferedOutputStream bos = new BufferedOutputStream(fos, 1024);DataOutputStream dos = new DataOutputStream(bos);dos.write() 입력 FieInputStream fis = new FileInputStream(FileDescriptor.in);BufferedInputStream bis = new BufferedInputStream(fis,1024);DataInputStream dis = new DataInputStream(bis);dis.read() ..
//먼저 계산을 위해 마우스와 게임 오브젝트의 현재의 좌표를 임시로 저장합니다. Vector3 mPosition = Input.mousePosition; //마우스 좌표 저장 Vector3 oPosition = arrow.GetComponent().transform.position; //게임 오브젝트 좌표 저장 //카메라가 앞면에서 뒤로 보고 있기 때문에, 마우스 position의 z축 정보에 //게임 오브젝트와 카메라와의 z축의 차이를 입력시켜줘야 합니다. mPosition.z = oPosition.z - Camera.main.transform.position.z; //화면의 픽셀별로 변화되는 마우스의 좌표를 유니티의 좌표로 변화해 줘야 합니다. //그래야, 위치를 찾아갈 수 있겠습니다. Vector3..
* 배열이란?데이터들의 연속된 집합. ex 1)$one = 1; $two = 2; $three = 3: 위와 같은 여러개의 데이타를 하나의 배열로 만들 수 있다. * 배열 만들기 ex 2)$arr[0] = 1; $arr[1] = 2; $arr[2] = 3; arr이란 변수 하나에 3개의 데이터 값을 담았다. 여기서 중요한 점은 배열의 시작은 [1]이 아니라 [0]부터 시작한다. 이렇게 만들어진 배열은 for문을 이용해 쉽게 접근할 수 있다. ex 3) 1,2,3 * 연관배열 만들기index대신 key를 사용한다. ex 4) $arr = array('one'=>1, 'two'=>2, 'three'=>3) 위에서 one,two,three는 key이고 1,2,3은 value이다. 이 배열에 접근하려면 $arr..
Update() 함수에 추가 if (isMoveState) { //Vector3 targetPos = transform.position + hitPosition; Vector3 dir = hitPosition - transform.position; Vector3 dirXY = new Vector3(dir.x, dir.y , 0); //Vector3 targetPos = transform.position + (hitPosition - transform.position); Vector3 targetPos = transform.position + dirXY; Vector3 framePos = Vector3.MoveTowards(transform.position, targetPos, moveSpeed * Tim..
리지디바디로 점프 - 물리적 점프GetComponent().velocity = new Vector2(GetComponent().velocity.x, jump); 리지디바디 사용안하고 점프 - 계산식으로 만든 점프 private Vector3 moveDirection = Vector3.zero; Vector3 targetDirection = (new Vector3(CrossPlatformInputManager.GetAxis("Horizontal") * speed, 0f, CrossPlatformInputManager.GetAxis("Vertical") * speed)); if (targetDirection != Vector3.zero) { moveDirection = targetDirection; move..
0. 설치환경 운영체제 : Windows XP 자바 : jdk-6u11-windows-i586-p.exe(72.9M) Windows 이클립스 : eclipse-java-ganymede-SR1-win32.zip(85.4M) Windows 안드로이드 : android-sdk-windows-1.0_r2.zip(93.8M) Windows (해당 파일 클릭하면 바로 다운 가능합니다.) 1. 자바 & 안드로이드 설치 java.sun.com 으로 접속 다운로드에서 자바 java SE 클릭 java SE Developement Kit(JDK) Bundle 에서 최신 버전 다운. 자바 설치 - 환경설정 - path : programfile/java/bin; 설치확인 - cmd - javac 출력나오면 설치됨 develo..
- Total
- Today
- Yesterday
- 지원
- 유머
- 공연
- 서울시
- 발생후
- 문화
- Linked List
- 아이유
- 유니티
- 혁오
- 뜻밖의 샤워
- 신청
- 김광석 코드
- 고양이 깜놀
- 김광석
- 청년
- 서울특별시
- 태풍발생
- 버즈
- 김광석 기타 코드
- 안드로이드
- 청년정책
- 임창정
- android
- 공모전
- 연결 리스트
- 축제
- 지원금
- 청년몽땅정보통
- 민경훈
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |