Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

window.blablabla works! Thank you! Yes, i saw rooms transitions, pretty smart, tho i improved it by also using "roomName+x+y", so for example if you are in room "badfgdf_0_5" and you go somewhere, you go in "badfgdf_3434_439, so prefix stays." "upgrade()" is function, which i saw in gameName.html (after "export game"), it's in start, and it's name and code make me think that it upgrades game to newer version. I can try to change ID, but idk if that would work :p. Probably if i'll change it then it will be disconnected from trash engine (right what i need), and you should add option "change ID on export to:" in settings :>

Oh, i'm not sure which Id to change. When i use search, there are a lot of Id, but i don't think any of them is right. You said "can change in settings", but there is nothing about id. Ig Id is project name, which you can change it top. Only problem is what when i'm trying to search for it, vscode lags, cuz all data is in one line >_< Ig i will try to change project name, export, and change it back lol. Probably after that best solution is to do changes in one Id, and when everything works correctly/when i want to release new version i should change project Id and save it lol. idk.

Sorry it took me a while to respond. It turns out the game id is a feature that I only experimentally tested out on my machine, but never fully implemented, sorry >.< The "different games sharing the same save data" is a problem I have been aware of, but my brain remembered me fixing it, when in reality the version on itch still has this problem. So the save data problem is 100% a bug, I will try to fix it soon!

The upgrade coming from gameName.html makes sense, this file contains a lot of generated code (I'm using a web framework called svelte), and the upgrade funtion comes from the framework, not from me. The exported file is really not meant to be edited directly. If you really need to change things there, the section of the html within the <script type="gamedata>..</script> tag contains the entire game, the rest is just the engine.

That being said, there should be a place in the html thats says:

const NAME = "trash_engine";
const STORE_NAME_RESOURCES = "game_data";

Changing any of these strings to something else might work, but I haven't really tested it.