3,398 reputation
1817
bio website
location Los Angeles, CA
age 36
visits member for 3 years, 8 months
seen Mar 28 at 17:28

I am a former video game developer who now makes enterprise software solutions as my day job and small game projects in my spare time.


Apr
16
comment How to get the path of a file after publishing my game
stackoverflow.com/questions/52797/…
Apr
12
awarded  Talkative
Apr
11
answered 2D Particle Explosion
Apr
11
comment What algorithm can I use to detect simple shapes in a 4x4 matrix?
@Ion Wish we could chat but since we can not, my suggestion for the algorithm then is to loop through the matrix for each color building up a bit mask as above in the answer for that color and compare it against a list of known shapes (if the list is long a switch statement will help with speed and also let you map multiple masks to the same shape (a square in any corner for example is still a square maybe). With out knowing more exactly what you are doing I do not think I can give any more insight on this topic and will just remove my answer. Let me know.
Apr
10
comment What algorithm can I use to detect simple shapes in a 4x4 matrix?
@ion are the 'valid' shapes unlimited in variation and only limited by the size? and if there is no difference between a shape made up of a single color or multiple colors, at least as far as detection of the shape goes, I would still suggest simplifying it down to an off/on pattern for the detection. You can also always extend the size you want to go simply by adding in another integer to hold more bits (integers are just bit arrays of a set size is all). As long as the valid 'detectable' combinations are limited I would go with something like above for speed/maintainability.
Apr
10
answered What algorithm can I use to detect simple shapes in a 4x4 matrix?
Apr
10
comment What should I use (controls, methods) to make a 2D tile based map editor?
Sounds like you are actually loading the graphics of your entire map at a single time into the control and then panning it around.. Traditional tile engines will want to only draw enough of the tiles to fill the screen plus one set of border tiles so you do not see tiles pop in and out. The point of a tile engine is to load the set of tiles once and use them to draw over and over again.
Apr
10
comment Random World Generator
@Byte56 That I did, article has been linked into the answer.
Apr
10
revised Random World Generator
Added in missing article
Apr
10
awarded  Nice Answer
Apr
9
answered Random World Generator
Apr
6
comment What is better for the overall performance and feel of the game: one setInterval performing all the work, or many of them doing individual tasks?
My only point was to consider what needed to be updated that fast and what did not.. Most web animation is 24FPS for example (Flash's default if I recall?). Human reaction speed is .2 seconds. Splitting things up might just give you better utilization of your processing time is all.
Apr
6
comment What is better for the overall performance and feel of the game: one setInterval performing all the work, or many of them doing individual tasks?
I can not do time trials and such so I can not give an answer, but just logical insight says you might be able to do parseInput() at a higher resolution if player input timing is key but maybe you want to look the draw time down to 20fps or some such and physics to 45 instead of 60fps. Maybe put the logic at 30fps.. You could in theory balance out the time needed to update each different section based on that.
Apr
4
comment I am looking to make a spaceship tilt as it corners but I cant get it to return
@bobthemac I have added in some more information to address the information in your comment here.
Apr
4
revised I am looking to make a spaceship tilt as it corners but I cant get it to return
Updated based on more refinement in the comments.
Apr
4
answered I am looking to make a spaceship tilt as it corners but I cant get it to return
Apr
1
answered Templates and game consoles
Mar
27
comment Clicking on clues and other objects in a 2D cluedo like game
Ah, sorry I can not help with the specifics as I have not made an android app before so I am unsure of the component's members/methods and such.
Mar
27
comment Clicking on clues and other objects in a 2D cluedo like game
@Anearion No worries, that is why we are here. If it helps Id appreciate an up-vote, if its the answer you were looking for Id appreciate it being marked as such as well :)
Mar
27
answered Clicking on clues and other objects in a 2D cluedo like game