Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Ha! reload of course! This makes perfect sense! I thought about some "reset_game" function your API but clearly reload is what I need! Thank you!!
Now I just need to figure out some CSS so that, if I want to go with sprites ("art") over a background, everything stays in place and is visible while adapting to the window's size (making sure percent positioning works for this) . Actually I should look at what you've done with maps.
Have a nice day!

I forgot to say that sprites can be used on buttons.

what you described i think it will help you

https://www.w3schools.com/cssref/pr_background-position.asp

and

https://www.w3schools.com/cssref/css3_pr_background-size.asp

(+1)

Oh, sprites on buttons! Interesting!
Thanks for the positioning reference this works for the background but sprites are moved according to the container size (my background is usually on contain, because I want to see it all, but sprites take the whole container size rather than staying on the background, obviously).

My current workaround is to set a fixed aspect ratio but I'll investigate other solutions as well

#tuesday {

aspect-ratio: 1 / 1;

height:auto !important;

}

(1 edit) (+1)

OK, in case somebody wants to do the same thing than me, and assuming here a square aspect ratio, this CSS will ensure that both "contain" background images and percent sprites are always visible and stay at the same place, whatever the screensize is :)


#tuesday {

aspect-ratio: 1 / 1;

height:auto !important;

max-width: min(100vw,100vh);

margin: 0 auto;

}

(1 edit) (+1)

Thanks again Kirill, I've just completed and published my game if you wanna check it.
https://jsmonzani.itch.io/silent-voices

I had to use a lot of !important in my CSS to override the default CSS styles but other than that, I think it's good.

Wow, this is amazing! great job!
Can I add a link to this game to the Tuesday JS page?

Thank you! Yes, sure!

I've also designed another short story some weeks ago with Tuesday js if you wanna try, with a different art style https://jsmonzani.itch.io/fushimi-inari-a

very nicely done, good colors

👍 thanks again! It's thanks to your tool that I've started enjoying to create these little stories 👏