77 changed files with 331 additions and 25 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,11 @@ |
|||
import os |
|||
import glob |
|||
|
|||
os.chdir(r'C:\gitprojekty_skola\python_gamejam_examples\pygame') |
|||
for f in glob.glob('*.py'): |
|||
if f.startswith('patch'): continue |
|||
with open(f, 'r', encoding='utf-8') as file: |
|||
content = file.read() |
|||
content = content.replace('async def hlavni_smycka():', 'async def hlavni_smycka():') |
|||
with open(f, 'w', encoding='utf-8') as file: |
|||
file.write(content) |
|||
@ -0,0 +1,25 @@ |
|||
import os |
|||
import glob |
|||
import re |
|||
|
|||
os.chdir(r'C:\gitprojekty_skola\python_gamejam_examples\pygame') |
|||
for f in glob.glob('*.py'): |
|||
with open(f, 'r', encoding='utf-8') as file: |
|||
content = file.read() |
|||
|
|||
# 1. async def |
|||
content = re.sub(r'(\s*)def hlavni_smycka\(\):', r'\1async def hlavni_smycka():', content) |
|||
|
|||
# 2. Add await to hlavni_smycka() calls |
|||
content = re.sub(r'(\s+)hlavni_smycka\(\)', r'\1await hlavni_smycka()', content) |
|||
|
|||
# 3. Fix asyncio.sleep(0) |
|||
# Odstranime stary await asyncio.sleep(0) a jeho komentar |
|||
content = re.sub(r'[ \t]*# PØIDÁNO PRO WEB: Dáme prohlížeèi šanci pøekreslit obrazovku\s+await asyncio\.sleep\(0\)\s*', '\n', content) |
|||
|
|||
# Pridame ho tesne za hodiny.tick(...) se stejnym odsazenim |
|||
content = re.sub(r'([ \t]*)(.*hodiny\.tick.*)', r'\1\2\n\1# PØIDÁNO PRO WEB: Dáme prohlížeèi šanci pøekreslit obrazovku\n\1await asyncio.sleep(0)', content) |
|||
|
|||
with open(f, 'w', encoding='utf-8') as file: |
|||
file.write(content) |
|||
print(f'Opraveno: {f}') |
|||
@ -0,0 +1,29 @@ |
|||
import os |
|||
import glob |
|||
import re |
|||
|
|||
os.chdir(r'C:\gitprojekty_skola\python_gamejam_examples\pygame') |
|||
for f in glob.glob('*.py'): |
|||
if f == 'patch.py': |
|||
continue |
|||
with open(f, 'r', encoding='utf-8') as file: |
|||
content = file.read() |
|||
|
|||
# 1. async def |
|||
content = re.sub(r'(\s*)def hlavni_smycka\(\):', r'\1async async def await hlavni_smycka():', content) |
|||
|
|||
# 2. Add await to await hlavni_smycka() calls |
|||
content = re.sub(r'(\s+)hlavni_smycka\(\)', r'\1await await hlavni_smycka()', content) |
|||
|
|||
# 3. Fix asyncio.sleep(0) |
|||
# Match the old comment containing WEB without needing special chars |
|||
content = re.sub(r'[ \t]*#.*WEB.*\s+await asyncio\.sleep\(0\)\s*', '\n', content) |
|||
|
|||
# Pridame ho tesne za hodiny.tick(...) se stejnym odsazenim |
|||
# PRIDANO PRO WEB |
|||
await asyncio.sleep(0) |
|||
content = re.sub(r'([ \t]*)(.*hodiny\.tick.*)', r'\1\2\n\1# PRIDANO PRO WEB\n\1await asyncio.sleep(0)', content) |
|||
|
|||
with open(f, 'w', encoding='utf-8') as file: |
|||
file.write(content) |
|||
print(f'Opraveno: {f}') |
|||
|
After Width: | Height: | Size: 1.3 MiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,7 @@ |
|||
renpy.dissolve renpy.dissolve |
|||
renpy.geometry renpy.solid |
|||
renpy.geometry renpy.texture |
|||
renpy.texture |
|||
renpy.solid |
|||
renpy.ftl |
|||
renpy.dissolve renpy.geometry |
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,45 @@ |
|||
2026-06-01 12:47:48 UTC |
|||
Windows-11-10.0.22631-SP0 |
|||
Ren'Py 8.5.3.26051504 |
|||
|
|||
Early init took 62 ms |
|||
Loading error handling took 24 ms |
|||
Loading script took 114 ms |
|||
Loading save slot metadata took 24 ms |
|||
Loading persistent took 0 ms |
|||
Running init code took 47 ms |
|||
Loading analysis data took 3 ms |
|||
Analyze and compile ATL took 1 ms |
|||
Reloading save slot metadata took 6 ms |
|||
Dump and make backups took 48 ms |
|||
Cleaning cache took 0 ms |
|||
Making clean stores took 0 ms |
|||
Initial gc took 42 ms |
|||
DPI scale factor: 1.000000 |
|||
nvdrs: Loaded, about to disable thread optimizations. |
|||
nvdrs: b"Couldn't load nvlib." (can be ignored) |
|||
Creating interface object took 5 ms |
|||
Init translation took 0 ms |
|||
Cleaning stores took 0 ms |
|||
Load screen analysis took 17 ms |
|||
Analyze screens took 2 ms |
|||
Save screen analysis took 0 ms |
|||
Save pyanalysis took 0 ms |
|||
Save bytecode took 0 ms |
|||
Running _start took 1 ms |
|||
Interface start took 266 ms |
|||
|
|||
Initializing gl2 renderer: |
|||
primary display bounds: (0, 0, 1920, 1080) |
|||
swap interval: 1 frames |
|||
Windowed mode. |
|||
Vendor: 'ATI Technologies Inc.' |
|||
Renderer: 'AMD Radeon(TM) Graphics' |
|||
Version: '4.6.0 Compatibility Profile Context 26.1.1.251211' |
|||
Display Info: <Info({'bitsize': 32, 'bytesize': 4, 'masks': (16711680, 65280, 255, 0), 'shifts': (16, 8, 0, 0), 'losses': (0, 0, 0, 8), 'current_w': 1920, 'current_h': 1080, 'refresh_rate': 60, 'hw': False, 'wm': True, 'video_mem': 268435456, 'blit_hw': False, 'blit_hw_CC': False, 'blit_hw_A': False, 'blit_sw': False, 'blit_sw_CC': False, 'blit_sw_A': False})> |
|||
Screen sizes: virtual=(1280, 720) physical=(1280, 720) drawable=(1280, 720) |
|||
Maximum texture size: 4096x4096 |
|||
Cleaning stores took 0 ms |
|||
Load screen analysis took 15 ms |
|||
Analyze screens took 0 ms |
|||
Running _start took 1 ms |
|||
@ -0,0 +1,70 @@ |
|||
I'm sorry, but an uncaught exception occurred. |
|||
|
|||
While running game code: |
|||
File "game/script.rpy", line 54, in script |
|||
"Pokračuješ dál v cestě." |
|||
AttributeError: 'Layout' object has no attribute 'yesno_prompt' |
|||
|
|||
-- Full Traceback ------------------------------------------------------------ |
|||
|
|||
Traceback (most recent call last): |
|||
File "game/script.rpy", line 54, in script |
|||
"Pokračuješ dál v cestě." |
|||
File "renpy/ast.py", line 2935, in execute |
|||
Say.execute(self) |
|||
~~~~~~~~~~~^^^^^^ |
|||
File "renpy/ast.py", line 994, in execute |
|||
renpy.exports.say(who, what, *args, **kwargs) |
|||
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/exports/sayexports.py", line 129, in say |
|||
who(what, *args, **kwargs) |
|||
~~~^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/character.py", line 1565, in __call__ |
|||
self.do_display(who, what, cb_args=self.cb_args, dtt=dtt, **display_args) |
|||
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/character.py", line 1220, in do_display |
|||
display_say(who, what, self.do_show, **display_args) |
|||
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/character.py", line 902, in display_say |
|||
rv = renpy.ui.interact(mouse="say", type=type, roll_forward=roll_forward) |
|||
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/ui.py", line 306, in interact |
|||
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs) |
|||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/display/core.py", line 2163, in interact |
|||
repeat, rv = self.interact_core( |
|||
~~~~~~~~~~~~~~~~~~^ |
|||
preloads=preloads, |
|||
^^^^^^^^^^^^^^^^^^ |
|||
...<4 lines>... |
|||
**kwargs, |
|||
^^^^^^^^^ |
|||
) |
|||
^ |
|||
File "renpy/display/core.py", line 3096, in interact_core |
|||
self.quit_event() |
|||
~~~~~~~~~~~~~~~^^ |
|||
File "renpy/display/core.py", line 1716, in quit_event |
|||
renpy.display.behavior.run(renpy.config.quit_action) |
|||
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/display/behavior.py", line 411, in run |
|||
return action(*args, **kwargs) |
|||
~~~~~~^^^^^^^^^^^^^^^^^ |
|||
File "renpy/common/00action_menu.rpy", line 271, in __call__ |
|||
layout.yesno_screen(layout.QUIT, Quit(False)) |
|||
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/common/00layout.rpy", line 517, in yesno_screen |
|||
elif renpy.invoke_in_new_context(layout.invoke_yesno_prompt, None, message): |
|||
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/game.py", line 285, in invoke_in_new_context |
|||
return callable(*args, **kwargs) |
|||
~~~~~~~~^^^^^^^^^^^^^^^^^ |
|||
File "renpy/common/00layout.rpy", line 472, in invoke_yesno_prompt |
|||
rv = layout.yesno_prompt(*args) |
|||
^^^^^^^^^^^^^^^^^^^ |
|||
AttributeError: 'Layout' object has no attribute 'yesno_prompt' |
|||
|
|||
Windows-11-10.0.22631-SP0 AMD64 |
|||
Ren'Py 8.5.3.26051504 |
|||
|
|||
Mon Jun 1 14:25:11 2026 |
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,9 @@ |
|||
renpy.dissolve renpy.dissolve |
|||
renpy.alpha renpy.solid |
|||
renpy.geometry renpy.texture |
|||
renpy.ftl |
|||
renpy.texture |
|||
renpy.geometry renpy.solid |
|||
renpy.alpha renpy.geometry renpy.solid |
|||
renpy.dissolve renpy.geometry |
|||
renpy.solid |
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,28 @@ |
|||
2026-06-10 09:33:04 UTC |
|||
Windows-11-10.0.22631-SP0 |
|||
Ren'Py 8.5.3.26051504 |
|||
|
|||
Early init took 52 ms |
|||
Loading error handling took 22 ms |
|||
Loading script took 108 ms |
|||
Loading save slot metadata took 20 ms |
|||
Loading persistent took 0 ms |
|||
Running init code took 45 ms |
|||
Loading analysis data took 4 ms |
|||
Analyze and compile ATL took 1 ms |
|||
Reloading save slot metadata took 2 ms |
|||
Dump and make backups took 43 ms |
|||
Cleaning cache took 0 ms |
|||
Making clean stores took 1 ms |
|||
Initial gc took 42 ms |
|||
DPI scale factor: 1.000000 |
|||
nvdrs: Loaded, about to disable thread optimizations. |
|||
nvdrs: b"Couldn't load nvlib." (can be ignored) |
|||
Creating interface object took 3 ms |
|||
Init translation took 0 ms |
|||
Cleaning stores took 0 ms |
|||
Load screen analysis took 17 ms |
|||
Analyze screens took 1 ms |
|||
Save screen analysis took 0 ms |
|||
Save pyanalysis took 0 ms |
|||
Save bytecode took 0 ms |
|||
@ -0,0 +1,9 @@ |
|||
# RenPyWeb progressive download rules - first match applies |
|||
# '+' = progressive download, '-' = keep in game.zip (default) |
|||
# See https://www.renpy.org/doc/html/build.html#classifying-and-ignoring-files for matching |
|||
# |
|||
# +/- type path |
|||
- image game/gui/** |
|||
+ image game/** |
|||
+ music game/audio/** |
|||
+ voice game/voice/** |
|||
@ -0,0 +1,70 @@ |
|||
I'm sorry, but an uncaught exception occurred. |
|||
|
|||
While running game code: |
|||
File "game/script.rpy", line 46, in script |
|||
p "Díky Pythonu jsme ti právě náhodně přidali [nahodne_cislo] bodů!" |
|||
AttributeError: 'Layout' object has no attribute 'yesno_prompt' |
|||
|
|||
-- Full Traceback ------------------------------------------------------------ |
|||
|
|||
Traceback (most recent call last): |
|||
File "game/script.rpy", line 46, in script |
|||
p "Díky Pythonu jsme ti právě náhodně přidali [nahodne_cislo] bodů!" |
|||
File "renpy/ast.py", line 2935, in execute |
|||
Say.execute(self) |
|||
~~~~~~~~~~~^^^^^^ |
|||
File "renpy/ast.py", line 994, in execute |
|||
renpy.exports.say(who, what, *args, **kwargs) |
|||
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/exports/sayexports.py", line 129, in say |
|||
who(what, *args, **kwargs) |
|||
~~~^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/character.py", line 1565, in __call__ |
|||
self.do_display(who, what, cb_args=self.cb_args, dtt=dtt, **display_args) |
|||
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/character.py", line 1220, in do_display |
|||
display_say(who, what, self.do_show, **display_args) |
|||
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/character.py", line 902, in display_say |
|||
rv = renpy.ui.interact(mouse="say", type=type, roll_forward=roll_forward) |
|||
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/ui.py", line 306, in interact |
|||
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs) |
|||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/display/core.py", line 2163, in interact |
|||
repeat, rv = self.interact_core( |
|||
~~~~~~~~~~~~~~~~~~^ |
|||
preloads=preloads, |
|||
^^^^^^^^^^^^^^^^^^ |
|||
...<4 lines>... |
|||
**kwargs, |
|||
^^^^^^^^^ |
|||
) |
|||
^ |
|||
File "renpy/display/core.py", line 3096, in interact_core |
|||
self.quit_event() |
|||
~~~~~~~~~~~~~~~^^ |
|||
File "renpy/display/core.py", line 1716, in quit_event |
|||
renpy.display.behavior.run(renpy.config.quit_action) |
|||
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/display/behavior.py", line 411, in run |
|||
return action(*args, **kwargs) |
|||
~~~~~~^^^^^^^^^^^^^^^^^ |
|||
File "renpy/common/00action_menu.rpy", line 271, in __call__ |
|||
layout.yesno_screen(layout.QUIT, Quit(False)) |
|||
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/common/00layout.rpy", line 517, in yesno_screen |
|||
elif renpy.invoke_in_new_context(layout.invoke_yesno_prompt, None, message): |
|||
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|||
File "renpy/game.py", line 285, in invoke_in_new_context |
|||
return callable(*args, **kwargs) |
|||
~~~~~~~~^^^^^^^^^^^^^^^^^ |
|||
File "renpy/common/00layout.rpy", line 472, in invoke_yesno_prompt |
|||
rv = layout.yesno_prompt(*args) |
|||
^^^^^^^^^^^^^^^^^^^ |
|||
AttributeError: 'Layout' object has no attribute 'yesno_prompt' |
|||
|
|||
Windows-11-10.0.22631-SP0 AMD64 |
|||
Ren'Py 8.5.3.26051504 |
|||
|
|||
Mon Jun 1 14:26:48 2026 |
|||
Loading…
Reference in new issue