2025년, 코딩은 선택이 아닌 필수!

2025년 모든 학교에서 코딩이 시작 됩니다. 먼저 준비하는 사람만이 기술을 선도해 갑니다~

반응형

프로그래밍언어문법/파이썬 게임 프로그래밍 26

[파이썬 게임프로그래밍] Ursina 를 이용한 2D 게임 만들어 보기

원본 소스코드 - https://github.com/kairess/iwannabetheboshy-clone GitHub - kairess/iwannabetheboshy-clone: I wanna be the BOSHY clone using Python and Ursina game engine I wanna be the BOSHY clone using Python and Ursina game engine - GitHub - kairess/iwannabetheboshy-clone: I wanna be the BOSHY clone using Python and Ursina game engine github.com 원본 소스 코드에서 만들어진 프로그램을 따라 만들어 보겠습니다. 1. 라이브러리 임포트 from ..

[파이썬 게임프로그래밍] Ursina 란

Ursina 란? 게임을 만들수 있게 해 주는 파이썬 라이브러리 입니다. Ursina 설치 더보기 pip install ursina Ursina 사용법 1. 모듈 임포트 from ursina import * 2. 윈도우 만들기 app = Ursina() 3. 플레이어 만들기 player = Entity() 큐브모양의 오랜지색,y축 크기 2인 플레이어 만들기 player = Entity( model='cube', color=color.orange, scale_y=2 ) 4. 키보드 이동: d키이면 우측,a키 누르면 좌측 이동 시 update 에서 x축 y축 이동 def update(): player.x += held_keys['d'] * time.dt player.x -= held_keys['a'] * t..

반응형