r/libgdx • • Oct 12 '26

I deleted thousands of lines of code, here's why

Hello, r/libGDX!
It's been 2 months since my last post on Seven Stardust, and I finally think I'm ready to reach out and talk about my journey again. I've been working on a open-world RPG, and for the last few months I've been reworking almost every aspect of the game.
I removed the old player sprites, enemy AI, animations, story trees, a whole map, and more. I did this for a few reasons.
First, my codebase was terrible. While I could make Seven Stardust with it, its scalability was terrible and there's no way it would be as good as I want it to be.
Second, it was poor effort in some areas. There were some areas of the game that just wasn't fun to play, as it was made in a 30 minute span.
Fourth, the codebase was also unstable. I fixed a ton of bugs, including the very prominent bug where attacking east would phase you into a wall.
This was because the hitbox was setting to 16*10 for some reason when moving east when it should've been 10*10.
Thank you to all the people who have been supporting my small project, and if you have any feedback, please don't be afraid to share! I don't really judge people on what they think of my project, as I'm always willing to improve and make my game based on what the community thinks.
Have a great day, and thank you for reading my yapping about my code's flaws!

22 Upvotes

6 comments sorted by

5

u/Sojer_96 Oct 12 '26

This is a hobby project or is your goal to release it? Looks nostalgic. I like the falling leaves effect.

1

u/Exboom2 Oct 12 '26

It's mostly a hobby project. I am going to release it on itch and maybe GJ and Steam if I can, but as of now it's a entirely free project. I'm not trying to make a profit, I'm just doing this to make something others can enjoy :D
Thanks for the complement, I spent a lot of time on the leaves

1

u/Sojer_96 Oct 12 '26

Why libgdx and not Godot for example? I'm asking because I also build game in libgdx and have seen a lot of pros and cons already.

2

u/Exboom2 Oct 12 '26

Honestly, I don't know. Sometimes I realize a lot of challenges I have could be avoided if I used an engine, but I always just felt like I never wanted to. I do like using engines, I make games in Unreal occasionally (if my PC doesn't explode), but for 2D I just always enjoyed making something from absolutely nothing.

2

u/codingBoy66501 Oct 13 '26

Did the exact same thing with my RTS code yesterday. Looks like a cool game. Good luck!

1

u/Exboom2 Oct 13 '26

Thanks lot lot, you as well!