| bio | website | brokenbeta.co.uk |
|---|---|---|
| location | London, United Kingdom | |
| age | 26 | |
| visits | member for | 2 years, 3 months |
| seen | yesterday | |
| stats | profile views | 19 |
Actionscript programmer dabbling in C++, C#, and various
Holds a private pilot's licence
Rides a little red motorbike with approximately the same power output as a combined 4x4 matrix of hamsters
|
Dec 5 |
comment |
Elegant solution for coloring chess tiles @LarsH I was aiming for readability, not speed. But there is not much in it. I'm not sure that the speed difference between the two can be considered "a lot" when we know it will only be called 64 times, and I would like to think that a modern compiler would generate identical binaries anyway. |
|
Dec 5 |
awarded | Nice Answer |
|
Dec 5 |
comment |
Elegant solution for coloring chess tiles Hello, Kevin. You wrote The one-liners used in answers so far would have to be re-written. but also it's best to come up with generalized solutions like this instead of writing code that's difficult to change later. But you must understand that this code is much harder to tear down and rewrite than a single line. So I downvoted you because it isn't elegant or advisable to do this. |
|
Dec 5 |
awarded | Yearling |
|
Dec 5 |
awarded | Critic |
|
Dec 5 |
answered | Elegant solution for coloring chess tiles |
|
Dec 5 |
comment |
Elegant solution for coloring chess tiles^ is fine, but + works equally well. :) |
|
Nov 15 |
awarded | Autobiographer |
|
Nov 8 |
answered | Moving CW or CCW? |
|
May 28 |
comment |
How do I produce “enjoyably” random, as opposed to pseudo-random? Very related question: stackoverflow.com/questions/910215/… |
|
Apr 7 |
comment |
How to avoid game objects accidentally deleting themselves in C++ You could also take a look at the implementation of autorelease in Objective-C, where deletions are held off till for "just a bit". |
|
Mar 5 |
awarded | Teacher |
|
Mar 4 |
awarded | Editor |
|
Mar 4 |
revised |
Cocos2D - How to move sprite on the X axis, using the accelerometer added 32 characters in body |
|
Mar 4 |
answered | Cocos2D - How to move sprite on the X axis, using the accelerometer |
|
Mar 4 |
awarded | Commentator |
|
Mar 4 |
comment |
Cocos2D - How to move sprite on the X axis, using the accelerometer Did you notice that your rollingX variable is read while not initialized? |
|
Mar 3 |
comment |
How to draw equal length line stripes on a parabola? @Gustavo: No, but I wrote a flash game with this exact same requirement. My method is what you get when you search for the more general case of drawing dots or strokes along an arbitrary wiggly line. Sam's solution works but strikes me as an overcomplicated approach (sorry Sam). To me this problem is about how to draw the line correctly, not how to adjust my simulation so that the time steps give equal spacing. And if you were performing more complicated arc simulation (box2d bounces?) you might not be able to change the time step. |
|
Mar 2 |
answered | How to draw equal length line stripes on a parabola? |
|
Jan 17 |
comment |
How does a one-man developer do its games' sounds? There is actually an Air version of SFXR with slightly updated feature set called BFXR -- bfxr.net |