no image
[고1 화면구현] 11 - (2)
변수 선언, 전역/지역/블록 변수
2023.11.21
no image
[고1 게임엔진] 11 - (2)
보낼 파일 public class GameCounter : MonoBehaviour { // 1. 카운터 본체를 만든다. public static int count; // 공유하는 카운터의 값 public int startCount = 0; // 카운터 초깃값 private void Start() { count = startCount; // 카운터값 리셋 } } ------------------------------------------------------- using UnityEngine.UI; // UI 사용 public class Forever_ShowCount : MonoBehaviour { // 2. 계속 카운터 값을 표시한다. void Update() { GetComponent().text ..
2023.11.20
no image
[고1 프로그래밍] 11 - (4)
class Unit: def __init__(self): print("Unit 생성자") class Flyable: def __init__(self): print("Flyable 생성자") class FlyableUnit(Unit, Flyable): def __init__(self): #super().__init__() Unit.__init__(self) Flyable.__init__(self) # 드랍쉽 dropship = FlyableUnit() 나도코딩 - 스타크래프트 try: print("나누기 전용 계산기입니다.") num1 = int(input("첫 번째 숫자를 입력하세요 : ")) num2 = int(input("두 번째 숫자를 입력하세요 : ")) print("{0} / {1} = {2}"..
2023.11.20
no image
[고1 프로그래밍] 11 - (3)
# 일반 유닛 class Unit: def __init__(self, name, hp, speed): self.name = name self.hp = hp self.speed = speed def move(self, location): print("[지상 유닛 이동]") print("{0} : {1} 방향으로 이동합니다. [속도 : {2}]"\ .format(self.name, location, self.speed)) # 메딕 : 의무병(공격력 없음, 사람으로 된 유니싱 다쳤을 때 치료해주어 체력을 회복시켜 줌) # 공격 유닛 class AttackUnit(Unit): def __init__(self, name, hp, speed, damage): Unit.__init__(self, name, hp, s..
2023.11.15
no image
[고1 게임엔진] 11 - (1)
using System.Collections; using System.Collections.Generic; using UnityEngine; public class OnUpKeyPress_Throw : MonoBehaviour { // 플레이어 이동, 반전관련 변수선언 public float speed = 5; float vx; // x축 이동량 bool leftFlag = false; // 좌우반전 bool upFlag = false; // 위쪽 방향키 눌렸는지 여부 //프리팹 만들기------------------------------------ public GameObject sushi; // 공장에 넘겨줄 원본(프리팹) GameObject newSushi; // 공장에 찍어낸 새로운 아이템(프리팹..
2023.11.13
no image
[고1 프로그래밍] 11 - (2)
# 일반 유닛 class Unit: def __init__(self, name, hp, speed): self.name = name self.hp = hp self.speed = speed def move(self, location): print("[지상 유닛 이동]") print("{0} : {1} 방향으로 이동합니다. [속도 : {2}]"\ .format(self.name, location, self.speed)) # 메딕 : 의무병(공격력 없음, 사람으로 된 유니싱 다쳤을 때 치료해주어 체력을 회복시켜 줌) # 공격 유닛 class AttackUnit(Unit): def __init__(self, name, hp, speed, damage): Unit.__init__(self, name, hp, s..
2023.11.13
no image
[고1 화면구현] 11 - (1)
마우스 올려 보세요 ​ 마우스 올려 보세요 마우스 올려 보세요 링크의 href에 자바스크립트 작성 클릭해보세요 lib.js function over(obj) { obj.src="banana.png"; } function out(obj) { obj.src="apple.png"; } document.write()로 HTML 콘텐츠 출력
2023.11.09
no image
[고1 프로그래밍] 11 - (1)
# 일반 유닛 class Unit: def __init__(self, name, hp, speed): self.name = name self.hp = hp self.speed = speed def move(self, location): print("[지상 유닛 이동]") print("{0} : {1} 방향으로 이동합니다. [속도 : {2}]"\ .format(self.name, location, self.speed)) # 메딕 : 의무병(공격력 없음, 사람으로 된 유니싱 다쳤을 때 치료해주어 체력을 회복시켜 줌) # 공격 유닛 class AttackUnit(Unit): def __init__(self, name, hp, speed, damage): Unit.__init__(self, name, hp, s..
2023.11.08
no image
[고1 화면구현] 10 - (4)
1 Who am I? 프런트엔드 웹 기술(Front-end Web Tech.)에 관심이 많습니다. 현재 제주의 한 시골 마을에서 코딩 중입니다. 2 Who am I? 프런트엔드 웹 기술(Front-end Web Tech.)에 관심이 많습니다. 현재 제주의 한 시골 마을에서 코딩 중입니다. style.css h2 { color : blue; } p { font-size:0.9em; line-height: 2.0; } 3 블루베리와 항산화 효능 블루베리는 항산화제인 안토시아닌과 폴리페놀을 다량 포함하고 있습니다. 매사츄세츠 보스톤에 있는 USDA 노화에 관한 인류 영양 연구센터 (the USDA Human Nutrition Research Center on Aging) 의 자료에 의하면 블루베리는 과일 중에..
2023.10.26