Comments in code
7 posts • Page 1 of 1
Comments in code
Please don't remove commented out lines from onCollide/onLaserHit/onHitByLaser ! 
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Comments in code
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
I agree this could be really helpful in tutorials or to keep you on track in long, confusing codes.
Support.
Support.

I don't suffer from insanity. I enjoy every minute of it.
-

Rrobba - [Best Sig 2010]
- Posts: 1480
- Joined: Mon Aug 31, 2009 6:01 pm
- Location: Gibraltar
Re: Comments in code
Support.
After being implemented, we can use comments also when we want to comment-out some codes, temporary.
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).
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
-

tatt61880 - [Most Helpful Person 2010]
- Posts: 1150
- Joined: Mon Aug 31, 2009 5:45 pm
- Location: Tokyo, Japan
Re: Comments in code
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?
-

ducky21 - Posts: 301
- Joined: Tue Aug 03, 2010 8:58 pm
Re: Comments in code
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).
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
-

tatt61880 - [Most Helpful Person 2010]
- Posts: 1150
- Joined: Mon Aug 31, 2009 5:45 pm
- Location: Tokyo, Japan
Re: Comments in code
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.
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!
-

Matten - Posts: 435
- Joined: Mon Apr 05, 2010 2:03 pm
- Location: The Netherlands
7 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest



