Pygame/lang-ko

From OLPC
Jump to: navigation, search
  번역근원 Pygame 원문  
  english | 한국어| español   +/- 차이  

환영합니다 | Portal | XO Korea | Deployment | Content | Hardware | Software | Mesh Network | Ethics | LOS | XO City | Accreditation | Consortium

파이게임은 파이선 게임 개발을 위한 가장 보편적 라이버러리입니다. 디자인 측면에서, 합리적으로 효과적인 2D 게임에 적합한 로우 레벨 인터페이스를 제공하는 Simple DirectMedia Library (SDL)를 둘러싼 wrapper입니다.

특정한 유형의 게임 제작을위한 단순한 매커니즘을 제공하는 타이게임 시스템의 상층부에 작성된 많은 라이버러리들이 있으며, 이들 라이버러리들은 어린이들이 게임을 작성하는데 도움이 될 뿐 아니라, 청소년들이 배포용 게임을 작성하는데도 이용될 수 있습니다.

게임 개발 커리큘럼을 운영하는데 (또는 OLPC 게임 개발을 쉽게하는)이용될 수 있는 파이게임 상층에 작성된 라이버러리들 중에는:

OLPC XO 상의 파이게임

Pygame/SDL이 Sugar (GTK and DBUS) 환경과 소통할 수 있도록 사전 작업이 진행되었습니다. proof-of-concept 파이게임 페키지가 생산되었으며 (Noah Kantrowitz), 플랫폼의 상호 작용성을 개선하기 위한 작업이 진행 중입니다 (Ryan C. Gordon). 토론과 성명은 주로OLPC Games info/devel OLPC Devel list에서 발표됩니다.

XO 하드웨어를 위한 게임 프로그래밍 역시 진행 중입니다. 아래는 개관입니다:

  • Noah's wrapper는 별도의 스레드를 이용한 파이게임 윈도우nested Pygame windows를 가능하게 합니다. 이것은 GTK 이벤트를 파이게임 이벤트로 변환합니다.
  • 파이게임은 스크린 위에 그림을 그리고 사운드를 연주합니다.
  • 파이게임에서 피해야 할 것은;
    • 파이게임1.8 특성들은 피하십시오; 우리는 이를 지원하지 않을 것입니다.
    • 텍스트를 그리기 위해 pygame.font 를 이용할 수는 있지만, 국제화를 위해 가능한 피해야 합니다. Pygame.font는 텍스트 디렉션과 같은 국제화 특성들을 지원하지 않습니다 (파이게임을 위한 카이로 백앤드가 향후 이를 수정할 수도 있습니다.)
    • surfarray를 피해야 하는데, 향후 카이로 백앤드가 이를 제대로 지원하지 않을 것이기 때문입니다.
    • CD 드라이브가 었으므로, cdrom은 필요하지 않을 것입니다.
  • 네이티브 파이게임 이벤트: 현재로서는 래퍼wrapper를 통해, 파이게임 속에서 일반적인 키보드 키가 작동합니다. 마우스 또한 작동합니다 (6/8/07). d-pad와 게임버튼은 아직 작동하지 않으며, 곧 수정될 것입니다; 조이스틱 이벤트와 더불어 작동할 것으로 기대됩니다. 윈도우 매니저 이벤트는 포워드될 필요가 있습니다 (스크린 회전 버튼을 통한 윈도우 리사이징처럼).
  • 메쉬: 메쉬 네트워크와 소통할 수 있지만, 매커니즘이 아직 정의되지 않았습니다. [check with J5] 메쉬 이벤트처럼, 아마도 파이게임 이벤트 큐로부터 일련의 이벤트들을 해석할 수 있도록 모듈을 임포트할 수 있을 것이며, presence API를 통해 소통할 수 있을 것입니다.GStreamer로부터 필요한 정보를 추출하기 위한 노력이 필요할 수 있습니다. 뭔가 다른 방법이 있으면, 이 페이지를 업데이트 해 주십시오. 마이크로폰과 카메라 이벤트가 파이게임 이벤트 루프에 바로 통합될 수 있을 것으로는 보이지 않습니다.
  • 마이크로폰과 카메라: 파이게임은 그 자체의 사운드 또는 비디오 입력을 갖지 않지만, GStreamer를 이용할 수 있습니다. 우리의 래퍼 내에서, 다른 스레드가 GTK 메인 루프를 구동하므로, GStreamer 파이프라인을 구축해서, 구동하도록 설정하고, 실행할 수 있습니다 (요술처럼?).

토의

게임은 학습의 주요한 부분이며, 파이게임에 기반한 게임은 그들 자신을 위해 또는 친구들을 위해 게임을 개발하려는 어린이들에게 도움이 될 것입니다.

이 아이디어는 청소년들이 파이선과 파이게임을 이용하여 OLPC용 게임 프로그램을 진행할 수 있도록 가르치는 커리큘럼 개발입니다. 그들은 더 어린 아이들을 위한 Childsplay 환경을 위한 추가적인 게임/액티비티를 작성할 수 있을 것입니다. Original email sent by Mamading Ceesay to Python-UK mailing list on Friday 20th May 2005:

One of the threads at the last London Python Meetup was about Python
for Kids. Specifically about how to get kids into Python programming
and possibly how to get Python taught in Schools. There was mention
of the Livewires python tutorial material for example.

Simon B. in particular (IIRC) was interested in Turtle Graphics for
Python (a la Logo). Along similar lines, but drawing upon the Karel
the Robot tradition there is
RUR-PLE where there is a robot that is controlled using Python syntax,
there is a set of lessons provided where the student has to
accomplish progressively complex tasks with the robot using Python
syntax introduced in the course of the lessons. An overview of
RUR-PLE can be found at http://rur-ple.sourceforge.net/en/help.htm. 
It's based on wxPython.

I have a young nephew who has just reached school age, so right now
I'm more concerned about him having educational games and software
than programming. Being able to extend/enhance the software in Python
would be useful though. Childsplay http://childsplay.sourceforge.net/
is just the thing, it's a suite of educational games for young
children along similar lines to Gcompris but without the C/C++ code
and GNOME dependencies. It's based on Pygame and is cross-platform. 
It only has two games bundled, you have to install the plugins to get
the other available games. Games are written as plugins in python
that run in the Childsplay environment. Ideally, you might get your
older kids to write new game plugins to keep your younger ones amused,
just an idle thought! ;-) Anyway, I intend to try out Childsplay on
the nephew this weekend.

Follow-up email sent by Mamading Ceesay to the Python-UK mailing list on Saturday 11th June 2005:

The nephew loves it and will nag me to fire up my laptop so that he
can run Childsplay. Especially the PacKids game, which is quite
useful from the spelling and pronounciation perspective as well as
being entertaining.

The main drawback with Childsplay so far, is that most of the
games/activities are lacking in levels. The project clearly needs
more developers to add more levels and games/activities. Perhaps it
might even be worth organizing a sprint at something like the rumoured
forthcoming PyCon UK. Alternatively, the London Python Meetup crew
might like to do something.

Follow-up email sent by Mamading Ceesay to the Python-UK mailing list on Friday 21 October 2005:

Check out the Livewires course and see if it suits:
http://www.livewires.org.uk/python/

Alternatively, there's a new Beginning Python book which has 10
projects to build in the last third of the book:
http://apress.com/book/bookDisplay.html?bID=10013

I have been toying with the idea of getting some funding to develop
and run a Python course for kids with a focus on Game and Multimedia
programming.

First milestone - contact Pygame and Childsplay developer mailing lists to garner developer interest in this project.

See also