Skip to content

Commit 608a930

Browse files
update to Raylib 5.5
1 parent 3c3eaea commit 608a930

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

.github/workflows/publish.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ jobs:
3434
3535
- name: Build the site
3636
run: |
37-
python3 -m pygbag --build --PYBUILD 3.12 --ume_block 0 --template noctx.tmpl main.py
38-
37+
wget https://github.com/electronstudio/pygbag-raylib/releases/download/v5.5.0.0/raylib-5.5.0.0-cp310-abi3-wasm32_bi_emscripten.whl
38+
unzip raylib-5.5.0.0-cp310-abi3-wasm32_bi_emscripten.whl
39+
rm raylib-5.5.0.0-cp310-abi3-wasm32_bi_emscripten.whl
40+
python3 -m pygbag --build --PYBUILD 3.12 --ume_block 0 --template noctx.tmpl --git main.py
3941
4042
- name: Upload artifact
4143
uses: actions/upload-pages-artifact@v1

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ ordered-set==4.1.0
55
pycparser==2.22
66
pydantic==2.9.2
77
pydantic_core==2.23.4
8-
raylib_sdl==5.5.0.0.dev3
8+
raylib_sdl==5.5.0.0
99
typing_extensions==4.12.2
1010
zstandard==0.23.0

src/utils/vec2.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ def __imul__(self, other):
8888

8989
def __truediv__(self, other):
9090
if isinstance(other, Vec2):
91-
res = vector_2divide(self, other)
91+
res = vector2_divide(self, other)
9292
return self.to_Vec2(res)
9393
return Vec2(self.x / other, self.y / other)
9494

9595
def __itruediv__(self, other):
9696
if isinstance(other, Vec2):
97-
res = vector_2divide(self, other)
97+
res = vector2_divide(self, other)
9898
else:
9999
res = vector2_scale(self, 1/other)
100100
self.x = res.x
@@ -124,13 +124,13 @@ def clamp_value(self, min_val: float, max_val: float):
124124
return self.to_Vec2(res)
125125

126126
def distance(self, vec2):
127-
return vector_2distance(self, vec2)
127+
return vector2_distance(self, vec2)
128128

129129
def distance_sqr(self, vec2) -> float:
130-
return vector_2distance_sqr(self, vec2)
130+
return vector2_distance_sqr(self, vec2)
131131

132132
def dot_product(self, vec2) -> float:
133-
return vector_2dot_product(self, vec2)
133+
return vector2_dot_product(self, vec2)
134134

135135
def invert(self):
136136
res = vector2_invert(self)

vec2_test.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ def __imul__(self, other):
8787

8888
def __truediv__(self, other):
8989
if isinstance(other, Vec2):
90-
res = vector_2divide(self, other)
90+
res = vector2_divide(self, other)
9191
return self.to_Vec2(res)
9292
return Vec2(self.x / other, self.y / other)
9393

9494
def __itruediv__(self, other):
9595
if isinstance(other, Vec2):
96-
res = vector_2divide(self, other)
96+
res = vector2_divide(self, other)
9797
else:
9898
res = vector2_scale(self, 1/other)
9999
self.x = res.x
@@ -123,13 +123,13 @@ def clamp_value(self, min_val: float, max_val: float):
123123
return self.to_Vec2(res)
124124

125125
def distance(self, vec2):
126-
return vector_2distance(self, vec2)
126+
return vector2_distance(self, vec2)
127127

128128
def distance_sqr(self, vec2) -> float:
129-
return vector_2distance_sqr(self, vec2)
129+
return vector2_distance_sqr(self, vec2)
130130

131131
def dot_product(self, vec2) -> float:
132-
return vector_2dot_product(self, vec2)
132+
return vector2_dot_product(self, vec2)
133133

134134
def invert(self):
135135
res = vector2_invert(self)

0 commit comments

Comments
 (0)