3,378 reputation
1817
bio website
location Los Angeles, CA
age 36
visits member for 3 years, 7 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.


Mar
25
comment Minecraft style XNA game collision?
Can you give us a bit more to go on? Order of operations, even a bit of code would help out here.
Mar
22
comment How do I create a save file for a C++ game?
@Kylotan How will 32bit and 64bit data ever be compatible with out code interpreting it properly on its system? Same with endian differences? Here is 32 bits of data, whether you store it in a 32bit int or a 64bit int makes no difference to me, the save file just contains 32 bits of data.
Mar
22
comment How do I create a save file for a C++ game?
@Kylotan Why wouldnt handling endianness be something you handled when you ported your game to a new platform? Same on 32 to 64 bit? I am not sure how any other solution would not have to handle these exact same issues that you seem to imply only exist on this proposed solution.
Mar
22
comment How do I create a save file for a C++ game?
@Kylotan I am sorry but I am still unable to find any instance I can think of where knowing the structure of a block of data would leave me in a position to make that data useless on a different platform. Also, I am -very- against dumping your list of objects directly to a save file. The structs I suggest are only to track the information you need to restore a game/level/whatever to its current setup after it has been loaded. You dont store the entire player, you store its health, its list of items, and not the entire item, just what type it is and what its current changeable values are if any
Mar
21
comment What data should be cached in a multiplayer server, relative to AI and players?
It depends quite a bit on the number of players and AI and such in the game. For instance, MMOs use things like scene graphs for quick searching who is close to what for things like you mention above whereas an FPS game that is only tracking maybe 30 things total, that would be overkill and just a linked list of 30 entities is likely enough. Can you be a bit more specific in your settings? With just 5 players and 7 AI, I would say you do not need to do anything special besides have all 13 entities loaded into memory as normal.
Mar
21
comment How do I create a save file for a C++ game?
Why isnt this platform independent? It worked fine on the PC, PS* systems and the 360.. fwrite(pToDataBuffer, sizeof(datatype), countOfElements, pToFile); works for all of those objects assuming you can get a pointer to their data, and the size of the object and then the number of them you want to write.. and read matches that..
Mar
21
answered How do I create a save file for a C++ game?
Mar
19
comment Accessing managers from game entities/components
Welcome to the site! I am glad you found a solution to your problem. I invite you to put the answer into an actual answer and mark it as the answer. The site more than allows for this :)
Mar
16
comment Profiling and containing memory per system
Removed my answer. I went back and read the articles and the pools used to track per-system allocations are not part of those articles (even though they were based on it) If I can find those specific ones again I will link those instead! Sorry!
Mar
14
comment How to detect what portion of a rectangle a point is in?
I think it is the cross product and the sign of the result to say whether you are on the left or right side of a line but I think that is what you are looking for here in the generic case. If you are looking for something a bit more special case you might find something a bit faster processor wise.
Mar
12
comment XNA Platformer Screen Collision
Sorry if this comes off wrong, but is your render area really 1800 wide? Should it maybe be 1080?
Mar
11
comment Is it worth planning to be cross-platform in mobile game development?
To counter the argument at the end of the linked article, I have talked to a handful of mobile developers that all share the same rhetoric, if you are looking to make an income from mobile development you should target iOS. The Android market has proven itself to not be as willing to pay for what the iOS market will.
Mar
8
comment Pre game loading time vs. in game loading time
And to chime in a bit with @JohnMcDonald, if you can calculate these paths mid-game and its not noticeable, how much of a contributing factor can they be at load time?
Mar
7
awarded  Fanatic
Mar
3
comment Scripting language with class instance support
1 and 2 are easy from what I recall (and I also agree that most wrapping libs out there are overly complicated and so usually roll my own). But what I am trying to find out is if there is a test for the existence of a function or method. Most of the calls to execute a lua function from C do not appear to return. Assuming that if the script compiled the syntax was atleast ok, that just leaves invalid arguments vs undefined call, but I have not been able to find a way to determine which is which yet :)
Mar
3
comment Scripting language with class instance support
Oh, I was thinking the other way around. Let me see if I can not figure out what happens (would assume the call just fails in a handle-able manner but seeing as I have never had that situation, I am not going to bet an answer on it :))
Mar
3
comment Scripting language with class instance support
Could you explain 3. a bit more? I am pretty sure Lua is able to do 1 but I am not sure I am understanding what the last one would do to venture a guess as to if Lua does it or can be altered to do it. (Might be as simple as looking through the global tables or an objects table to see if a method of the same name is defined already or not).
Feb
29
comment Increasing the probability for similar tiles to generate next to each other
+1 As I think the jump to noise is generally where this will lead.. I am wondering if that might be a bit too big of a jump though so the initial 'scan around and alter the percents' eased me into the vote :)
Feb
27
answered How are non-repetitive pixel backgrounds created in 2D games? (e.g., Superbrothers: Sword & Sworcery EP)
Feb
24
comment How do they made Pokémon games so flawlessly balanced?
Might also be noted that Pokemon at the end of the day is just a Rock-Paper-Scissors game with some 'abilities' that add in a bit of flair.. I say that simply because it doesnt matter what abilities you use if you have opposed pokemon-types in battle and are the rock to their paper.