2,112 reputation
822
bio website
location
age
visits member for 2 years, 7 months
seen 2 hours ago

Aug
17
comment How to Use Images Instead Of Drawing Primitives
Yes, it's possible.
Aug
16
comment Trying to generate some unique numbers
The main problem of your algorithm is that it can't work. Look at the for-loop. It essentially says if(A) { break; } else { break; }, so it will always break at i==0 and never execute twice or more, so you don't ever run through your whole array. So all you do is compare your new random numbers with the first one you created, and you insert it if it's different to the first one.
Jul
28
answered What can I do with an old XNA game?
Jul
24
comment Famous 2D tile-based game?
I understand the question such that you are looking for free 2D tile art. You may want to look here.
Jul
17
revised Reset timer in XNA
added 827 characters in body
Jul
17
comment Reset timer in XNA
@J.Steen Ah ok, it only happens when the total TimeSpan is negative though.
Jul
17
comment Reset timer in XNA
The problem for checking seconds==59 is that only 59 seconds have passed when the check succeeds - the question is to check for exactly 60 seconds, and because of the wraparound 0 seconds == 60 seconds, so you have to check for the 59 -> 0 transition
Jul
17
comment Reset timer in XNA
@J.Steen Could you provide a code sample to set .Seconds to -59?
Jul
17
revised Reset timer in XNA
deleted 38 characters in body
Jul
17
comment Reset timer in XNA
Right, silly me as well.
Jul
17
revised Reset timer in XNA
added 222 characters in body
Jul
17
comment Reset timer in XNA
TotalGameTime.Seconds is an integer, so yes, it can be exactly 60.
Jul
17
answered Reset timer in XNA
Jun
18
revised Is the city of the GTA, L.A. Noire, Assasins Creed or Saint Row games considered a level?
added 382 characters in body
Jun
18
answered Is the city of the GTA, L.A. Noire, Assasins Creed or Saint Row games considered a level?
Jun
13
comment How do I determine if one polygon completely contains another?
Funny enough, while teodron's and knight666's are wrong individually, when combined, they should give a right answer. If all points of a polygon are inside another, and if their lines don't intersect, then the first poly is completely inside the other.
Jun
5
comment Delaying a Foreach loop half a second
Thou shalt not use foreach() in a performace-critical part of software, for it is less efficient than for(). It may not be a big difference, but in a game, every bit counts.
Jun
2
comment How do I implement fog of war in a tile-based game?
@Sigh-AniDe Look, I'm writing my answers based on your questions. I am spending my time to help where I can. I cannot read your mind, so in the future, please ask only what you really want, not something that may or may not help you. I don't know about others, but I hate wasting my time.
Jun
2
comment How do I implement fog of war in a tile-based game?
@Sigh-AniDe The tutorial you linked to does something else than what you asked for. You asked for a fog of war that only illuminates a tile adjacent to the player (and maybe the tiles you already visited, you didn't specify that), not in a circular area around the player. If you are asking for a circular area of light, you need to change your question.
Jun
2
revised How do I implement fog of war in a tile-based game?
deleted 198 characters in body