Is rewriting your entire game a good thing to do?

I have this MAIN project that I haven’t visited in like, a long time.

I was being fed code like a baby, and well I don’t understand like half of the things that are in the code.
Not to mention how messy the code is, very bad, very ugly.

I’m also kind of seeing it as a way to get better at coding itself, but I don’t wanna do it blindly like an idiot.

Time consuming, and idk if it’s worth it, asking y’all for advice.

1 Like

I mean it depends on the situation. If it’s a big game with alot of active players, then yeah rescript. If it’s some older game of yours then your better off just making a new game instead.

2 Likes

I’d personally remake the thing from scratch, keep some things or remove some, and modify them slightly to be better, I guess, with whatever new methods seemed more convenient. I was also recently doing it not only to make a better cleaner version of an existing game I have but also as a way to improve my coding.

nah the game’s not even out yet, but there’s a lot of map work done that I do not want to lose, i don’t think i’ll be making a new game, idk

you could remake most of whatever needed to be remade but still keep the whole thing in the same game.
though i’m not sure what kind of project it is, so i can’t say much

If your entire game’s structure is messy and unorganized then I would say yeah taking the time to rewrite and organize the entire game can be helpful to improve development time in the future which can help to keep you motivated and prevent getting burnt out or lost.

I have an older project I haven’t touched in years. When I get back to it I’m going to scrap everything and start from scratch because even if I took the time to figure out how everything works, the code is old and I’d do things differently now.

But I say rewriting everything depends on whether you want to keep the code or not. Maybe some parts work entirely how you want them to, but you just need to smoothen out things here and there. Maybe other parts work well, but now you have a better idea of how to do it and the old code definitely does not accomplish that.

Hello there, notsad2.
I see that haven’t come across a solution yet, hence my decision to simply add a couple of thoughts.

I work for a SCPF project and have been producing as a scripter for approximately two to three years.

Whenever examining back at the scripts for a handful of the applications I collaborated on, I see outdated approaches, arbitrary methods for accomplishing tasks which could be reduced, neater, and more effectively constructed. Reflecting back, I essentially believed that for as long as it works and I haven’t got any urgent tasks, I shouldn’t be compelled to rewrite them.

Typically, I tend to go back to things slowly not all at a time and see if I can remake the script and do the whole thing myself to get an understanding of the methods I can use and explore different ways to script things, for instance, I made a door system recently and I thought it was perfect, it had everything a game needed, but then I learnt about CollectionService and Object Orientated Programming, these completely excelled my learning and the videos I watched really opened my eyes.

So to summarise and answer this, it is always worth noting you will never write perfectly neat code, you will never write the most efficient code and you will never be able to write something that everyone else will follow, especially for me with my autism, I really do creative and unique ways to do something and that is why I love coding.

Re-writing you game is only good if you believe things are running slow, there are memory leaks or you want to challenge and learn how you can do things more efficiently.

Don’t feel down or demotivated to code, I felt that way for so long when I first really wanted to get into making codes and it delayed my learning a lot, I just reminded myself to keep going and the more I do, the more I learn and the better I will become.

REFERENCES:

1 Like

no

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.