( quoted so everyone see it also on my post :p )Nixola wrote:What if I wanted to add a lbrary written by me? Do I have to copypaste it in?
And what about editing / replacing resources ( images, sounds etc.. ) of other people ?
( quoted so everyone see it also on my post :p )Nixola wrote:What if I wanted to add a lbrary written by me? Do I have to copypaste it in?
My opinion would be : don't. Maybe you can copy/paste the relevant code to include it, but definitely not the whole library.Nixola wrote:What if I wanted to add a lbrary written by me? Do I have to copypaste it in?
Not a definitive answer, but i'd say yes, it should be possible to replace/edit assets of other people.MadByte wrote:And what about editing / replacing resources ( images, sounds etc.. ) of other people ?
We can do fun things like define operators on types that normally don't have operators and as types aren't explicitly typed this can be quite sneaky as to what's actually happening. For example:T-Bone wrote:Lua isn't quite as well prepared for something like this. We don't have gotos etc. But writing bad code can be fun anyway
Code: Select all
debug.setmetatable(0, {__mul=function(j, f)if type(j)=="function"then j,f=f,j end for i=1,j do f(i,j)end return j end})
range = 1, 5
* function (i)
print("Hi",i)
end
* print
Hell no...szensk wrote: We can do fun things like define operators on types that normally don't have operators and as types aren't explicitly typed this can be quite sneaky as to what's actually happening. For example:Code: Select all
debug.setmetatable(0, {__mul=function(j, f)if type(j)=="function"then j,f=f,j end for i=1,j do f(i,j)end return j end}) range = 1, 5 * function (i) print("Hi",i) end * print
I would rather say that everyone should strive to write clean code.micha wrote:No, it's a project about writing a game together in the community, with the extra rule that you may not change existing code, but only add new code. The unmaintainability is more a result than a rule.
Oh boy, I misunderstood the intent. Luckily it sounds a lot more fun this way.Roland_Yonaba wrote:I would rather say that everyone should strive to write clean code.micha wrote:No, it's a project about writing a game together in the community, with the extra rule that you may not change existing code, but only add new code. The unmaintainability is more a result than a rule.
The difficulty here is "the mess will come naturally" because commit after commit, the whole program takes a different direction, depending on the crazy ideas that were added by the last committer.
Users browsing this forum: Bing [Bot], DarkblooM and 3 guests