Skip to content

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

@wkta

Description

@wkta

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions