| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
- c#온라인
- 게임제작
- lua download
- Lua란
- c언어 배열 programming
- 루아
- c언어 콘서트 배열
- 유니티
- 메이플스토리
- c언어 버블정렬
- 비주얼 스튜디오 다운로드
- lua 다운로드
- N Queen Coordinates
- c샾 헬로우 월드
- for문
- 2중 반복문
- Lua 설명
- N Queens Problem
- 온라인 비주얼 스튜디오
- N Queen 문제
- c언어 최대최소
- C언어 달력
- c sharp hello world
- c++ 등차수열 합
- c샾 hello world
- 루아다운로드
- LUA
- c언어 콘서트 배열 2번
- 비주얼 스튜디오
- Lua language
- Today
- Total
목록분류 전체보기 (41)
Ln Go
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Bullet : MonoBehaviour { public int damage; public bool isMelee; public bool isRock; void OnCollisionEnter(Collision collision) { if (!isRock && collision.gameObject.tag == "Floor") { Destroy(gameObject, 3); } } void OnTriggerEnter(Collider other) { if (!isMelee && other.gameObject.tag == "Wall") { Destro..
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Grenade : MonoBehaviour { public GameObject meshObj; public GameObject effectObj; public Rigidbody rigid; void Start() { StartCoroutine(Explosion()); } IEnumerator Explosion() { yield return new WaitForSeconds(3f); rigid.velocity = Vector3.zero; rigid.angularVelocity = Vector3.zero; meshObj.SetActive(fals..
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Weapon : MonoBehaviour { public enum Type { Melee, Range }; public Type type; public int damage; public float rate; public int maxAmmo; public int curAmmo; public BoxCollider meleeArea; public TrailRenderer trailEffect; public Transform bulletPos; public GameObject bullet; public Transform bulletCasePos; ..
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public class BossMissile : Bullet { public Transform target; NavMeshAgent nav; void Awake() { nav = GetComponent(); } // Update is called once per frame void Update() { if(nav.enabled) { nav.SetDestination(target.position); } } }
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BossRock : Bullet { Rigidbody rigid; float angularPower = 2; float scaleValue = 0.1f; bool isShoot; void Awake() { rigid = GetComponent(); StartCoroutine(GainPowerTimer()); StartCoroutine(GainPower()); } IEnumerator GainPowerTimer() { yield return new WaitForSeconds(2.2f); isShoot = true; } IEnumerator Ga..
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public class Boss : Enemy { public GameObject missile; public Transform missilePortA; public Transform missilePortB; Vector3 lookVec; Vector3 tauntVec; public bool isLook; // Awake() 함순는 자식 스크립트만 단독 실행! void Awake() { rigid = GetComponent(); boxCollider = GetComponent(); // Material은 Mesh Rendere..
using System.Collections; using UnityEngine; using UnityEngine.AI; public class Enemy : MonoBehaviour { public enum Type { A, B, C, D }; public Type enemyType; public int maxHealth; public int curHealth; public int score; public GameManager manager; public Transform target; public BoxCollider meleeArea; public GameObject bullet; public GameObject[] coins; public bool isChase; public bool isAttac..
using System.Collections; using UnityEngine; public class Player : MonoBehaviour { public float speed; public GameObject[] weapons; public bool[] hasWeapons; public GameObject[] grenades; public int hasGrenades; public GameObject grenadeObj; public Camera followCamera; public GameManager manager; //public AudioSource jumpSound; //AudioSource Inspector Play On Awake uncheck public int ammo; publi..
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public class GameManager : MonoBehaviour { public GameObject menuCam; public GameObject gameCam; public Player player; public Boss boss; public GameObject itemShop; public GameObject weaponShop; public GameObject startZone; public int stage; public float playTim..
https://www.codechef.com/ide?itm_medium=navmenu&itm_campaign=ide
#include #include #include struct date { int year; int month; int day; }; typedef struct date date; struct fruit { char name[20]; //과일이름 name(문자열), int price; //가격 price(정수) date expire; //만기일 expire(1번의 date 타입) char throw; //폐기여부 throw(‘y’ 또는 ‘n’) }; typedef struct fruit fruit; void ex_08() { fruit store[5] = { "apple", 500, 2020, 9, 1, 'n', "banana", 500, 2020, 7, 3, 'n', "orange", 500, 2022,..
#include int main(void) { int arr[5] = { 0 }; int i = 0; int max = 0; int min = 10000000; int count = 0; printf("num: "); for (i = 0; i < 5; i++) { scanf_s("%d", &arr[i]); } for (i = 0; i < 5; i++) { if (max = arr[i]) { min = arr[i]; count = i; } } printf("min = %d\nindex = %d", min, count); return 0; }
#include #include int board[20], count; int main() { int n, i, j; void queen(int row, int n); printf(" - N Queens Problem Using Backtracking -"); printf("\n\nEnter number of Queens:"); scanf_s("%d", &n); queen(1, n); return 0; } void print(int n) { int i, j; printf("\n\nSolution %d:\n\n", ++count); for (i = 1; i
#include #include using namespace std; int main() { int sum = 0; int total = 0; int k = 0; for (int j = 1; j
Mass 질량 Drag 공기 저항 Angular 회전 저항 Use Gravity 중력 사용 Is Kinematic 외부 물리 효과 무시 스크립트로 접근가능. 장애물을 만들때 유용
비주얼 스튜디오를 다운로드할 수 없는 상황이거나, 온라인에서 컴파일 하고 싶으신 분들에게 추천해드릴 만한 사이트가 있습니다. 닷넷 피들 사이트인데요. 비주얼 스튜디오를 다운받지 않고. 학교 과제나 간단하게 컴파일 할 수 있습니다. 아래 링크를 클릭해주세요. https://dotnetfiddle.net/
비쥬얼 스튜디오를 켜줍니다. 콘솔앱 클릭. 새 프로젝트 만들기. 위와 같이 적어줍니다. Console.WriteLine("Hello World!");는 콘솔창에 Hello World!를 출력하라는 뜻입니다. 디버그 - 디버그하지 않고 시작 (단축기 Ctrl+F5) 출력 완료.
int days[12] = { 31,29,31,30,31,30,31,31,30,31,30,31 }; 배열 선언과 동시에 초기화 1년은 12달이므로 크기를 12로 선언하였다. for (int i = 1; i
https://visualstudio.microsoft.com/ko/downloads/ Windows 및 Mac용 Visual Studio 2019 다운로드 Visual Studio Community, Professional 및 Enterprise를 다운로드하세요. 지금 Visual Studio IDE, Code 또는 Mac을 무료로 사용해 보세요. visualstudio.microsoft.com 위 링크를 클릭하여 microsoft 홈페이지에 들어갑니다. 무료 다운로드를 클릭합니다.