Closed lucymhdavies closed 5 years ago
Current draw logic is to draw body to screen, then draw eyes and pupils to screen
https://github.com/lucymhdavies/egg-game/blob/master/game/egg.go#L238-L278
This seems to be resulting in some jittering of the eyes and pupils.
Better would be to draw all of them onto an image, and then draw that image to the screen.
Fixed by https://github.com/lucymhdavies/egg-game/commit/c66526604442b464a172f587464b695dcbb988e8
Current draw logic is to draw body to screen, then draw eyes and pupils to screen
https://github.com/lucymhdavies/egg-game/blob/master/game/egg.go#L238-L278
This seems to be resulting in some jittering of the eyes and pupils.
Better would be to draw all of them onto an image, and then draw that image to the screen.