Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a "manual buffer"-like behavior is impossible in web ctx #23

Open
wkta opened this issue Apr 12, 2024 · 0 comments
Open

a "manual buffer"-like behavior is impossible in web ctx #23

wkta opened this issue Apr 12, 2024 · 0 comments

Comments

@wkta
Copy link
Member

wkta commented Apr 12, 2024

example of the bug :
image

while this snippet works OK in local ctx, in the web you won't see anything displayed on screen:

scr = pyv.surface_create((shared.SCR_WIDTH, shared.SCR_HEIGHT))
# ... do many operations that draw on scr, including pygame.draw.rect(scr, ...)
pass
# then finally: something like
view = pyv.get_surface()
view.blit(scr, (0, 5))
view.blit(shared.status_label, (0, 0))

Here, the variable scr was used as a manual buffer. This won't work in the current version of the KataGames system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant