pyboy 2.5.4__tar.gz → 2.6.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. {pyboy-2.5.4 → pyboy-2.6.0}/LICENSE.md +163 -163
  2. {pyboy-2.5.4 → pyboy-2.6.0}/MANIFEST.in +2 -2
  3. pyboy-2.6.0/PKG-INFO +228 -0
  4. {pyboy-2.5.4 → pyboy-2.6.0}/README.md +200 -200
  5. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/__init__.py +15 -15
  6. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/__main__.py +227 -227
  7. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/api/__init__.py +27 -27
  8. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/api/constants.py +60 -60
  9. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/api/gameshark.pxd +24 -24
  10. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/api/gameshark.py +158 -158
  11. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/api/memory_scanner.pxd +11 -11
  12. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/api/memory_scanner.py +178 -178
  13. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/api/screen.pxd +22 -22
  14. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/api/screen.py +236 -236
  15. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/api/sound.pxd +17 -17
  16. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/api/sound.py +171 -171
  17. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/api/sprite.pxd +27 -27
  18. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/api/sprite.py +204 -204
  19. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/api/tile.pxd +29 -29
  20. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/api/tile.py +199 -199
  21. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/api/tilemap.pxd +26 -26
  22. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/api/tilemap.py +274 -274
  23. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/conftest.py +323 -323
  24. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/__init__.py +4 -4
  25. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/bootrom.pxd +16 -16
  26. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/bootrom.py +25 -25
  27. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cartridge/__init__.py +10 -10
  28. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cartridge/base_mbc.pxd +46 -46
  29. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cartridge/base_mbc.py +175 -175
  30. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cartridge/cartridge.pxd +26 -26
  31. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cartridge/cartridge.py +101 -101
  32. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cartridge/mbc1.pxd +18 -18
  33. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cartridge/mbc1.py +78 -78
  34. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cartridge/mbc2.pxd +16 -16
  35. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cartridge/mbc2.py +45 -45
  36. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cartridge/mbc3.pxd +16 -16
  37. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cartridge/mbc3.py +53 -53
  38. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cartridge/mbc5.pxd +16 -16
  39. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cartridge/mbc5.py +30 -30
  40. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cartridge/rtc.pxd +39 -39
  41. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cartridge/rtc.py +134 -134
  42. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cpu.pxd +56 -56
  43. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/cpu.py +189 -189
  44. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/interaction.pxd +24 -24
  45. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/interaction.py +102 -102
  46. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/lcd.pxd +304 -304
  47. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/lcd.py +1162 -1160
  48. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/mb.pxd +92 -90
  49. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/mb.py +760 -738
  50. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/opcodes.pxd +1024 -1024
  51. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/opcodes.py +6900 -6900
  52. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/opcodes_gen.py +1437 -1437
  53. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/ram.pxd +27 -26
  54. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/ram.py +61 -61
  55. pyboy-2.6.0/pyboy/core/serial.pxd +29 -0
  56. pyboy-2.6.0/pyboy/core/serial.py +78 -0
  57. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/sound.pxd +189 -189
  58. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/sound.py +980 -972
  59. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/timer.pxd +30 -29
  60. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/timer.py +90 -88
  61. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/logging/__init__.py +56 -56
  62. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/logging/_logging.py +21 -21
  63. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/logging/logging.pxd +12 -12
  64. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/logging/logging.pyx +106 -106
  65. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/__init__.py +24 -24
  66. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/auto_pause.pxd +15 -15
  67. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/auto_pause.py +21 -21
  68. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/base_plugin.pxd +80 -80
  69. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/base_plugin.py +296 -296
  70. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/debug.pxd +168 -168
  71. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/debug.py +791 -791
  72. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/debug_prompt.pxd +14 -14
  73. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/debug_prompt.py +117 -117
  74. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/font.txt +132 -132
  75. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/game_wrapper_kirby_dream_land.pxd +20 -20
  76. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/game_wrapper_kirby_dream_land.py +146 -146
  77. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/game_wrapper_pokemon_gen1.pxd +15 -15
  78. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/game_wrapper_pokemon_gen1.py +81 -81
  79. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/game_wrapper_pokemon_pinball.pxd +59 -59
  80. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/game_wrapper_pokemon_pinball.py +1552 -1552
  81. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/game_wrapper_super_mario_land.pxd +25 -25
  82. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/game_wrapper_super_mario_land.py +594 -594
  83. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/game_wrapper_tetris.pxd +23 -23
  84. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/game_wrapper_tetris.py +259 -259
  85. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/manager.pxd +74 -74
  86. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/manager.py +302 -302
  87. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/manager_gen.py +251 -251
  88. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/record_replay.pxd +14 -14
  89. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/record_replay.py +77 -77
  90. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/rewind.pxd +63 -63
  91. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/rewind.py +297 -297
  92. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/screen_recorder.pxd +15 -15
  93. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/screen_recorder.py +79 -79
  94. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/screenshot_recorder.pxd +13 -13
  95. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/screenshot_recorder.py +46 -46
  96. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/window_null.pxd +11 -11
  97. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/window_null.py +30 -30
  98. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/window_open_gl.pxd +28 -28
  99. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/window_open_gl.py +183 -183
  100. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/window_sdl2.pxd +49 -49
  101. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/plugins/window_sdl2.py +308 -308
  102. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/pyboy.pxd +105 -105
  103. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/pyboy.py +1941 -1941
  104. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/utils.pxd +66 -66
  105. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/utils.py +510 -509
  106. pyboy-2.6.0/pyboy.egg-info/PKG-INFO +228 -0
  107. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy.egg-info/SOURCES.txt +2 -0
  108. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy.egg-info/not-zip-safe +1 -1
  109. {pyboy-2.5.4 → pyboy-2.6.0}/pyproject.toml +86 -87
  110. {pyboy-2.5.4 → pyboy-2.6.0}/setup.cfg +4 -4
  111. {pyboy-2.5.4 → pyboy-2.6.0}/setup.py +123 -118
  112. pyboy-2.5.4/PKG-INFO +0 -392
  113. pyboy-2.5.4/pyboy.egg-info/PKG-INFO +0 -392
  114. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/bootrom_cgb.bin +0 -0
  115. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/core/bootrom_dmg.bin +0 -0
  116. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy/default_rom.gb +0 -0
  117. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy.egg-info/dependency_links.txt +0 -0
  118. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy.egg-info/entry_points.txt +0 -0
  119. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy.egg-info/requires.txt +0 -0
  120. {pyboy-2.5.4 → pyboy-2.6.0}/pyboy.egg-info/top_level.txt +0 -0
@@ -1,163 +1,163 @@
1
- GNU Lesser General Public License
2
- =================================
3
-
4
- _Version 3, 29 June 2007_
5
- _Copyright © 2007 Free Software Foundation, Inc. &lt;<http://fsf.org/>&gt;_
6
-
7
- Everyone is permitted to copy and distribute verbatim copies
8
- of this license document, but changing it is not allowed.
9
-
10
-
11
- This version of the GNU Lesser General Public License incorporates
12
- the terms and conditions of version 3 of the GNU General Public
13
- License, supplemented by the additional permissions listed below.
14
-
15
- ### 0. Additional Definitions
16
-
17
- As used herein, “this License” refers to version 3 of the GNU Lesser
18
- General Public License, and the “GNU GPL” refers to version 3 of the GNU
19
- General Public License.
20
-
21
- “The Library” refers to a covered work governed by this License,
22
- other than an Application or a Combined Work as defined below.
23
-
24
- An “Application” is any work that makes use of an interface provided
25
- by the Library, but which is not otherwise based on the Library.
26
- Defining a subclass of a class defined by the Library is deemed a mode
27
- of using an interface provided by the Library.
28
-
29
- A “Combined Work” is a work produced by combining or linking an
30
- Application with the Library. The particular version of the Library
31
- with which the Combined Work was made is also called the “Linked
32
- Version”.
33
-
34
- The “Minimal Corresponding Source” for a Combined Work means the
35
- Corresponding Source for the Combined Work, excluding any source code
36
- for portions of the Combined Work that, considered in isolation, are
37
- based on the Application, and not on the Linked Version.
38
-
39
- The “Corresponding Application Code” for a Combined Work means the
40
- object code and/or source code for the Application, including any data
41
- and utility programs needed for reproducing the Combined Work from the
42
- Application, but excluding the System Libraries of the Combined Work.
43
-
44
- ### 1. Exception to Section 3 of the GNU GPL
45
-
46
- You may convey a covered work under sections 3 and 4 of this License
47
- without being bound by section 3 of the GNU GPL.
48
-
49
- ### 2. Conveying Modified Versions
50
-
51
- If you modify a copy of the Library, and, in your modifications, a
52
- facility refers to a function or data to be supplied by an Application
53
- that uses the facility (other than as an argument passed when the
54
- facility is invoked), then you may convey a copy of the modified
55
- version:
56
-
57
- * **a)** under this License, provided that you make a good faith effort to
58
- ensure that, in the event an Application does not supply the
59
- function or data, the facility still operates, and performs
60
- whatever part of its purpose remains meaningful, or
61
-
62
- * **b)** under the GNU GPL, with none of the additional permissions of
63
- this License applicable to that copy.
64
-
65
- ### 3. Object Code Incorporating Material from Library Header Files
66
-
67
- The object code form of an Application may incorporate material from
68
- a header file that is part of the Library. You may convey such object
69
- code under terms of your choice, provided that, if the incorporated
70
- material is not limited to numerical parameters, data structure
71
- layouts and accessors, or small macros, inline functions and templates
72
- (ten or fewer lines in length), you do both of the following:
73
-
74
- * **a)** Give prominent notice with each copy of the object code that the
75
- Library is used in it and that the Library and its use are
76
- covered by this License.
77
- * **b)** Accompany the object code with a copy of the GNU GPL and this license
78
- document.
79
-
80
- ### 4. Combined Works
81
-
82
- You may convey a Combined Work under terms of your choice that,
83
- taken together, effectively do not restrict modification of the
84
- portions of the Library contained in the Combined Work and reverse
85
- engineering for debugging such modifications, if you also do each of
86
- the following:
87
-
88
- * **a)** Give prominent notice with each copy of the Combined Work that
89
- the Library is used in it and that the Library and its use are
90
- covered by this License.
91
-
92
- * **b)** Accompany the Combined Work with a copy of the GNU GPL and this license
93
- document.
94
-
95
- * **c)** For a Combined Work that displays copyright notices during
96
- execution, include the copyright notice for the Library among
97
- these notices, as well as a reference directing the user to the
98
- copies of the GNU GPL and this license document.
99
-
100
- * **d)** Do one of the following:
101
- - **0)** Convey the Minimal Corresponding Source under the terms of this
102
- License, and the Corresponding Application Code in a form
103
- suitable for, and under terms that permit, the user to
104
- recombine or relink the Application with a modified version of
105
- the Linked Version to produce a modified Combined Work, in the
106
- manner specified by section 6 of the GNU GPL for conveying
107
- Corresponding Source.
108
- - **1)** Use a suitable shared library mechanism for linking with the
109
- Library. A suitable mechanism is one that **(a)** uses at run time
110
- a copy of the Library already present on the user's computer
111
- system, and **(b)** will operate properly with a modified version
112
- of the Library that is interface-compatible with the Linked
113
- Version.
114
-
115
- * **e)** Provide Installation Information, but only if you would otherwise
116
- be required to provide such information under section 6 of the
117
- GNU GPL, and only to the extent that such information is
118
- necessary to install and execute a modified version of the
119
- Combined Work produced by recombining or relinking the
120
- Application with a modified version of the Linked Version. (If
121
- you use option **4d0**, the Installation Information must accompany
122
- the Minimal Corresponding Source and Corresponding Application
123
- Code. If you use option **4d1**, you must provide the Installation
124
- Information in the manner specified by section 6 of the GNU GPL
125
- for conveying Corresponding Source.)
126
-
127
- ### 5. Combined Libraries
128
-
129
- You may place library facilities that are a work based on the
130
- Library side by side in a single library together with other library
131
- facilities that are not Applications and are not covered by this
132
- License, and convey such a combined library under terms of your
133
- choice, if you do both of the following:
134
-
135
- * **a)** Accompany the combined library with a copy of the same work based
136
- on the Library, uncombined with any other library facilities,
137
- conveyed under the terms of this License.
138
- * **b)** Give prominent notice with the combined library that part of it
139
- is a work based on the Library, and explaining where to find the
140
- accompanying uncombined form of the same work.
141
-
142
- ### 6. Revised Versions of the GNU Lesser General Public License
143
-
144
- The Free Software Foundation may publish revised and/or new versions
145
- of the GNU Lesser General Public License from time to time. Such new
146
- versions will be similar in spirit to the present version, but may
147
- differ in detail to address new problems or concerns.
148
-
149
- Each version is given a distinguishing version number. If the
150
- Library as you received it specifies that a certain numbered version
151
- of the GNU Lesser General Public License “or any later version”
152
- applies to it, you have the option of following the terms and
153
- conditions either of that published version or of any later version
154
- published by the Free Software Foundation. If the Library as you
155
- received it does not specify a version number of the GNU Lesser
156
- General Public License, you may choose any version of the GNU Lesser
157
- General Public License ever published by the Free Software Foundation.
158
-
159
- If the Library as you received it specifies that a proxy can decide
160
- whether future versions of the GNU Lesser General Public License shall
161
- apply, that proxy's public statement of acceptance of any version is
162
- permanent authorization for you to choose that version for the
163
- Library.
1
+ GNU Lesser General Public License
2
+ =================================
3
+
4
+ _Version 3, 29 June 2007_
5
+ _Copyright © 2007 Free Software Foundation, Inc. &lt;<http://fsf.org/>&gt;_
6
+
7
+ Everyone is permitted to copy and distribute verbatim copies
8
+ of this license document, but changing it is not allowed.
9
+
10
+
11
+ This version of the GNU Lesser General Public License incorporates
12
+ the terms and conditions of version 3 of the GNU General Public
13
+ License, supplemented by the additional permissions listed below.
14
+
15
+ ### 0. Additional Definitions
16
+
17
+ As used herein, “this License” refers to version 3 of the GNU Lesser
18
+ General Public License, and the “GNU GPL” refers to version 3 of the GNU
19
+ General Public License.
20
+
21
+ “The Library” refers to a covered work governed by this License,
22
+ other than an Application or a Combined Work as defined below.
23
+
24
+ An “Application” is any work that makes use of an interface provided
25
+ by the Library, but which is not otherwise based on the Library.
26
+ Defining a subclass of a class defined by the Library is deemed a mode
27
+ of using an interface provided by the Library.
28
+
29
+ A “Combined Work” is a work produced by combining or linking an
30
+ Application with the Library. The particular version of the Library
31
+ with which the Combined Work was made is also called the “Linked
32
+ Version”.
33
+
34
+ The “Minimal Corresponding Source” for a Combined Work means the
35
+ Corresponding Source for the Combined Work, excluding any source code
36
+ for portions of the Combined Work that, considered in isolation, are
37
+ based on the Application, and not on the Linked Version.
38
+
39
+ The “Corresponding Application Code” for a Combined Work means the
40
+ object code and/or source code for the Application, including any data
41
+ and utility programs needed for reproducing the Combined Work from the
42
+ Application, but excluding the System Libraries of the Combined Work.
43
+
44
+ ### 1. Exception to Section 3 of the GNU GPL
45
+
46
+ You may convey a covered work under sections 3 and 4 of this License
47
+ without being bound by section 3 of the GNU GPL.
48
+
49
+ ### 2. Conveying Modified Versions
50
+
51
+ If you modify a copy of the Library, and, in your modifications, a
52
+ facility refers to a function or data to be supplied by an Application
53
+ that uses the facility (other than as an argument passed when the
54
+ facility is invoked), then you may convey a copy of the modified
55
+ version:
56
+
57
+ * **a)** under this License, provided that you make a good faith effort to
58
+ ensure that, in the event an Application does not supply the
59
+ function or data, the facility still operates, and performs
60
+ whatever part of its purpose remains meaningful, or
61
+
62
+ * **b)** under the GNU GPL, with none of the additional permissions of
63
+ this License applicable to that copy.
64
+
65
+ ### 3. Object Code Incorporating Material from Library Header Files
66
+
67
+ The object code form of an Application may incorporate material from
68
+ a header file that is part of the Library. You may convey such object
69
+ code under terms of your choice, provided that, if the incorporated
70
+ material is not limited to numerical parameters, data structure
71
+ layouts and accessors, or small macros, inline functions and templates
72
+ (ten or fewer lines in length), you do both of the following:
73
+
74
+ * **a)** Give prominent notice with each copy of the object code that the
75
+ Library is used in it and that the Library and its use are
76
+ covered by this License.
77
+ * **b)** Accompany the object code with a copy of the GNU GPL and this license
78
+ document.
79
+
80
+ ### 4. Combined Works
81
+
82
+ You may convey a Combined Work under terms of your choice that,
83
+ taken together, effectively do not restrict modification of the
84
+ portions of the Library contained in the Combined Work and reverse
85
+ engineering for debugging such modifications, if you also do each of
86
+ the following:
87
+
88
+ * **a)** Give prominent notice with each copy of the Combined Work that
89
+ the Library is used in it and that the Library and its use are
90
+ covered by this License.
91
+
92
+ * **b)** Accompany the Combined Work with a copy of the GNU GPL and this license
93
+ document.
94
+
95
+ * **c)** For a Combined Work that displays copyright notices during
96
+ execution, include the copyright notice for the Library among
97
+ these notices, as well as a reference directing the user to the
98
+ copies of the GNU GPL and this license document.
99
+
100
+ * **d)** Do one of the following:
101
+ - **0)** Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+ - **1)** Use a suitable shared library mechanism for linking with the
109
+ Library. A suitable mechanism is one that **(a)** uses at run time
110
+ a copy of the Library already present on the user's computer
111
+ system, and **(b)** will operate properly with a modified version
112
+ of the Library that is interface-compatible with the Linked
113
+ Version.
114
+
115
+ * **e)** Provide Installation Information, but only if you would otherwise
116
+ be required to provide such information under section 6 of the
117
+ GNU GPL, and only to the extent that such information is
118
+ necessary to install and execute a modified version of the
119
+ Combined Work produced by recombining or relinking the
120
+ Application with a modified version of the Linked Version. (If
121
+ you use option **4d0**, the Installation Information must accompany
122
+ the Minimal Corresponding Source and Corresponding Application
123
+ Code. If you use option **4d1**, you must provide the Installation
124
+ Information in the manner specified by section 6 of the GNU GPL
125
+ for conveying Corresponding Source.)
126
+
127
+ ### 5. Combined Libraries
128
+
129
+ You may place library facilities that are a work based on the
130
+ Library side by side in a single library together with other library
131
+ facilities that are not Applications and are not covered by this
132
+ License, and convey such a combined library under terms of your
133
+ choice, if you do both of the following:
134
+
135
+ * **a)** Accompany the combined library with a copy of the same work based
136
+ on the Library, uncombined with any other library facilities,
137
+ conveyed under the terms of this License.
138
+ * **b)** Give prominent notice with the combined library that part of it
139
+ is a work based on the Library, and explaining where to find the
140
+ accompanying uncombined form of the same work.
141
+
142
+ ### 6. Revised Versions of the GNU Lesser General Public License
143
+
144
+ The Free Software Foundation may publish revised and/or new versions
145
+ of the GNU Lesser General Public License from time to time. Such new
146
+ versions will be similar in spirit to the present version, but may
147
+ differ in detail to address new problems or concerns.
148
+
149
+ Each version is given a distinguishing version number. If the
150
+ Library as you received it specifies that a certain numbered version
151
+ of the GNU Lesser General Public License “or any later version”
152
+ applies to it, you have the option of following the terms and
153
+ conditions either of that published version or of any later version
154
+ published by the Free Software Foundation. If the Library as you
155
+ received it does not specify a version number of the GNU Lesser
156
+ General Public License, you may choose any version of the GNU Lesser
157
+ General Public License ever published by the Free Software Foundation.
158
+
159
+ If the Library as you received it specifies that a proxy can decide
160
+ whether future versions of the GNU Lesser General Public License shall
161
+ apply, that proxy's public statement of acceptance of any version is
162
+ permanent authorization for you to choose that version for the
163
+ Library.
@@ -1,2 +1,2 @@
1
- exclude **/*.c **/*.h tests/*
2
- include pyboy/default_rom.gb
1
+ exclude **/*.c **/*.h tests/*
2
+ include pyboy/default_rom.gb
pyboy-2.6.0/PKG-INFO ADDED
@@ -0,0 +1,228 @@
1
+ Metadata-Version: 2.4
2
+ Name: pyboy
3
+ Version: 2.6.0
4
+ Summary: Game Boy emulator written in Python
5
+ Author-email: Mads Ynddal <mads@ynddal.dk>
6
+ License-Expression: LGPL-3.0-only
7
+ Project-URL: Homepage, https://github.com/Baekalfen/PyBoy
8
+ Project-URL: Documentation, https://docs.pyboy.dk/index.html
9
+ Project-URL: Repository, https://github.com/Baekalfen/PyBoy.git
10
+ Keywords: gameboy,game boy,emulator,cython,pypy
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Cython
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
15
+ Classifier: Topic :: System :: Emulators
16
+ Requires-Python: >=3.9
17
+ Description-Content-Type: text/markdown
18
+ License-File: LICENSE.md
19
+ Requires-Dist: numpy
20
+ Requires-Dist: pysdl2
21
+ Requires-Dist: pysdl2-dll
22
+ Provides-Extra: all
23
+ Requires-Dist: pyopengl; extra == "all"
24
+ Requires-Dist: markdown; extra == "all"
25
+ Requires-Dist: pdoc3; extra == "all"
26
+ Requires-Dist: gym; extra == "all"
27
+ Dynamic: license-file
28
+
29
+ <p align="center">
30
+ <img src="extras/README/pyboy.svg" width="480">
31
+ </p>
32
+
33
+ __If you have any questions, or just want to chat, [join us on Discord](https://discord.gg/wUbag3KNqQ).__
34
+
35
+ [![Discord](https://img.shields.io/discord/584149554132418570?style=for-the-badge&logo=Discord&label=PyBoy)](https://discord.gg/wUbag3KNqQ)
36
+
37
+ <!---
38
+ Generate GIF with the layout and captions
39
+ -->
40
+ <table>
41
+ <tbody>
42
+ <tr>
43
+ <td colspan=2 align="center"><a href=https://github.com/PWhiddy/PokemonRedExperiments>Train RL agents to play Pokemon Red</a>
44
+ </td>
45
+ <td align="center"><a href=https://github.com/Baekalfen/PyBoy/wiki/Experimental-and-optional-features#rewind-time>Rewind any game</a><br>
46
+ </td>
47
+ </tr>
48
+ <tr>
49
+ <td colspan=2 align="center">
50
+ <div align="center">
51
+ <a href="http://www.youtube.com/watch?feature=player_embedded&v=DcYLT37ImBY" target="_blank">
52
+ <img src="http://img.youtube.com/vi/DcYLT37ImBY/maxresdefault.jpg" alt="Watch the video" width="500" border="10" />
53
+ <!-- <img src="http://img.youtube.com/vi/DcYLT37ImBY/hqdefault.jpg" alt="Watch the video" width="500" border="10" /> -->
54
+ </a>
55
+ <!-- https://www.youtube.com/watch?v=DcYLT37ImBY -->
56
+ <!-- <img src="extras/README/8.gif" width="400"><br> -->
57
+ </div>
58
+ </td>
59
+ <td align="center">
60
+ <img src="extras/README/5.gif" width="250">
61
+ </td>
62
+ </tr>
63
+ <tr>
64
+ <td align="center">Play the classics<br>
65
+ </td>
66
+ <td align="center"><a href=https://github.com/lixado/PyBoy-RL>Create your own AI</a><br>
67
+ </td>
68
+ <td align="center"><a href=https://github.com/uiucanh/tetris>Beat world records with AI</a><br>
69
+ </td>
70
+ </tr>
71
+ <tr>
72
+ <td align="center">
73
+ <img src="extras/README/1.gif" width="250">
74
+ </td>
75
+ <td align="center">
76
+ <img src="extras/README/6.gif" width="250">
77
+ </td>
78
+ <td align="center">
79
+ <img src="extras/README/7.gif" width="250">
80
+ </td>
81
+ </tr>
82
+ </tbody>
83
+ </table>
84
+
85
+ Getting Started
86
+ ===============
87
+ The instructions are simple:
88
+
89
+ ```sh
90
+ $ pip install pyboy
91
+ ```
92
+
93
+ For details, see [installation instructions](https://github.com/Baekalfen/PyBoy/wiki/Installation).
94
+
95
+ Now you're ready! Either use PyBoy directly from the terminal
96
+ ```sh
97
+ $ pyboy game_rom.gb
98
+ ```
99
+
100
+ Or use it in your Python scripts:
101
+ ```python
102
+ from pyboy import PyBoy
103
+ pyboy = PyBoy('game_rom.gb')
104
+ while pyboy.tick():
105
+ pass
106
+ pyboy.stop()
107
+ ```
108
+
109
+ <!-- Or using the context manager:
110
+ ```python
111
+ from pyboy import PyBoy
112
+ with PyBoy('game_rom.gb') as pyboy:
113
+ while pyboy.tick():
114
+ pass
115
+ ``` -->
116
+
117
+
118
+ The API
119
+ =======
120
+
121
+ If you are looking to make a bot or AI, then these resources are a good place to start:
122
+ * [PyBoy API Documentation](https://baekalfen.github.io/PyBoy/index.html)
123
+ * [Wiki Pages](https://github.com/Baekalfen/PyBoy/wiki/)
124
+ * [Using PyBoy with Gym](https://github.com/Baekalfen/PyBoy/wiki/Using-PyBoy-with-Gym)
125
+ * [Example: Kirby](https://github.com/Baekalfen/PyBoy/wiki/Example-Kirby)
126
+ * [Example: Tetris](https://github.com/Baekalfen/PyBoy/wiki/Example-Tetris)
127
+ * [Example: Super Mario Land](https://github.com/Baekalfen/PyBoy/wiki/Example-Super-Mario-Land)
128
+ * [Code Examples](https://github.com/Baekalfen/PyBoy/tree/master/extras/examples)
129
+ * [Discord](https://discord.gg/wUbag3KNqQ)
130
+
131
+
132
+ When the emulator is running, you can easily access [PyBoy's API](https://baekalfen.github.io/PyBoy/index.html):
133
+ ```python
134
+ pyboy.set_emulation_speed(0) # No speed limit
135
+ pyboy.button('down')
136
+ pyboy.button('a')
137
+ pyboy.tick() # Process at least one frame to let the game register the input
138
+ value_of_interest = pyboy.memory[0xC345]
139
+
140
+ pil_image = pyboy.screen.image
141
+ pil_image.save('screenshot.png')
142
+ ```
143
+
144
+ The [Wiki](https://github.com/Baekalfen/PyBoy/wiki) shows how to interface with PyBoy from your own project.
145
+
146
+ Performance
147
+ ===========
148
+
149
+ Performance is a priority for PyBoy, to make your AI training and scripts as fast as possible.
150
+
151
+ The easiest way to improve your performance, is to skip rendering of unnecessary frames. If you know your
152
+ character takes X frames to move, or the game doesn't take input every frame, you can skip those to potentially triple
153
+ your performance. All game logic etc. will still process.
154
+
155
+ Here is a simple comparison of rendering every frame, rendering every 15th frame, and not rendering any frames (higher is better). See [`pyboy.tick`](https://docs.pyboy.dk/#pyboy.PyBoy.tick) for how it works. Your performance will depend on the game.
156
+
157
+ <table>
158
+ <tbody>
159
+ <tr>
160
+ <td align="center">
161
+ Full rendering
162
+ </td>
163
+ <td align="center">
164
+ Frame-skip 15
165
+ </td>
166
+ <td align="center">
167
+ No rendering
168
+ </td>
169
+ </tr>
170
+ <tr>
171
+ <td>
172
+ x124 realtime
173
+ </td>
174
+ <td>
175
+ x344 realtime
176
+ </td>
177
+ <td>
178
+ x395 realtime
179
+ </td>
180
+ </tr>
181
+ <tr> <!-- Markdown/HTML broken after this -->
182
+ <td>
183
+
184
+ ```python
185
+ for _ in range(target):
186
+ pyboy.tick()
187
+
188
+ ```
189
+ </td>
190
+ <td >
191
+
192
+ ```python
193
+ for _ in range(target//15):
194
+ pyboy.tick(15)
195
+
196
+ ```
197
+ </td>
198
+ <td >
199
+
200
+ ```python
201
+ pyboy.tick(target, False)
202
+
203
+ ```
204
+ </td>
205
+ </tr>
206
+ </tbody>
207
+ </table>
208
+
209
+ The Game Boy was originally running at 60 frames per second, so a speed-up of 100x realtime is 6,000 frames per
210
+ second. And trivially from the table above, simulating 395 hours of gameplay can be done in 1 hour with no rendering.
211
+
212
+ It's also recommended to be running multiple instances of PyBoy in parallel. On an 8-core machine, you could potentially
213
+ do 3160 hours of gameplay in 1 hour.
214
+
215
+ Contributing
216
+ ============
217
+ Any contribution is appreciated. The currently known problems are tracked in [the Issues tab](https://github.com/Baekalfen/PyBoy/issues). Feel free to take a swing at any one of them. If you have something original in mind, come and [discuss it on on Discord](https://discord.gg/wUbag3KNqQ).
218
+
219
+ [![Discord](https://img.shields.io/discord/584149554132418570?style=for-the-badge&logo=Discord&label=PyBoy)](https://discord.gg/wUbag3KNqQ)
220
+
221
+ For the more major features, there are the following that you can give a try. They are also described in more detail in the [project list in the Wiki](https://github.com/Baekalfen/PyBoy/wiki/Student-Projects):
222
+ * Hacking games
223
+ * Link Cable
224
+ * Debugger (VSCode, GDB, terminal or otherwise)
225
+ * AI - [use the `api`](https://baekalfen.github.io/PyBoy/index.html) or game wrappers to train a neural network
226
+ * Game Wrappers - make wrappers for popular games
227
+
228
+ If you want to implement something which is not on the list, feel free to do so anyway. If you want to merge it into our repo, then just send a pull request and we will have a look at it.