Mondego / rcat

A web server for massively multi-user online applications
8 stars 3 forks source link

Load game and background image only once #55

Closed gentimouton closed 11 years ago

gentimouton commented 11 years ago

Only need to load the image when the page loads - the image element should not be deleted and re-created when the player disconnects.

arthur00 commented 11 years ago

You mean the puzzle image? What if I connected, got an image, disconnected, the puzzle ended and the image was swapped? Next time I connect, I should make sure the image is still the same

gentimouton commented 11 years ago

The background and splash screen images are loaded only once, but the puzzle image is loaded every time a game is started