Debian Codegraph @

doc/changelog.rst

raw
1 Changelog
2 =========
3
4 1.2 - 2018-02-24
5 ----------------
6
7 * New: :ref:`Actors can be rotated <rotation>` by assigning to ``actor.angle``
8 * New: Actors now have :meth:`~Actor.angle_to()` and
9 :meth:`~Actor.distance_to()` methods.
10 * New: Actors are no longer subclasses of Rect, though they provide the same
11 methods/properties. However they are now provided with floating point
12 precision.
13 * New: ``tone.play()`` function to allow playing musical notes.
14 * New: ``pgzrun.go()`` to allow running Pygame Zero from an IDE (see
15 :doc:`ide-mode`).
16 * New: show joypad icon by default
17 * Examples: add Asteroids example game (thanks to Ian Salmons)
18 * Examples: add Flappy Bird example game
19 * Examples: add Tetra example game (thanks to David Bern)
20 * Docs: Add a logo, fonts and colours to the documentation.
21 * Docs: Documentation for the :ref:`anchor point system for Actors <anchor>`
22 * Docs: Add :doc:`from-scratch` documentation
23 * Fix: ``on_mouse_move()`` did not correctly handle the ``buttons`` parameter.
24 * Fix: Error message when resource not found incorrectly named last extension
25 searched.
26 * Fix: Drawing wrapped text would cause crashes.
27 * Fix: :func:`animate()` now replaces animations of the same property, rather
28 than creating two animations which fight.
29 * Updated ptext to a revision as of 2016-11-17.
30 * Removed: removed undocumented British English ``centrex``, ``centrey``,
31 ``centre`` attribute aliases on ZRect (because they are not Rect-compatible).
32
33 1.1 - 2015-08-03
34 ----------------
35
36 * Added a spell checker that will point out hook or parameter names that have
37 been misspelled when the program starts.
38 * New ZRect built-in class, API compatible with Rect, but which accepts
39 coordinates with floating point precision.
40 * Refactor of built-in ``keyboard`` object to fix attribute case consistency.
41 This also allows querying key state by ``keys`` constants, eg.
42 ``keyboard[keys.LEFT]``.
43 * Provide much better information when sound files are in an unsupported
44 format.
45 * ``screen.blit()`` now accepts an image name string as well as a Surface
46 object, for consistency with Actor.
47 * Fixed a bug with non-focusable windows and other event bugs when running in
48 a virtualenv on Mac OS X.
49 * Actor can now be positioned by any of its border points (eg. ``topleft``,
50 ``midright``) directly in the constructor.
51 * Added additional example games in the ``examples/`` directory.
52
53 1.0.2 - 2015-06-04
54 ------------------
55
56 * Fix: ensure compatibility with Python 3.2
57
58 1.0.1 - 2015-05-31
59 ------------------
60
61 This is a bugfix release.
62
63 * Fix: Actor is now positioned to the top left of the window if ``pos`` is
64 unspecified, rather than appearing partially off-screen.
65
66 * Fix: repeating clock events can now unschedule/reschedule themselves
67
68 Previously a callback that tried to unschedule itself would have had no
69 effect, because after the callback returns it was rescheduled by the clock.
70
71 This applies also to ``schedule_unique``.
72
73 * Fix: runner now correctly displays tracebacks from user code
74
75 * New: Eliminate redraws when nothing has changed
76
77 Redraws will now happen only if:
78
79 * The screen has not yet been drawn
80 * You have defined an update() function
81 * An input event has been fired
82 * The clock has dispatched an event
83
84
85 1.0 - 2015-05-29
86 ----------------
87
88 * New: Added ``anchor`` parameter to Actor, offering control over where its
89 ``pos`` attribute refers to. By default it now refers to the center.
90
91 * New: Added Ctrl-Q/⌘-Q as a hard-coded keyboard shortcut to exit a game.
92
93 * New: ``on_mouse_*`` and ``on_key_*`` receive ``IntEnum`` values as ``button``
94 and ``key`` parameters, respectively. This simplifies debugging and enables
95 usage like::
96
97 if button is button.LEFT:
98
99
100 1.0beta1 - 2015-05-19
101 ---------------------
102
103 Initial public (preview) release.