Comments in code

Suggest changes and improvements to Algodoo.

Comments in code

Postby Kilinich » Mon Nov 29, 2010 9:31 pm

Please don't remove commented out lines from onCollide/onLaserHit/onHitByLaser ! :idea:
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Comments in code

Postby electronicboy » Mon Nov 29, 2010 9:54 pm

i have to agree, comments are useful as you can leave little messages to yourself for debugging or even letting people know what each line of code does.
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: Comments in code

Postby Rrobba » Mon Nov 29, 2010 11:57 pm

I agree this could be really helpful in tutorials or to keep you on track in long, confusing codes.

Support.
Image
I don't suffer from insanity. I enjoy every minute of it.
User avatar
Rrobba
[Best Sig 2010]
 
Posts: 1480
Joined: Mon Aug 31, 2009 6:01 pm
Location: Gibraltar

Re: Comments in code

Postby tatt61880 » Tue Nov 30, 2010 2:00 am

Support.
After being implemented, we can use comments also when we want to comment-out some codes, temporary. ;)
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
User avatar
tatt61880
[Most Helpful Person 2010]
 
Posts: 1150
Joined: Mon Aug 31, 2009 5:45 pm
Location: Tokyo, Japan

Re: Comments in code

Postby ducky21 » Tue Nov 30, 2010 4:04 am

Maybe they should be highlighted in a color so you can tell that they are a comment, like red is for a error. Blue maybe?
User avatar
ducky21
 
Posts: 301
Joined: Tue Aug 03, 2010 8:58 pm

Re: Comments in code

Postby tatt61880 » Tue Nov 30, 2010 9:30 am

ducky21 wrote:Maybe they should be highlighted in a color so you can tell that they are a comment, like red is for a error. Blue maybe?

Support.
I prefer blue or green for comment. ;)

Customizable option will be the best.
^Because GUI.Skin.fgColor (The foreground color of components (including text)) is depends on Skins.

GUI.Skin.commentColor := [0.0, 0.6, 0.4, 1.0]; // for me. ;)
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
User avatar
tatt61880
[Most Helpful Person 2010]
 
Posts: 1150
Joined: Mon Aug 31, 2009 5:45 pm
Location: Tokyo, Japan

Re: Comments in code

Postby Matten » Sun Dec 05, 2010 2:30 pm

Support.
As tatt said you need to be able to change the color of the comment, but if that happens it would be better if a bigger part of Thyme would be colored. For example numbers ae orange, strings are blue, and comments are green. I think for those Thyme coloring there should be a new thymeColor library in GUI.Skin.
Cave Johnson wrote:Do you know who I am? I'm the man who's gonna burn your house down! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!
User avatar
Matten
 
Posts: 435
Joined: Mon Apr 05, 2010 2:03 pm
Location: The Netherlands


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 4 guests