i've spent past week creating raycasting algorithm in python using pygame, , ran fine before added textures walls. when running in windowed mode mouse input not work properly, , solution made q , e keys job of turning camera instead. code can found here, run in windowed mode you'll have change these lines:
width = 1360 height = 768 screen = pygame.display.set_mode((width, height), pygame.hwsurface|pygame.doublebuf|pygame.fullscreen)
to these lines:
width = 680 height = 384 screen = pygame.display.set_mode((width, height))
so entire screen can seen in windowed mode.
so why mouse input doesn't work properly, , can fix it?
Comments
Post a Comment