Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buildconfig/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ install:
- ps: "ls dist"

# Install the wheel to test it
- "%PYTHON% -m pip install --ignore-installed --pre --no-index --find-links dist/ pygame"
- "%PYTHON% -m pip install --ignore-installed --pre --no-index --find-links dist/ pygame-ce"

# Appveyor's build step is specific to .NET projects, so we build in the
# install step instead.
Expand Down
2 changes: 1 addition & 1 deletion buildconfig/manylinux-build/build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ for PYVER in $SUPPORTED_PYTHONS; do
PYTHON="/opt/python/${PYVER}/bin/pypy"
fi

${PYTHON} -m pip install pygame --no-index -f /io/buildconfig/manylinux-build/wheelhouse
${PYTHON} -m pip install pygame-ce --no-index -f /io/buildconfig/manylinux-build/wheelhouse
(cd $HOME; ${PYTHON} -m pygame.tests -vv --exclude opengl,music,timing)
done
2 changes: 1 addition & 1 deletion docs/reST/tut/PygameIntro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Python Pygame Introduction
:Contact: pete@shinners.org


This article is an introduction to the `pygame library <http://www.pygame.org>`_
This article is an introduction to the `pygame library <https://pyga.me>`_
for `Python programmers <https://www.python.org/>`_.
The original version appeared in the `PyZine volume 1 issue 3
<https://web.archive.org/web/20030810011958/http://store.pyzine.com:80/article.phtml?a=2>`_.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Usually, we learn how to output something first (Think about Hello World!), lear


There are 2 big difference in comparison to before project. First big difference is line #5, which adds checking ``KEYDOWN`` **event** is triggered or not. Other lines are just changing previous algorithm to act differently. We know that same command can make big difference in entire program when it is executed before Event statement of after Event statement. Pay attention that process about changing location appear after Event statement. (**Update after set**. That is second big difference). Variable ``event.key`` means latest pressed key on keyboard. Look at the specific key name. K_UP, K_LEFT, K_DOWN, K_RIGHT. Very intuitive **K_ series**. (Given by pygame.locals which we added at the Header) Furthermore, there are other key named K_8, K_a, K_L, K_LCTRL, K_DELETE, or K_F4. We can understand meaning of these keys without extra explanation. Full key list can be found in
`https://www.pygame.org/docs/ref/key.html#pygame.key.name.`
`https://pyga.me/docs/ref/key.html#pygame.key.name`.

Notice that KEYDOWN means “this key was not pressed before, but **now is pressed**” and meaning of **“hold” is not included** here. In the case of hold, new event-handling about checking ``KEYUP`` (it means “this key was pressed before, but now is not pressed”) is needed with some processing (which needs extra variable and algorithm). This will be mentioned at advanced part.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Contact: rumia0601@gmail.com

(Controlling World가 키보드 방향키를 누르면 해당 방향으로 움직인다.)

이전 프로젝트와 비교하여 2개의 큰 차이점이 생겼다. 첫째는 #5에 KEYDOWN 이벤트가 트리거 되었는지 아닌지를 판단하는 것이다. 다른 줄들은 이전의 알고리즘의 약간 다르게 동작하도록 바꾼 것에 불과하다. 똑같은 명령어가 Event문 앞에 있느냐 뒤에 있느냐 결과는 완전히 달라질 수 있음을 우리는 알고 있다. 좌표를 업데이트하는 경우, Event문이 종료되고 이루어짐에 주목해라. (세팅 된 후 업데이트된다. 그것이 두번째 차이점이다.) 객체 event.key는 키보드에 마지막으로 눌린 키를 의미한다. 구체적인 키의 이름을 보아라. K_UP, K_LEFT, K_DOWN, K_RIGHT. 매우 직관적인 K_시리즈이다. (Header의 pygame.locals로부터 이용할 수 있다.) 다른 키의 이름으로는 K_8, K_a, K_L, K_LCTRL, K_DELETE, L_F4등이 있다. 이런 키들도 추가적인 도움 없이 직관적으로 이해할 수 있다. 모든 키 이름 목록은 https://www.pygame.org/docs/ref/key.html#pygame.key.name 에서 확인할 수 있다.
이전 프로젝트와 비교하여 2개의 큰 차이점이 생겼다. 첫째는 #5에 KEYDOWN 이벤트가 트리거 되었는지 아닌지를 판단하는 것이다. 다른 줄들은 이전의 알고리즘의 약간 다르게 동작하도록 바꾼 것에 불과하다. 똑같은 명령어가 Event문 앞에 있느냐 뒤에 있느냐 결과는 완전히 달라질 수 있음을 우리는 알고 있다. 좌표를 업데이트하는 경우, Event문이 종료되고 이루어짐에 주목해라. (세팅 된 후 업데이트된다. 그것이 두번째 차이점이다.) 객체 event.key는 키보드에 마지막으로 눌린 키를 의미한다. 구체적인 키의 이름을 보아라. K_UP, K_LEFT, K_DOWN, K_RIGHT. 매우 직관적인 K_시리즈이다. (Header의 pygame.locals로부터 이용할 수 있다.) 다른 키의 이름으로는 K_8, K_a, K_L, K_LCTRL, K_DELETE, L_F4등이 있다. 이런 키들도 추가적인 도움 없이 직관적으로 이해할 수 있다. 모든 키 이름 목록은 `https://pyga.me/docs/ref/key.html#pygame.key.name` 에서 확인할 수 있다.

KEYDOWN은 “이 키는 이전에는 눌리지 않았지만, 지금은 눌렸다.”를 의미하고, “이전부터 지금까지 계속 눌린 채로 있다.”를 의미하지는 않는다. 눌려있는 경우를 다루기 위해서는, KEYUP이라는 이벤트를 추가적으로 확인해야 한다. (변수와 알고리즘이 더 추가된다) 이는 심화 부분에서 다루겠다.

Expand Down
2 changes: 1 addition & 1 deletion src_c/transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -1887,7 +1887,7 @@ surf_threshold(PyObject *self, PyObject *args, PyObject *kwds)
int num_threshold_pixels = 0;

/*
https://www.pygame.org/docs/ref/transform.html#pygame.transform.threshold
https://pyga.me/docs/ref/transform.html#pygame.transform.threshold

Returns the number of pixels within the threshold.
*/
Expand Down
2 changes: 1 addition & 1 deletion src_py/colordict.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

""" A dictionary of RGBA tuples indexed by color names.

See https://www.pygame.org/docs/ref/color_list.html for sample swatches.
See https://pyga.me/docs/ref/color_list.html for sample swatches.
"""

THECOLORS = {
Expand Down