Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

I was wondering how I could do something like this for a browser based game. I had a look at dreamlo as the other comment suggested it, but if I use my secret key in my code, couldn't people just look at the code and add a bunch of fake scores?

Is there a way I can add environment variables to a web based itch app so I can hide variables like keys for an online leaderboard?

(Should I be asking this somewhere else?)

When you say browser based do you mean a game written in HTML/JavaScript?

I suppose you could obfuscate your secret code a bit to prevent people easily using it. 

I'm not too sure about environmental variables though sorry.

Yeah, I do mean that - right now anyone can go to my game's page, open the developer tools and look at the source code.

Obfuscating the code seems like the best option, thanks.