|
Geti
|
 |
« Reply #165 on: April 29, 2012, 01:43:40 AM » |
|
^ this is why whitespace is a good thing.
|
|
|
|
|
Logged
|
|
|
|
|
pixhead
|
 |
« Reply #166 on: April 29, 2012, 05:33:47 PM » |
|
^ this is why whitespace is a good thing.
this is why quotes are a good thing 
|
|
|
|
|
Logged
|
"Games are made by artists, so to not consider them art is an insult to the artists who work on them." - Some guy on IGN.
|
|
|
|
st33d
Guest
|
 |
« Reply #167 on: April 30, 2012, 08:13:45 AM » |
|
You may get a rise from this: // may god forgive me for this if statement: if( !layers[ENTITIES][r][c] && layers[BLOCKS][r][c] != 1 && ( ( ( critterId == MapTileConverter.RAT || critterId == MapTileConverter.COG_RAT )&& ( bitmap.bitmapData.getPixel32(c, r + 1) == MapBitmap.LEDGE || bitmap.bitmapData.getPixel32(c, r + 1) == MapBitmap.LADDER_LEDGE || layers[BLOCKS][r + 1][c] == MapTileConverter.WALL ) ) || ( ( critterId == MapTileConverter.SPIDER || critterId == MapTileConverter.BAT || critterId == MapTileConverter.COG_SPIDER || critterId == MapTileConverter.COG_BAT ) && ( layers[BLOCKS][r - 1][c] == MapTileConverter.WALL && bitmap.bitmapData.getPixel32(c, r - 1) != MapBitmap.PIT ) ) || ( critterId == MapTileConverter.COG && ( ( layers[BLOCKS][r - 1][c] == MapTileConverter.WALL && bitmap.bitmapData.getPixel32(c, r - 1) != MapBitmap.PIT ) || layers[BLOCKS][r + 1][c] == MapTileConverter.WALL || layers[BLOCKS][r][c - 1] == MapTileConverter.WALL || layers[BLOCKS][r][c + 1] == MapTileConverter.WALL ) ) ) ){ layers[ENTITIES][r][c] = critterId; critterNum--; }
|
|
|
|
|
Logged
|
|
|
|
|
Sakar
|
 |
« Reply #168 on: April 30, 2012, 08:32:34 AM » |
|
 That...that just... Wow
|
|
|
|
|
Logged
|
|
|
|
|
John Nesky
|
 |
« Reply #169 on: April 30, 2012, 08:46:30 AM » |
|
class Person extends Flammable
|
|
|
|
|
Logged
|
|
|
|
|
ThemsAllTook
|
 |
« Reply #170 on: April 30, 2012, 09:00:19 AM » |
|
My goodness, st33d, that's a train wreck. Temporary variables exist for a reason!
|
|
|
|
|
Logged
|
|
|
|
|
Fallsburg
|
 |
« Reply #171 on: April 30, 2012, 09:44:54 AM » |
|
class Person extends Flammable
Huh, I have: class Person implements IFlammable Great minds and such.
|
|
|
|
|
Logged
|
|
|
|
|
omgnoseat
|
 |
« Reply #172 on: April 30, 2012, 01:04:56 PM » |
|
I was working on collision detection, and wanted to save the penetration depth (overlap) of the collision. double penetration
|
|
|
|
|
Logged
|
|
|
|
|
st33d
Guest
|
 |
« Reply #173 on: April 30, 2012, 02:59:17 PM » |
|
My goodness, st33d, that's a train wreck. Temporary variables exist for a reason!
Procedural level generation rules. It handles dumping scenery that I'm constantly re-editing. I might tidy it up. I might just leave it to bewilder future generations. (Seeing as it runs fairly faster than loading into variables.) Ah the joy of open source software development.
|
|
|
|
|
Logged
|
|
|
|
|
fecal_brunch
|
 |
« Reply #174 on: April 30, 2012, 03:12:56 PM » |
|
if(newLine) newLine = !newLine
Could somebody explain this to me pls?
|
|
|
|
|
Logged
|
-Rhys
|
|
|
|
zacaj
|
 |
« Reply #175 on: April 30, 2012, 03:15:51 PM » |
|
if(newLine) newLine = !newLine
Could somebody explain this to me pls? If it's not zero, set it to NOT itself. NOT itself if it's any number besides 0 makes it equals zero. It's the equivalent of newLine=0
|
|
|
|
|
Logged
|
My twitter: @zacaj_Well let's just take a look at this "getting started" page and see-- Download and install cmake
Noooooooo
|
|
|
|
Geti
|
 |
« Reply #176 on: May 01, 2012, 12:38:25 AM » |
|
^ this is why whitespace is a good thing.
this is why quotes are a good thing  smartarse, haha. -hardcore collision detection-
made me chuckle
|
|
|
|
|
Logged
|
|
|
|
|
fecal_brunch
|
 |
« Reply #177 on: May 01, 2012, 01:19:23 AM » |
|
if(newLine) newLine = !newLine
Could somebody explain this to me pls? If it's not zero, set it to NOT itself. NOT itself if it's any number besides 0 makes it equals zero. It's the equivalent of newLine=0 Right, that's what I thought. So it's just a really bizarre thing to write... I wonder what the thought process was.
|
|
|
|
|
Logged
|
-Rhys
|
|
|
|
pixhead
|
 |
« Reply #178 on: May 01, 2012, 01:24:19 AM » |
|
if(newLine) newLine = !newLine
even better I forgot to tell you newLine is a boolean varible 
|
|
|
|
|
Logged
|
"Games are made by artists, so to not consider them art is an insult to the artists who work on them." - Some guy on IGN.
|
|
|
|
kw
|
 |
« Reply #179 on: May 01, 2012, 02:29:36 AM » |
|
 void Update() { if(Input.GetKey(KeyCode.LeftShift) && !isSprintEnabled) { EnableSprint(); } else if(!Input.GetKey(KeyCode.LeftShit) && isSprintEnabled) { DisableSprint(); } }
and Error: Error CSO117: 'UnityEngine.KeyCode' does not contain a definition for 'LeftShit'.
|
|
|
|
|
Logged
|
|
|
|
|