[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monsterz] [BUG] 0.4-indep - Surfaces must not be locked during blit



FIRST POST


ok, the nice new scrolling marquee has a side effect :

clicking on "New game" just produces this stack dump and exit :

C:\testing\sam\monsterz-0.4-indep>monsterz.py
Traceback (most recent call last):
  File "C:\testing\sam\monsterz-0.4-indep\monsterz.py", line 1272, in ?
main()
  File "C:\testing\sam\monsterz-0.4-indep\monsterz.py", line 1268, in main
monsterz.go()
  File "C:\testing\sam\monsterz-0.4-indep\monsterz.py", line 864, in go
iterator()
  File "C:\testing\sam\monsterz-0.4-indep\monsterz.py", line 1047, in
iterate_game self.game.game_draw()
  File "C:\testing\sam\monsterz-0.4-indep\monsterz.py", line 556, in
game_draw system.blit(timebar, (13, 436))
  File "C:\testing\sam\monsterz-0.4-indep\monsterz.py", line 224, in blit
self.background.blit(surf, coords)
pygame.error: Surfaces must not be locked during blit


commenting out line 556 make the game playable, but hides the timer bar. The
marquee still shows.

commenting lines 541-555 make the game playable and displays the timer bar.


(system is Windows 2K, Python 2.3.3 (old), pygame 1.6.2, Numeric 23.7)


as a side, I found myself trying to type 'n' to start a new game in the main
screen. Maybe adding support for 'n', 'h', 's', 'q' in addition to the
present handling of ESC could be useful.


Regards, O. Souiry


-- 
This is the monsterz mailing-list, see http://sam.zoy.org/projects/monsterz/
Trouble unsubscribing? Please contact <sam@zoy.org>
List archives are at http://sam.zoy.org/projects/monsterz/threads.html