Page 1 of 1

Suggestion : making more code public

Posted: 19 May 2014, 13:28
by Quinarbre
Hi,

Now and then I see a neat feature in another game, that I want to reuse in my own development. Right now the only options I have are :
- contact the developer and ask him for his sources (if he answers, still has them handy...)
- open the game, browse the page source to find the url of the js and download it.

Furthermore, in the latter case, what I get is a compressed js file, which makes it more tedious to read.
Same goes with the studio library : I can fetch all the ebg/core files but it's not really practical to browse them. If developers had them handy, they could discover undocumented functionalities and update the Wiki accordingly.

So my question is : would it be possible to make the sources of every game published on BGA readily available from the studio ?
At least for the Javascript it would make sense (I can understand if you don't want to publish the php/dbmodel).
That would be a tremendous resource for studio developers.

Re: Suggestion : making more code public

Posted: 24 May 2014, 19:20
by Een
Hi,

In fact, any developer in the studio, as an administrator for the game he has implemented, can give any other studio developer readonly access to his code (or read/write, for collaboration).
So if you see something that you would like to use, just ask the developer to give you this readonly access.
We prefer this, so that the developers keep some measure of tracability and accountability over their code.

For games implemented by BGA, a lot have been created before the time of the studio and so have not been created or imported into it. So in most cases we won't be able to give you such access for those.
But you should find the description of the techniques used in the studio documentation (and if not, please tell us, so that we can write about it).

Happy coding,
Een

Re: Suggestion : making more code public

Posted: 21 June 2014, 18:30
by nosy_g
The problem there though is that it requires the admin developer to still be active, and see the message. Would it be possible to implement like a web-based code viewer, similar to WebSVN? Reviewing code examples is always a great tool for new developers to get up to speed.