eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 28 Nov 2014 06:08 PM |
That aside... What do you guys use to name your variables? Do you guys use OOP a lot? If you use OOP, how do you expose your classes?
Do you guys like the idea of using modulescripts for softcoding behaviour or do you think it's really stupid?
FilteringEnabled or authoritative logic?
Watch this as everyone ignores me. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 28 Nov 2014 06:10 PM |
In Lua:
A name my variables depending on what it does (without some sort of prefix like intCounter) I rarely use OOP (never in "real" game scripts) Modulescripts are awesome |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2014 06:14 PM |
Authoritative logic. ModuleScripts are amazing. (Although they fall directly under the Instance class, which is annoying)
I don't use OOP much, because I am not into it much, but what I have done so far is pretty fun.
I always name my variables something relevant (Unless my mind goes blank) and I try to spell it out completely, unless I will need to use it a lot. I always separate the words of my variables with a capital letter, no underscores, and I capitalize the first letter of the variable too.
Also, a pet peeve is when people use lowercase acronyms for variables. StarterGui should be StarterGUI, in my opinion, even though if it is all capitals it looks odious and repugnant, also in my opinion. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2014 06:17 PM |
What do you guys use to name your variables? Relevant names. Torso for a torso, map for a map. rs for ReplicatedStorage
Do you guys use OOP a lot? No
Do you guys like the idea of using modulescripts for softcoding behaviour or do you think it's really stupid? What do you mean by softcoding?
FilteringEnabled or authoritative logic? FE |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2014 06:18 PM |
Ugh, FE AND authoritative logic!
And FE doesn't help if your values are managed by a local script, I am positive! |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 28 Nov 2014 06:23 PM |
| By softcoding (in context), I'm actually refering to an abstractly OOP method of using modulescripts by using them for defining behaviour in items hehe |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 28 Nov 2014 06:25 PM |
| anyone want to talk about their project instead? |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
| |
|
|
| 28 Nov 2014 06:27 PM |
| I am messing around with metatables, occasionally trying to add custom functions to CFrames again. I doubt that is ever going to happen. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2014 06:28 PM |
| Oh and just now I was trying to think of a way to use ModuleScripts to replace RemoteFunctions, just to annoy other scripters. |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 28 Nov 2014 06:29 PM |
:(
Dude, look at proxy. Use the modulescript to override the environment table with proxied clones of the primary userdata values |
|
|
| Report Abuse |
|
|
| |
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 28 Nov 2014 06:29 PM |
I'm slowly working on finishing my minigames
I'm only making minigames because my projects always fail because I give up from being bored
So hopefully by making minigames, it will be like a bunch of small projects to keep me interested instead of 1 that I get bored of building |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 28 Nov 2014 06:31 PM |
Heh Is it bad that in all the time I've been on Roblox, I've not touched the building tools. The most I did was resize some parts once as a demonstration of surfaceGuis |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 28 Nov 2014 06:37 PM |
Oh I didn't say that because I felt like talking about my project, but I suppose since you already asked.
I'm working on this Java console-based chess game, using chess notation to move pieces (collumns are lettered, rows are numbered) and basically you pick the square your piece is at, and the square you want to go to, and some mega-method checks if that's a valid move.
It has rules for everything except en passant (a special move with the pawn), checking the player, checkmate, and preventing a player from castling when someone is attacking one of the squares the king has to move through.
Fun stuff |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 28 Nov 2014 06:38 PM |
| It's not quiet, it's exhausting because when I see lordrambo post what hits me is "Ugh, complain alarm". |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 28 Nov 2014 06:42 PM |
| My friend Michael is making a chess game in Python. I helped him with the logic and some of the Python code hehe |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 28 Nov 2014 06:51 PM |
None of the logic has really been that hard I don't think. Maybe the bishop was the hardest. Just a lot of rules to write, and you have to be fluent with the game to make sure you know them all.
Might use System.err.println() to display one of the side's pieces. Right now I use upper/lowercase characters.
@Fedora It's exhausting because now you need to think of another bs reason about why printing was okay, even though everyone disagreed with you. Sometimes it's easier not to be so thick-skulled. |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 28 Nov 2014 06:52 PM |
| One of the unicode standards or something has symbols for black and white chess pieces hehe |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2014 06:54 PM |
Forums are quiet, and rude...
Life is like a lemon, if you eat it, everything goes wrong. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2014 06:54 PM |
| Someone apparently didn't know what characters to add for the remaining values, but wanted to fill them immediately anyways. |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 28 Nov 2014 06:56 PM |
Hehe, yeah. I need to find out the alt-codes for the (g)x symbols so that I don't have to keep writing words that people can't put through google translate to (Badly) understand. |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 28 Nov 2014 06:57 PM |
| Oh man you're right, I forgot about those. Thanks for pointing that out. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 28 Nov 2014 06:57 PM |
| Nooo please use only characters from 0 to 255 because unicode is fat :( |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 28 Nov 2014 07:00 PM |
^ I actually wasn't sure if it was ascii or unicode. I only use Java in school, because I have left over time in APCS and because it's there.
So yeah, I've only been working on this in school, a little bit at a time for like months now. |
|
|
| Report Abuse |
|
|