Comment 6 for bug 1178470

Revision history for this message
tobs12 (hans1215) wrote :

Hello,
I tried revision #103.
The crash is fixed.
But not all sprites are displayed.
Roughly 50x80 is displayed with this example.
The last drawn sprite is distorted. See attachment bug_screen.png.
-------------------------------------------
import sys,os

from pygl3display import *
configure('pygame')

GLCommon.initEnvironment((1680,1050),fullscreen=True)

import pygame
from pygame.locals import *

floor=loadImage('block1.png', wrapped=True)
spr=[ list( list() for x in range(80) ) for x in range(80) ]

for y in range(80):
    for x in reversed(range(80)):
        if x%10 == 0 and y%10 == 0:
            continue
        spr[y][x]=Sprite(image=floor, position = ( -100+(x+y)*16, 500+(y-x)*8 ) )

while 1:
    for event in pygame.event.get():
        if event.type == pygame.KEYDOWN:
            if event.key== pygame.K_ESCAPE:
                sys.exit()
        if event.type == pygame.QUIT:
            sys.exit()

    GLCommon.doTasks()
-------------------------------------------