Happy Days!

Todays 45+ has been pretty good actually, I did a process I’m calling “refactoring”which is; I take some time out to look at my code and see if I can clean it up.

It really worked! I managed to remove about 3 to 4 global variables and cut out a load of boolean’s that were not being used! It didn’t make anything work better or fix anything broken, but looking at my code now it’s so much cleaner which is really satisfying!

I fixed my last reported issue and got my gems dropping and landing proplery!

Just to boot, I added some new graphics, some from Emerald Beach and some new, I was getting a bit tired looking at the placeholder graphics.

One of my goals, if not, THE goal is to get this game running on IOS, I gave up last time because my code was so bad; being the first ever game I ever made. So as I’m going along I’m testing out on my iphone and it’s all looking good!!

 

  • Silux

    “refactoring” is actually a used tecnique in most of mind exercises.Think it as a form of meditation.
    My code is often enough clear and efficient but i need time to meditate, to grasp my own big picture.
    In java all can be made in a single line of code.So i sometime pick an old class and make it more elegant.
    Grats for problem solving!
    To laugh a bit just read your third paragraph out of the context.
    I often think how weird could be for a casual person to hear ” yesterday i got how to make black holes and i filled an entire galaxy with them just for lols!”

  • 45aday

    Thanks, it’s very satisfying to clean it up and make it look pretty isn’t it? Haha, a bit like a clean desk, clean mind I guess.
    I’m so impressed with what I’ve learnt in Stencly, I made the original version of this about this time last year and what took my almost 2months I’ve done in 3 days! 

    Just keeping the minimum goal of 45 and focusing on small sections is most defiently a good way to progress. 

    I think I know why you laughed at  my third paragraph :-) I just re-read it out of context.

    It must be very weird when people hear about you making black holes and galaxies!