Closed AndBM closed 2 years ago
I think you can just modify the background image directly: something like
document.body.style.backgroundImage = "transparent url(../images/Oath-Character-Art-Chancellor-optim.png)";
or whatever the image file name is.
This should be done. Preview at dynamic-bg-image.helichrysum.pages.dev
I also rebased on top of the code-cleanup
branch since I had made some changes to the javascript files, and also did some renaming there too, so this will fix some issues in the future.
It would be cool that instead of the Chancellor being the background character, it was the color of the previous winner, i.e. if Red won last game, the Red character was in the background.
The images exist in assets, and the information should be in the save object in the scripts. Probably we should assign each character a CSS class and write a script like
I will look into it later.