214 reputation
24
bio website cppdigest.wordpress.com
location United Kingdom
age 32
visits member for 3 years, 6 months
seen Mar 12 '13 at 17:56

C++ coder.


Feb
24
awarded  Necromancer
Dec
4
awarded  Yearling
Jun
22
comment Is there a way to export all the images of my tweening effect in Flash?
I don't know. Maybe ask on the grapefrukt exporter github issue tracker, or at: prototyprally.com/introducing-the-grapefrukt-asset-exporter
Jun
18
answered Is there a way to export all the images of my tweening effect in Flash?
Feb
29
awarded  Editor
Feb
29
revised Detecting a click on a tile
added 310 characters in body
Feb
29
answered Detecting a click on a tile
Feb
27
comment Reference a single 2d Rectangle in an array
That turned out almost completely unreadable >_<
Feb
27
comment Reference a single 2d Rectangle in an array
Okay I don't know C# and this is (obviously) untested, but to convert pixel coordinates to map coordinates it's just: [code] pixelCoord -= renderOffset; Point mapCoord = new Point( Math.Floor(pixelCoord.x / cellWidth), Math.Floor(pixelCoord.y / cellHeight) ); [/code] Where 'renderOffset' denotes the offset with which the map is rendered (basically its top left corner, in pixels).
Feb
26
comment Reference a single 2d Rectangle in an array
There's really no need to iterate over every grid cell. Finding the cell containing any point in a uniform grid should be O(1). Also, why not just draw the whole grid one colour, then just overlay the selected cell colour? That would save a lot of branching, no?
Jun
3
awarded  Teacher
Jun
3
answered How do I build a 2D physics engine?
May
19
awarded  Supporter
May
19
awarded  Autobiographer