Reputation
530
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
2 8
Newest
 Commentator
Impact
~20k people reached

  • 0 posts edited
  • 0 helpful flags
  • 45 votes cast
Feb
23
comment Calculate total area of a composition of images
I'm aware that the area doesn't change with rotation. As Lars commented, the use or area is a bit ambiguous but I think the chunk of code in my question made pretty clear that my intention was computing the AABB of the whole composition.
Feb
23
comment Calculate total area of a composition of images
Makes sense. Could you please expand the answer to include the scale as well?
Feb
23
comment Calculate total area of a composition of images
Yes. That's a good point - I edited the answer to reflect that.
Feb
16
comment Transform matrix hierarchy issue
Funny thing is - I assumed this behaviour was something that also happens in real frameworks and engines. Just went to check in Unity and the same deformation occurs. At least this agrees with all tutorials about matrices where they say to just multiply parent's matrix with child matrix.
Jan
16
comment How can I maintain saved game backward compatibility?
I'm not aware of a generic architecture for this goal but I would make make the patching process also update/convert save games to ensure compatibility with new features.
Jan
15
comment Java High-Resolution Timer for a simple game
I really don't know what are you trying to achieve since you brought Swing into the story. I recommend you read about game loops here: gafferongames.com/game-physics/fix-your-timestep
Jan
15
comment Java High-Resolution Timer for a simple game
Delta time is the difference in elapsed time. In your example (to achieve centiseconds) you could call System.nanoTime() in a loop and accumulate time differences until you get a centisecond and then update your game logic. But since you need only centiseconds precision, System.currentTimeMillis() should also be enough. What are your concerns regarding these methods?
Oct
29
comment Online Android Game Server
What are the requirements for your server? What did you try to do? Imagine if somebody asked you: "How to make a cake?". Would you know how to answer? No? Is your question any better? Hint: read the FAQ.
May
23
comment Detecting collision on a grid with a fast-moving object
You should also consider using existing physics systems, usually there is no need to reinvent the wheel :-). For example Box2D.XNA (box2dxna.codeplex.com).
May
22
comment How can I optimise collision checks for a large number of AI units?
A separate component. Beside the AI, there are other parts of the game that usually need to know about collisions. (If you use an existing game engine, there's a good chance it already has some form of collision detection, scene graph and spatial partitioning.)
May
3
comment jMonkey Quest Database
If you don't have much quests, xml is the way to go. But if you have thousands of entries and you need to retrieve them based on different criteria - some kind of database is the way to go. This can be a SQL or a NOSQL one, depending on your preferences.