Looking for a codebase to study

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
churros
Prole
Posts: 11
Joined: Mon Dec 16, 2019 2:28 pm

Looking for a codebase to study

Post by churros » Mon Dec 16, 2019 2:57 pm

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!
English is not my first language, apologies in advance. :oops:

MrFariator
Party member
Posts: 121
Joined: Wed Oct 05, 2016 11:53 am

Re: Looking for a codebase to study

Post by MrFariator » 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.

Nelvin
Citizen
Posts: 98
Joined: Mon Sep 12, 2016 7:52 am
Location: Germany

Re: Looking for a codebase to study

Post by Nelvin » 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.

User avatar
Stifu
Citizen
Posts: 77
Joined: Mon Mar 14, 2016 9:53 am
Contact:

Re: Looking for a codebase to study

Post by Stifu » Fri Dec 27, 2019 7:17 pm

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.
Zabuyaki, our upcoming beat 'em up: https://www.zabuyaki.com

User avatar
4vZEROv
Citizen
Posts: 50
Joined: Wed Jan 02, 2019 8:44 pm

Re: Looking for a codebase to study

Post by 4vZEROv » Mon Dec 30, 2019 2:58 am

The ressource from which I've learn the most is the bytepath tutorial here: https://github.com/adnzzzzZ/blog

User avatar
churros
Prole
Posts: 11
Joined: Mon Dec 16, 2019 2:28 pm

Re: Looking for a codebase to study

Post by churros » Mon Dec 30, 2019 5:14 pm

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 617 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.
English is not my first language, apologies in advance. :oops:

User avatar
churros
Prole
Posts: 11
Joined: Mon Dec 16, 2019 2:28 pm

Re: Looking for a codebase to study

Post by churros » Mon Dec 30, 2019 5:15 pm

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++)?
English is not my first language, apologies in advance. :oops:

User avatar
churros
Prole
Posts: 11
Joined: Mon Dec 16, 2019 2:28 pm

Re: Looking for a codebase to study

Post by churros » Mon Dec 30, 2019 5:15 pm

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?
English is not my first language, apologies in advance. :oops:

User avatar
Stifu
Citizen
Posts: 77
Joined: Mon Mar 14, 2016 9:53 am
Contact:

Re: Looking for a codebase to study

Post by Stifu » Tue Dec 31, 2019 7:43 am

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.
Zabuyaki, our upcoming beat 'em up: https://www.zabuyaki.com

Nelvin
Citizen
Posts: 98
Joined: Mon Sep 12, 2016 7:52 am
Location: Germany

Re: Looking for a codebase to study

Post by Nelvin » Tue Dec 31, 2019 8:44 am

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.

Post Reply

Who is online

Users browsing this forum: Vinay_patil and 1 guest