Page 2 of 2

Re: [IMPORTANT] Problem with the game distribution.

Posted: Thu Jan 16, 2020 3:37 pm
by churros
Maybe this question should be addressed on the wiki, looks like it's asked often enough: https://www.google.com/search?q=protect ... love2d.org

I would wish to such page to encourage not to protect the source though.

Re: [IMPORTANT] Problem with the game distribution.

Posted: Thu Jan 16, 2020 3:38 pm
by churros
cazura wrote:
Wed Jan 15, 2020 12:05 am
Wait... So it is possible to extract and have access to the source code of Move or Die, Blue Revolver, etc? Sounds a nice way of learn and see how people do things.
I recently started a topic related to that: https://love2d.org/forums/viewtopic.php?t=87910
nequals30 wrote:
Wed Jan 15, 2020 8:30 pm
Just look at this 3,500 line switch-case statement:

https://github.com/TerryCavanagh/VVVVVV ... e.cpp#L605
Jesus, a switch statement going up to magic number 4099, not to mention the lack of any comment in most of the cases and the complexity nested in some of them.

Re: [IMPORTANT] Problem with the game distribution.

Posted: Sat Jan 18, 2020 1:31 pm
by zorg
churros wrote:
Thu Jan 16, 2020 3:38 pm
nequals30 wrote:
Wed Jan 15, 2020 8:30 pm
Just look at this 3,500 line switch-case statement:
https://github.com/TerryCavanagh/VVVVVV ... e.cpp#L605
Jesus, a switch statement going up to magic number 4099, not to mention the lack of any comment in most of the cases and the complexity nested in some of them.
If it works, it ain't stupid :P
And even if it is, the game's released, while others are trying to write clean code and will never release their games. :|

Re: [IMPORTANT] Problem with the game distribution.

Posted: Sat Jan 18, 2020 1:42 pm
by raidho36
Yeah, the game code doesn't needs to be good, it just needs to function. At some point it also needs to be fast, but at no point it needs to be elegant.