raylib 5.5.0.0__tar.gz → 5.5.0.1__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.

Potentially problematic release.


This version of raylib might be problematic. Click here for more details.

Files changed (32) hide show
  1. {raylib-5.5.0.0/raylib.egg-info → raylib-5.5.0.1}/PKG-INFO +64 -32
  2. {raylib-5.5.0.0 → raylib-5.5.0.1}/README.md +63 -31
  3. raylib-5.5.0.1/raylib/version.py +1 -0
  4. {raylib-5.5.0.0 → raylib-5.5.0.1/raylib.egg-info}/PKG-INFO +64 -32
  5. {raylib-5.5.0.0 → raylib-5.5.0.1}/setup.py +4 -4
  6. raylib-5.5.0.1/version.py +1 -0
  7. raylib-5.5.0.0/raylib/version.py +0 -1
  8. raylib-5.5.0.0/version.py +0 -1
  9. {raylib-5.5.0.0 → raylib-5.5.0.1}/LICENSE +0 -0
  10. {raylib-5.5.0.0 → raylib-5.5.0.1}/MANIFEST.in +0 -0
  11. {raylib-5.5.0.0 → raylib-5.5.0.1}/pyproject.toml +0 -0
  12. {raylib-5.5.0.0 → raylib-5.5.0.1}/pyray/__init__.py +0 -0
  13. {raylib-5.5.0.0 → raylib-5.5.0.1}/pyray/__init__.pyi +0 -0
  14. {raylib-5.5.0.0 → raylib-5.5.0.1}/pyray/py.typed +0 -0
  15. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib/__init__.py +0 -0
  16. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib/__init__.pyi +0 -0
  17. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib/build.py +0 -0
  18. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib/colors.py +0 -0
  19. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib/defines.py +0 -0
  20. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib/enums.py +0 -0
  21. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib/glfw3.h.modified +0 -0
  22. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib/physac.h.modified +0 -0
  23. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib/py.typed +0 -0
  24. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib/raygui.h.modified +0 -0
  25. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib/raylib.h.modified +0 -0
  26. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib/raymath.h.modified +0 -0
  27. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib/rlgl.h.modified +0 -0
  28. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib.egg-info/SOURCES.txt +0 -0
  29. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib.egg-info/dependency_links.txt +0 -0
  30. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib.egg-info/requires.txt +0 -0
  31. {raylib-5.5.0.0 → raylib-5.5.0.1}/raylib.egg-info/top_level.txt +0 -0
  32. {raylib-5.5.0.0 → raylib-5.5.0.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: raylib
3
- Version: 5.5.0.0
3
+ Version: 5.5.0.1
4
4
  Summary: Python CFFI bindings for Raylib
5
5
  Home-page: https://github.com/electronstudio/raylib-python-cffi
6
6
  Author: Electron Studio
@@ -22,22 +22,30 @@ Requires-Dist: cffi>=1.17.1
22
22
  # Python Bindings for Raylib 5.5
23
23
  ## Libraries: raymath, raygui, rlgl, physac and GLFW
24
24
  ## Backends: Desktop, SDL, DRM, Web
25
+ ## Platforms: Windows, Mac, Linux, Raspberry Pi, Web
26
+
27
+ ![PyPI - Downloads](https://img.shields.io/pypi/dm/raylib)
25
28
 
26
29
  Chatroom: [Discord](https://discord.gg/fKDwt85aX6)
27
30
 
28
- New CFFI API static bindings.
31
+ HELP WANTED: [writing examples](https://github.com/electronstudio/raylib-python-cffi/issues/155)
32
+
33
+ Features:
34
+
35
+ * CFFI API static bindings.
29
36
  * Automatically generated to be as close as possible to
30
37
  original Raylib.
31
38
  * Faster, fewer bugs and easier to maintain than ctypes.
32
39
  * Commercial-friendly license.
33
40
  * Docstrings and auto-completion.
41
+ * Type checking with Mypy
34
42
 
35
43
 
36
44
  [Full documentation](http://electronstudio.github.io/raylib-python-cffi)
37
45
 
38
46
  # Quickstart
39
47
 
40
- `pip3 install raylib==5.0.0.4`
48
+ `pip3 install raylib==5.5.0.0`
41
49
  ```python
42
50
  from pyray import *
43
51
  init_window(800, 450, "Hello")
@@ -58,7 +66,7 @@ First make sure you have the latest pip installed:
58
66
  Then install
59
67
 
60
68
  python3 -m pip install setuptools
61
- python3 -m pip install raylib==5.0.0.4
69
+ python3 -m pip install raylib==5.5.0.0
62
70
 
63
71
  On most platforms it should install a binary wheel. If yours isn't available then pip will attempt to build from
64
72
  source, in which case you will need to have Raylib development libs installed, e.g.
@@ -80,7 +88,7 @@ Older MacOS requires building from source but this is usually simple:
80
88
 
81
89
  brew install pkg-config
82
90
  brew install raylib
83
- python3 -m pip install raylib==5.0.0.4
91
+ python3 -m pip install raylib==5.5.0.0
84
92
 
85
93
  (I do have binaries for arm64 MacOS 11, 12 and 13 but I have no way of testing they work, so post an issue
86
94
  if you want to test them.)
@@ -97,6 +105,8 @@ so may not work on other boards.
97
105
 
98
106
  [Using on Rasperry Pi](RPI.rst)
99
107
 
108
+ # Backends
109
+
100
110
  ## Dynamic binding version
101
111
 
102
112
  There is now a separate dynamic version of this binding:
@@ -106,6 +116,8 @@ There is now a separate dynamic version of this binding:
106
116
 
107
117
  It works on some systems where the static version doesn't, [but be sure to read these caveats before using it](https://electronstudio.github.io/raylib-python-cffi/dynamic.html)
108
118
 
119
+ You can't have multiple raylib packages installed at once.
120
+
109
121
  ## SDL backend
110
122
 
111
123
  This is not well tested but has better support for controllers:
@@ -137,53 +149,63 @@ If it still doesn't work, [submit an issue](https://github.com/electronstudio/ra
137
149
 
138
150
  # How to use
139
151
 
140
- There are two modules in the raylib package, `raylib` and `pyray`. (There is no separate package for
141
- pyray). You can use either or both:
152
+ There are *two* modules in the raylib package, `raylib` and `pyray`. (There is no separate package for
153
+ pyray. Do *not* `pip install pyray`). You can use either or both:
142
154
 
143
155
  ### If you are familiar with C coding and the Raylib C library and you want to use an exact copy of the C API
144
156
 
145
157
  Use [the raylib module](https://electronstudio.github.io/raylib-python-cffi/raylib.html).
146
158
 
147
- ### If you prefer a more Pythonistic API
159
+ ### If you prefer a more Pythonistic API
148
160
 
149
161
  Use [the pyray module](https://electronstudio.github.io/raylib-python-cffi/pyray.html).
150
162
 
151
163
  # Running in a web browser
152
164
 
153
- [Pygbag](https://pypi.org/project/pygbag/) >=0.8.7 supports running in a web browser.
165
+ [Pygbag](https://pypi.org/project/pygbag/) >=0.8.7 supports running in a web browser. Usually the latest git version
166
+ is recommended.
154
167
 
155
168
  Make a folder `my_project` with a file `main.py`:
156
169
 
157
- # /// script
158
- # dependencies = [
159
- # "cffi",
160
- # "raylib"
161
- # ]
162
- # ///
163
- import asyncio
164
- import platform
165
- from pyray import *
166
-
167
- async def main(): # You must have an async main function
168
- init_window(500, 500, "Hello")
169
- platform.window.window_resize() # You must add this line
170
- while not window_should_close():
171
- begin_drawing()
172
- clear_background(WHITE)
173
- draw_text("Hello world", 190, 200, 20, VIOLET)
174
- end_drawing()
175
- await asyncio.sleep(0) # You must call this in your main loop
176
- close_window()
177
-
178
- asyncio.run(main())
170
+ ```python
171
+ # /// script
172
+ # dependencies = [
173
+ # "cffi",
174
+ # "raylib"
175
+ # ]
176
+ # ///
177
+ import asyncio
178
+ import platform
179
+ from pyray import *
180
+
181
+ async def main(): # You MUST have an async main function
182
+ init_window(500, 500, "Hello")
183
+ platform.window.window_resize() # You MAY want to add this line
184
+ while not window_should_close():
185
+ begin_drawing()
186
+ clear_background(WHITE)
187
+ draw_text("Hello world", 190, 200, 20, VIOLET)
188
+ end_drawing()
189
+ await asyncio.sleep(0) # You MUST call this in your main loop
190
+ close_window()
191
+
192
+ asyncio.run(main())
193
+ ```
179
194
 
180
195
  Then to create the web files and launch a web server:
181
196
 
182
197
  python3.12 -m pip install --user --upgrade pygbag
183
- python3.12 -m pygbag --PYBUILD 3.12 --ume_block 0 --template noctx.tmpl my_project
198
+ python3.12 -m pygbag --PYBUILD 3.12 --ume_block 0 --template noctx.tmpl --git my_project
184
199
 
185
200
  Point your browser to http://localhost:8000
186
201
 
202
+ Some features may not work, so you can disable them like this:
203
+
204
+ ```python
205
+ if platform.system() != "Emscripten": # audio does not work on current version of emscripten
206
+ init_audio_device()
207
+ ```
208
+
187
209
  This is all done by Pygbag rather than by me, so you should probably contact them with any issues.
188
210
  Carefully read all their [documentation](https://pygame-web.github.io/).
189
211
 
@@ -191,10 +213,20 @@ It does work for most of [these examples](https://electronstudio.github.io/rayli
191
213
 
192
214
  # App showcase
193
215
 
216
+ [Tempest-raylib](https://github.com/Emtyloc/tempest-raylib)
217
+
218
+ [KarabinerKeyboard](https://github.com/bilbofroggins/KarabinerKeyboard)
219
+
220
+ [PyTaiko](https://github.com/Yonokid/PyTaiko)
221
+
222
+ [DOOM-Clone](https://github.com/StanislavPetrovV/DOOM-Clone)
223
+
194
224
  [Tanki](https://github.com/pkulev/tanki)
195
225
 
196
226
  [Alloy Bloxel Editor](https://pebaz.itch.io/alloy-bloxel-editor)
197
227
 
228
+ [Eidolon](https://github.com/Miou-zora/Eidolon)
229
+
198
230
  Add your app here!
199
231
 
200
232
  # RLZero
@@ -1,22 +1,30 @@
1
1
  # Python Bindings for Raylib 5.5
2
2
  ## Libraries: raymath, raygui, rlgl, physac and GLFW
3
3
  ## Backends: Desktop, SDL, DRM, Web
4
+ ## Platforms: Windows, Mac, Linux, Raspberry Pi, Web
5
+
6
+ ![PyPI - Downloads](https://img.shields.io/pypi/dm/raylib)
4
7
 
5
8
  Chatroom: [Discord](https://discord.gg/fKDwt85aX6)
6
9
 
7
- New CFFI API static bindings.
10
+ HELP WANTED: [writing examples](https://github.com/electronstudio/raylib-python-cffi/issues/155)
11
+
12
+ Features:
13
+
14
+ * CFFI API static bindings.
8
15
  * Automatically generated to be as close as possible to
9
16
  original Raylib.
10
17
  * Faster, fewer bugs and easier to maintain than ctypes.
11
18
  * Commercial-friendly license.
12
19
  * Docstrings and auto-completion.
20
+ * Type checking with Mypy
13
21
 
14
22
 
15
23
  [Full documentation](http://electronstudio.github.io/raylib-python-cffi)
16
24
 
17
25
  # Quickstart
18
26
 
19
- `pip3 install raylib==5.0.0.4`
27
+ `pip3 install raylib==5.5.0.0`
20
28
  ```python
21
29
  from pyray import *
22
30
  init_window(800, 450, "Hello")
@@ -37,7 +45,7 @@ First make sure you have the latest pip installed:
37
45
  Then install
38
46
 
39
47
  python3 -m pip install setuptools
40
- python3 -m pip install raylib==5.0.0.4
48
+ python3 -m pip install raylib==5.5.0.0
41
49
 
42
50
  On most platforms it should install a binary wheel. If yours isn't available then pip will attempt to build from
43
51
  source, in which case you will need to have Raylib development libs installed, e.g.
@@ -59,7 +67,7 @@ Older MacOS requires building from source but this is usually simple:
59
67
 
60
68
  brew install pkg-config
61
69
  brew install raylib
62
- python3 -m pip install raylib==5.0.0.4
70
+ python3 -m pip install raylib==5.5.0.0
63
71
 
64
72
  (I do have binaries for arm64 MacOS 11, 12 and 13 but I have no way of testing they work, so post an issue
65
73
  if you want to test them.)
@@ -76,6 +84,8 @@ so may not work on other boards.
76
84
 
77
85
  [Using on Rasperry Pi](RPI.rst)
78
86
 
87
+ # Backends
88
+
79
89
  ## Dynamic binding version
80
90
 
81
91
  There is now a separate dynamic version of this binding:
@@ -85,6 +95,8 @@ There is now a separate dynamic version of this binding:
85
95
 
86
96
  It works on some systems where the static version doesn't, [but be sure to read these caveats before using it](https://electronstudio.github.io/raylib-python-cffi/dynamic.html)
87
97
 
98
+ You can't have multiple raylib packages installed at once.
99
+
88
100
  ## SDL backend
89
101
 
90
102
  This is not well tested but has better support for controllers:
@@ -116,53 +128,63 @@ If it still doesn't work, [submit an issue](https://github.com/electronstudio/ra
116
128
 
117
129
  # How to use
118
130
 
119
- There are two modules in the raylib package, `raylib` and `pyray`. (There is no separate package for
120
- pyray). You can use either or both:
131
+ There are *two* modules in the raylib package, `raylib` and `pyray`. (There is no separate package for
132
+ pyray. Do *not* `pip install pyray`). You can use either or both:
121
133
 
122
134
  ### If you are familiar with C coding and the Raylib C library and you want to use an exact copy of the C API
123
135
 
124
136
  Use [the raylib module](https://electronstudio.github.io/raylib-python-cffi/raylib.html).
125
137
 
126
- ### If you prefer a more Pythonistic API
138
+ ### If you prefer a more Pythonistic API
127
139
 
128
140
  Use [the pyray module](https://electronstudio.github.io/raylib-python-cffi/pyray.html).
129
141
 
130
142
  # Running in a web browser
131
143
 
132
- [Pygbag](https://pypi.org/project/pygbag/) >=0.8.7 supports running in a web browser.
144
+ [Pygbag](https://pypi.org/project/pygbag/) >=0.8.7 supports running in a web browser. Usually the latest git version
145
+ is recommended.
133
146
 
134
147
  Make a folder `my_project` with a file `main.py`:
135
148
 
136
- # /// script
137
- # dependencies = [
138
- # "cffi",
139
- # "raylib"
140
- # ]
141
- # ///
142
- import asyncio
143
- import platform
144
- from pyray import *
145
-
146
- async def main(): # You must have an async main function
147
- init_window(500, 500, "Hello")
148
- platform.window.window_resize() # You must add this line
149
- while not window_should_close():
150
- begin_drawing()
151
- clear_background(WHITE)
152
- draw_text("Hello world", 190, 200, 20, VIOLET)
153
- end_drawing()
154
- await asyncio.sleep(0) # You must call this in your main loop
155
- close_window()
156
-
157
- asyncio.run(main())
149
+ ```python
150
+ # /// script
151
+ # dependencies = [
152
+ # "cffi",
153
+ # "raylib"
154
+ # ]
155
+ # ///
156
+ import asyncio
157
+ import platform
158
+ from pyray import *
159
+
160
+ async def main(): # You MUST have an async main function
161
+ init_window(500, 500, "Hello")
162
+ platform.window.window_resize() # You MAY want to add this line
163
+ while not window_should_close():
164
+ begin_drawing()
165
+ clear_background(WHITE)
166
+ draw_text("Hello world", 190, 200, 20, VIOLET)
167
+ end_drawing()
168
+ await asyncio.sleep(0) # You MUST call this in your main loop
169
+ close_window()
170
+
171
+ asyncio.run(main())
172
+ ```
158
173
 
159
174
  Then to create the web files and launch a web server:
160
175
 
161
176
  python3.12 -m pip install --user --upgrade pygbag
162
- python3.12 -m pygbag --PYBUILD 3.12 --ume_block 0 --template noctx.tmpl my_project
177
+ python3.12 -m pygbag --PYBUILD 3.12 --ume_block 0 --template noctx.tmpl --git my_project
163
178
 
164
179
  Point your browser to http://localhost:8000
165
180
 
181
+ Some features may not work, so you can disable them like this:
182
+
183
+ ```python
184
+ if platform.system() != "Emscripten": # audio does not work on current version of emscripten
185
+ init_audio_device()
186
+ ```
187
+
166
188
  This is all done by Pygbag rather than by me, so you should probably contact them with any issues.
167
189
  Carefully read all their [documentation](https://pygame-web.github.io/).
168
190
 
@@ -170,10 +192,20 @@ It does work for most of [these examples](https://electronstudio.github.io/rayli
170
192
 
171
193
  # App showcase
172
194
 
195
+ [Tempest-raylib](https://github.com/Emtyloc/tempest-raylib)
196
+
197
+ [KarabinerKeyboard](https://github.com/bilbofroggins/KarabinerKeyboard)
198
+
199
+ [PyTaiko](https://github.com/Yonokid/PyTaiko)
200
+
201
+ [DOOM-Clone](https://github.com/StanislavPetrovV/DOOM-Clone)
202
+
173
203
  [Tanki](https://github.com/pkulev/tanki)
174
204
 
175
205
  [Alloy Bloxel Editor](https://pebaz.itch.io/alloy-bloxel-editor)
176
206
 
207
+ [Eidolon](https://github.com/Miou-zora/Eidolon)
208
+
177
209
  Add your app here!
178
210
 
179
211
  # RLZero
@@ -0,0 +1 @@
1
+ __version__ = "5.5.0.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: raylib
3
- Version: 5.5.0.0
3
+ Version: 5.5.0.1
4
4
  Summary: Python CFFI bindings for Raylib
5
5
  Home-page: https://github.com/electronstudio/raylib-python-cffi
6
6
  Author: Electron Studio
@@ -22,22 +22,30 @@ Requires-Dist: cffi>=1.17.1
22
22
  # Python Bindings for Raylib 5.5
23
23
  ## Libraries: raymath, raygui, rlgl, physac and GLFW
24
24
  ## Backends: Desktop, SDL, DRM, Web
25
+ ## Platforms: Windows, Mac, Linux, Raspberry Pi, Web
26
+
27
+ ![PyPI - Downloads](https://img.shields.io/pypi/dm/raylib)
25
28
 
26
29
  Chatroom: [Discord](https://discord.gg/fKDwt85aX6)
27
30
 
28
- New CFFI API static bindings.
31
+ HELP WANTED: [writing examples](https://github.com/electronstudio/raylib-python-cffi/issues/155)
32
+
33
+ Features:
34
+
35
+ * CFFI API static bindings.
29
36
  * Automatically generated to be as close as possible to
30
37
  original Raylib.
31
38
  * Faster, fewer bugs and easier to maintain than ctypes.
32
39
  * Commercial-friendly license.
33
40
  * Docstrings and auto-completion.
41
+ * Type checking with Mypy
34
42
 
35
43
 
36
44
  [Full documentation](http://electronstudio.github.io/raylib-python-cffi)
37
45
 
38
46
  # Quickstart
39
47
 
40
- `pip3 install raylib==5.0.0.4`
48
+ `pip3 install raylib==5.5.0.0`
41
49
  ```python
42
50
  from pyray import *
43
51
  init_window(800, 450, "Hello")
@@ -58,7 +66,7 @@ First make sure you have the latest pip installed:
58
66
  Then install
59
67
 
60
68
  python3 -m pip install setuptools
61
- python3 -m pip install raylib==5.0.0.4
69
+ python3 -m pip install raylib==5.5.0.0
62
70
 
63
71
  On most platforms it should install a binary wheel. If yours isn't available then pip will attempt to build from
64
72
  source, in which case you will need to have Raylib development libs installed, e.g.
@@ -80,7 +88,7 @@ Older MacOS requires building from source but this is usually simple:
80
88
 
81
89
  brew install pkg-config
82
90
  brew install raylib
83
- python3 -m pip install raylib==5.0.0.4
91
+ python3 -m pip install raylib==5.5.0.0
84
92
 
85
93
  (I do have binaries for arm64 MacOS 11, 12 and 13 but I have no way of testing they work, so post an issue
86
94
  if you want to test them.)
@@ -97,6 +105,8 @@ so may not work on other boards.
97
105
 
98
106
  [Using on Rasperry Pi](RPI.rst)
99
107
 
108
+ # Backends
109
+
100
110
  ## Dynamic binding version
101
111
 
102
112
  There is now a separate dynamic version of this binding:
@@ -106,6 +116,8 @@ There is now a separate dynamic version of this binding:
106
116
 
107
117
  It works on some systems where the static version doesn't, [but be sure to read these caveats before using it](https://electronstudio.github.io/raylib-python-cffi/dynamic.html)
108
118
 
119
+ You can't have multiple raylib packages installed at once.
120
+
109
121
  ## SDL backend
110
122
 
111
123
  This is not well tested but has better support for controllers:
@@ -137,53 +149,63 @@ If it still doesn't work, [submit an issue](https://github.com/electronstudio/ra
137
149
 
138
150
  # How to use
139
151
 
140
- There are two modules in the raylib package, `raylib` and `pyray`. (There is no separate package for
141
- pyray). You can use either or both:
152
+ There are *two* modules in the raylib package, `raylib` and `pyray`. (There is no separate package for
153
+ pyray. Do *not* `pip install pyray`). You can use either or both:
142
154
 
143
155
  ### If you are familiar with C coding and the Raylib C library and you want to use an exact copy of the C API
144
156
 
145
157
  Use [the raylib module](https://electronstudio.github.io/raylib-python-cffi/raylib.html).
146
158
 
147
- ### If you prefer a more Pythonistic API
159
+ ### If you prefer a more Pythonistic API
148
160
 
149
161
  Use [the pyray module](https://electronstudio.github.io/raylib-python-cffi/pyray.html).
150
162
 
151
163
  # Running in a web browser
152
164
 
153
- [Pygbag](https://pypi.org/project/pygbag/) >=0.8.7 supports running in a web browser.
165
+ [Pygbag](https://pypi.org/project/pygbag/) >=0.8.7 supports running in a web browser. Usually the latest git version
166
+ is recommended.
154
167
 
155
168
  Make a folder `my_project` with a file `main.py`:
156
169
 
157
- # /// script
158
- # dependencies = [
159
- # "cffi",
160
- # "raylib"
161
- # ]
162
- # ///
163
- import asyncio
164
- import platform
165
- from pyray import *
166
-
167
- async def main(): # You must have an async main function
168
- init_window(500, 500, "Hello")
169
- platform.window.window_resize() # You must add this line
170
- while not window_should_close():
171
- begin_drawing()
172
- clear_background(WHITE)
173
- draw_text("Hello world", 190, 200, 20, VIOLET)
174
- end_drawing()
175
- await asyncio.sleep(0) # You must call this in your main loop
176
- close_window()
177
-
178
- asyncio.run(main())
170
+ ```python
171
+ # /// script
172
+ # dependencies = [
173
+ # "cffi",
174
+ # "raylib"
175
+ # ]
176
+ # ///
177
+ import asyncio
178
+ import platform
179
+ from pyray import *
180
+
181
+ async def main(): # You MUST have an async main function
182
+ init_window(500, 500, "Hello")
183
+ platform.window.window_resize() # You MAY want to add this line
184
+ while not window_should_close():
185
+ begin_drawing()
186
+ clear_background(WHITE)
187
+ draw_text("Hello world", 190, 200, 20, VIOLET)
188
+ end_drawing()
189
+ await asyncio.sleep(0) # You MUST call this in your main loop
190
+ close_window()
191
+
192
+ asyncio.run(main())
193
+ ```
179
194
 
180
195
  Then to create the web files and launch a web server:
181
196
 
182
197
  python3.12 -m pip install --user --upgrade pygbag
183
- python3.12 -m pygbag --PYBUILD 3.12 --ume_block 0 --template noctx.tmpl my_project
198
+ python3.12 -m pygbag --PYBUILD 3.12 --ume_block 0 --template noctx.tmpl --git my_project
184
199
 
185
200
  Point your browser to http://localhost:8000
186
201
 
202
+ Some features may not work, so you can disable them like this:
203
+
204
+ ```python
205
+ if platform.system() != "Emscripten": # audio does not work on current version of emscripten
206
+ init_audio_device()
207
+ ```
208
+
187
209
  This is all done by Pygbag rather than by me, so you should probably contact them with any issues.
188
210
  Carefully read all their [documentation](https://pygame-web.github.io/).
189
211
 
@@ -191,10 +213,20 @@ It does work for most of [these examples](https://electronstudio.github.io/rayli
191
213
 
192
214
  # App showcase
193
215
 
216
+ [Tempest-raylib](https://github.com/Emtyloc/tempest-raylib)
217
+
218
+ [KarabinerKeyboard](https://github.com/bilbofroggins/KarabinerKeyboard)
219
+
220
+ [PyTaiko](https://github.com/Yonokid/PyTaiko)
221
+
222
+ [DOOM-Clone](https://github.com/StanislavPetrovV/DOOM-Clone)
223
+
194
224
  [Tanki](https://github.com/pkulev/tanki)
195
225
 
196
226
  [Alloy Bloxel Editor](https://pebaz.itch.io/alloy-bloxel-editor)
197
227
 
228
+ [Eidolon](https://github.com/Miou-zora/Eidolon)
229
+
198
230
  Add your app here!
199
231
 
200
232
  # RLZero
@@ -12,11 +12,11 @@ VERSION = (HERE / "version.py").read_text().split()[-1].strip("\"'")
12
12
 
13
13
  RAYLIB_PLATFORM = os.getenv("RAYLIB_PLATFORM", "Desktop")
14
14
  if RAYLIB_PLATFORM == "SDL":
15
- NAME = "raylib_sdl"
15
+ NAME = "_sdl"
16
16
  elif RAYLIB_PLATFORM == "DRM":
17
- NAME = "raylib_drm"
17
+ NAME = "_drm"
18
18
  else:
19
- NAME = "raylib"
19
+ NAME = ""
20
20
 
21
21
  class BinaryDistribution(Distribution):
22
22
  """Distribution which always forces a binary package with platform name"""
@@ -25,7 +25,7 @@ class BinaryDistribution(Distribution):
25
25
 
26
26
  # This call to setup() does all the work
27
27
  setup(
28
- name=NAME,
28
+ name="raylib"+NAME,
29
29
  version=VERSION,
30
30
  description="Python CFFI bindings for Raylib",
31
31
  long_description=README,
@@ -0,0 +1 @@
1
+ __version__ = "5.5.0.1"
@@ -1 +0,0 @@
1
- __version__ = "5.5.0.0"
raylib-5.5.0.0/version.py DELETED
@@ -1 +0,0 @@
1
- __version__ = "5.5.0.0"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes