326 reputation
311
bio website
location
age
visits member for 3 years, 2 months
seen Dec 2 at 17:43

Jul
12
asked Huge performance difference when using drawImage with IMG vs CANVAS
Jun
26
comment QuadTree: store only points, or regions?
Thanks, this makes sense. Sure, processing cross-node objects would be slower than objects that are completely inside a node, but I can't see any way around that. I could increase the node capacity to keep the fragmentation down, but this would increase the number of objects included in collision detection. I'll play around with that to find a good balance.
Jun
22
asked QuadTree: store only points, or regions?
May
24
awarded  Supporter
May
23
comment Choose tile based on adjacent tiles
I am examining all surrounding tiles, but I didn't know how to handle all the tile combinations. For example, you have seven possible tiles to choose from (horizontal, vertical, four corners, and a cross). I thought of using complicated switch statements, but that felt wrong.
May
23
awarded  Commentator
May
23
accepted Choose tile based on adjacent tiles
May
23
comment Choose tile based on adjacent tiles
Great, now my comment doesn't make sense! :p Just kidding, thanks for your answer. That's exactly what I was looking for.
May
23
comment Choose tile based on adjacent tiles
Never mind, I see what you're doing. You're setting bits 3 and 7, but you're counting from the left, instead of the right.
May
23
comment Choose tile based on adjacent tiles
Very nice! Simple and efficient. The only thing that I don't understand is how you're getting those bitmasks. For example how are you getting a bitmask of 17 from the numbers 3 and 7?
May
23
asked Choose tile based on adjacent tiles
Oct
19
comment How can I determine the first visible tile in an isometric perspective?
@Man With Steel Nerves...: You're right, I saw that too. Rendering needs to start from the 14,3 in this case. This actually makes cases 1 and 2 the same. In both cases the algorithm needs to "backtrack" from the starting tile (decrementing map-x and view-x), until the current tile is -HalfTileHeight above the top of the view.
Oct
15
comment How can I determine the first visible tile in an isometric perspective?
@user712092: I have thought about it, but it seemed easier to do a 2D game first. There is too much code already written to switch now. The next version will almost certainly use WebGL.
Oct
15
awarded  Editor
Oct
15
revised How can I determine the first visible tile in an isometric perspective?
added 61 characters in body
Oct
15
comment Java vs Javascript for Web-based games
Thanks, that's a pretty detailed analysis. I am designing a Web-based game, with an eye towards mobile support, so Flash is out (no iOS support), and it appears so is Java (no support on Windows Mobile in the future).
Oct
15
accepted Java vs Javascript for Web-based games
Oct
15
comment Java vs Javascript for Web-based games
It does seem that way... if the future is plugin-less browsers, then Java is in the same boat as Flash and Silverlight. It looks like Javascript will be the only choice for Web apps. At least until Google persuades the world to switch to Dart.
Oct
15
awarded  Scholar
Oct
15
asked Java vs Javascript for Web-based games