Development Log 13/08/12

Covered a few more chapters of the tutorial, mainly covering classes. I started looking into file io.

Ive started rewriting the code for my Text adventure. After 5 minuites this morning I realized just how flawed my first approach was. Working with classes and files makes for much more manageable code. No zip today, since i cant compile atm :(

Comments

I'd like to see your approach at using classes here. :)
In your code, you initialized a load of routes on separate lines. If you're initializing a lot variables of the same type, you can do that like this:
int var1, var2, var3, var4 = 666, var5, var6, var7 = 9001;
float imFloating, imToo, andIAmAswell, justLikeMe = 13.37f;

You might already know but I just thought I'd point out.
 
Thanks for the tip. It's odd my tutorial didn't mention that.
I should have some code up either today or tomorrow utilizing classes, as I want to get file io to work before uploading my code again.
 

Blog entry information

Author
ThePowerOutage
Views
170
Comments
4
Last update

More entries in Personal Blogs

More entries from ThePowerOutage

Share this entry

General chit-chat
Help Users
  • SylverReZ @ SylverReZ:
    @AncientBoi, you've got Kenny here.
    +2
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, although it has to be bigger for ancientboi to like it
    +1
  • K3Nv2 @ K3Nv2:
    Whoever liked it is gay it's just a smiley face
    +2
  • BigOnYa @ BigOnYa:
    Lol, that's so funny
  • BakerMan @ BakerMan:
    guys, another dessert related question
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, didnt know i was gay
  • BakerMan @ BakerMan:
    is it "care-a-mell" or "car-mull"?
  • Xdqwerty @ Xdqwerty:
    @BakerMan, either works
  • BakerMan @ BakerMan:
    yeah, i just mean in y'all's opinions
  • Xdqwerty @ Xdqwerty:
    btw guys i played some roblox game with a friend from there that missed me
  • Xdqwerty @ Xdqwerty:
    is that a good thing?
  • Xdqwerty @ Xdqwerty:
    im coming back to roblox relatively slowly
  • BigOnYa @ BigOnYa:
    Care A mell is how I've always pronounced it. But i heard both ways. Goes both ways, like kenny.
  • K3Nv2 @ K3Nv2:
    Well now my routers not picking up my ring device fucking hate ring
  • BigOnYa @ BigOnYa:
    Be a good time to leave flaming dog poo in a bag on your porch...
  • K3Nv2 @ K3Nv2:
    You're as much as a threat to me that my grandma is
    +1
  • BigOnYa @ BigOnYa:
    Damn, somebody not getting they nipples twisted right today? Lol
    +1
  • BigOnYa @ BigOnYa:
    I don't have any "Ring" devices so don't know, we have "Rang" devices tho, from the dollar tree
  • K3Nv2 @ K3Nv2:
    Any grown woke man would know not to piss off grandma
    +1
  • BigOnYa @ BigOnYa:
    Grandma's a shooter, not a fighter.
  • K3Nv2 @ K3Nv2:
    Made uregrandma shoot
    K3Nv2 @ K3Nv2: Made uregrandma shoot