The Daily Click ::. Forums ::. Klik Coding Help ::. The Importance of Rewriting Stuff
 

Post Reply  Post Oekaki 
 

Posted By Message

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
17th November, 2007 at 14:51:23 -

This is too small to warrant an article, so I thought I'd just prompt a discussion/suggestion page.

I think it's useful to rewrite a system after you've finally finished it, or after you've finished a part of it. I've been doing this, and I find it really helps simplify a process. Otherwise you can have bug fix after bug fix layered on top of each other, and run the risk of forgetting how earlier parts of your system work.

Additionally, it burns it into your mind if you rewrite it (or parts of it).

Examples may be rewriting your custom movement. For instance, I just finished making a custom movement, and found a few bugs were appearing, which led to more bugs, etc, so I just saved a copy of the original, deleted the whole Movement group and wrote it out again, using the original as a reference/reminder.

This way, I could make it more organised and think of alterations to make to avoid the bugs I had found in version 1.

Then I had the same problem with the Swimming routine, so I saved a copy of what I had so far, and deleted the whole Swimming group.

This has REALLY helped me.

What are your thoughts?

Image Edited by the Author.

 
191 / 9999 * 7 + 191 * 7

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
17th November, 2007 at 15:23:37 -

Absolutely.

Remaking stuff not only allows for new ideas to pop up, but different and more efficient methods of doing things too. Once you have the engine or whatever it is, already done - you can take time to experiment whilst you remake it and play with certain aspects of it, and this may well greatly enhance the game as you come across certain things you didn't think you could achieve from MMF.

I did this with the engine for my game, Legacy. I've rewritten the global code from about 250 events in to just 80! And I'm not even finished yet! Also, with playing around with certain things, I came across an effect (almost a glitch!) that I've never ever seen in any other MMF application... and the effect looks so darn awesome, in my opinion, it's what really sets this game apart from every other.

Rewriting code isn't always fun, but is almost always beneficial.

 
http://www.SilverNova.co.uk


Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
17th November, 2007 at 16:44:13 -

The ol' legend Biax used to re-write his programs so often. Optimising more each time. I'd probably only do it if I lost a backup, but I'm meticulous with backing stuff up so...

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
17th November, 2007 at 17:12:08 -

Oh, God... I've rewritten the engine for my mmorpg project at least 5 times now over the course of 3 years. Although it's a pain to rewrite everything, it does make the engines much more effecient and bug-free each time. Ontop of it, I find an excuse to redo the graphics along with the coding.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
19th November, 2007 at 14:05:57 -

it's not always a good idea if you're not an awesome coder. If you're a bit sucky (like me) you might try to redo your entire engine only to find it's worse than before, or that some problem you solved by luck pops up again.

Although i must admit i did work out a bug quite recently when trying to remake my lil pirate engine. I'll probably not even use the new engine because it's 100% the same as the last one bar the new fix.

So as soon as i add the fix they will be identical.


Although actually i may need to remake the engine because i want to modularize the game so it all runs from one frame.

 
.

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
19th November, 2007 at 19:03:39 -

I fall more into the "if something in your movement group acts strangely, tack new events on the end to try and fix it" camp myself.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

\/\/olf

Creative Genius

Registered
  06/08/2005
Points
  76

VIP Member
19th November, 2007 at 23:38:14 -

Oh hell no. Theres more than 500 events in one level of mine. Recreating everything else would be a pain. As long as everything works and there are no bugs, Im okay with it

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
20th November, 2007 at 00:08:58 -

I always recode, I fall into the camp of "better the second time around". Except I carry that on to like the fifth time around.

 
Craps, I'm an old man!

~Zigzag~



Registered
  13/03/2007
Points
  292

Game of the Week WinnerSilverNova Member
20th November, 2007 at 01:08:11 -

I usually don't recode things unless their really simple because once I've finished coding it the first time I'm usually thinking "Thank God! It finally works!!!"

 
http://www.SilverNova.co.uk

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
20th November, 2007 at 06:49:51 -

I'll normally save a backup, isolate a section of the events that I'm not happy with, and recode them from scratch. There's always a backup just incase you can't get it right for whatever reason and you can make it more efficient or whatever.

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Faithtoken

Never Ending Story

Registered
  03/07/2002
Points
  99
20th November, 2007 at 09:20:48 -

I usually rush it the first time, only so that it works, no matter the amounts om events. Then I sometimes go back and try to optimise it, most of the times making it more stable and smarter.

Image Edited by the Author.

 
Current projects: "Vollo Arena"
God bless you
   

Post Reply



 



Advertisement

Worth A Click