Page 1 of 2

Looking for a codebase to study

Posted: Mon Dec 16, 2019 2:57 pm
by churros
Hi,

I have fond memories of playing around with SDL back when I started programming. Nothing serious, just a playground for stupid games plus practicing programming a bit.

Fast forward ten years, nostalgia hit me and I want to fool around in 2d games again. I want to make a top-down tileset based game, nothing crazy, a Harvest Moon clone or something.

I prefer to learn inspecting an existing project rather than following tutorials. I did a quick GitHub search, but most of the projects are somewhat broken or don’t even run with 11.3.

This one looks good though: https://github.com/john-cheesman/love2d-top-down

Do you guys have any suggestions of a simple (yet functional) open-source game that I could use to study? (a small JRPG would be perfect)

Thanks for all the löve!

Re: Looking for a codebase to study

Posted: Fri Dec 27, 2019 3:58 am
by MrFariator
Forum user D0NM has Zabuyaki's code available on github.

In addition, there are several games on steam made with LÖVE, and if you purchase those games you could technically just change the .exe file extension to .zip, and take a look inside the contents. Not guaranteed to work with 11.x, but in fairly many cases it's trivial to write wrapper functions around the API changes, or you can just use something like polyamory.

Re: Looking for a codebase to study

Posted: Fri Dec 27, 2019 6:35 am
by Nelvin
The sources for https://store.steampowered.com/app/7735 ... Dev_Studio can be found here http://www.gamedevstudiogame.com/

Should fit your own planned game pretty good.

Re: Looking for a codebase to study

Posted: Fri Dec 27, 2019 7:17 pm
by Stifu
MrFariator wrote:
Fri Dec 27, 2019 3:58 am
Forum user D0NM has Zabuyaki's code available on github.
If anyone decides to study our code, please share any feedback or comments with us. I'm sure some of our stuff could be greatly improved.

Re: Looking for a codebase to study

Posted: Mon Dec 30, 2019 2:58 am
by 4vZEROv
The ressource from which I've learn the most is the bytepath tutorial here: https://github.com/adnzzzzZ/blog

Re: Looking for a codebase to study

Posted: Mon Dec 30, 2019 5:14 pm
by churros
MrFariator wrote:
Fri Dec 27, 2019 3:58 am
Forum user D0NM has Zabuyaki's code available on github.

In addition, there are several games on steam made with LÖVE, and if you purchase those games you could technically just change the .exe file extension to .zip, and take a look inside the contents. Not guaranteed to work with 11.x, but in fairly many cases it's trivial to write wrapper functions around the API changes, or you can just use something like polyamory.
I just purchased BYTEPATH, which is the same game from the tutorial recommended by 4vZEROv here in the thread. However, looks like this guy made something with the file encoding to prevent that:
vim.png
vim.png (127.02 KiB) Viewed 1087 times
The author probably did that on purpose, since he sells the source code.

Oh, and polyamory sounds like a lifesaver for what I was doing.

Re: Looking for a codebase to study

Posted: Mon Dec 30, 2019 5:15 pm
by churros
Nelvin wrote:
Fri Dec 27, 2019 6:35 am
The sources for https://store.steampowered.com/app/7735 ... Dev_Studio can be found here http://www.gamedevstudiogame.com/

Should fit your own planned game pretty good.
I'm definitely taking a look at those, especially seeing how well is documented, thank you. By the way, that web documentation, is it something common for lua projects (like Doxygen for C++)?

Re: Looking for a codebase to study

Posted: Mon Dec 30, 2019 5:15 pm
by churros
Stifu wrote:
Fri Dec 27, 2019 7:17 pm
If anyone decides to study our code, please share any feedback or comments with us. I'm sure some of our stuff could be greatly improved.
5k+ commits... that's impressive. Did you guys make any game prior to Zanbuyaki?

Re: Looking for a codebase to study

Posted: Tue Dec 31, 2019 7:43 am
by Stifu
churros wrote:
Mon Dec 30, 2019 5:15 pm
5k+ commits... that's impressive. Did you guys make any game prior to Zanbuyaki?
Zabuyaki is our first LÖVE game. It has loads of commits because we're unskilled yet persistent.
Before that we made Whip-a-Wimp, a simple dungeon crawler made with Cocos2D-JS.

Re: Looking for a codebase to study

Posted: Tue Dec 31, 2019 8:44 am
by Nelvin
Your game looks great - if that's your second game at all it'll be fun to see what you're going to create in a few years from now.
Great art style too.