3,162 reputation
1121
bio website leftium.com
location Seoul, South Korea
age 34
visits member for 4 years, 4 months
seen 2 days ago

Leftium: The Element of Creativity!


Jul
21
answered PC game update systems
Jul
21
answered Efficient data packaging for a client-server network
Jul
19
awarded  Enlightened
Jul
19
awarded  Nice Answer
Jul
16
awarded  Yearling
Jul
14
awarded  Commentator
Jul
14
comment 2D Platformer AABB collision problems
+1 for working code sample (missing horizontally moving "spike" blocks, though :)
Jul
13
comment 2D Platformer AABB collision problems
@Vee: The XNA demo already seems pretty close to what you want. How about modifying the demo into your game? (Add moving spikes to the demo, instead of bolting on parts of the demo to your game.) I think by copying only parts of the demo, there are some incompatibilities with the logic (like the jumping algorithms are different.)
Jul
11
comment 2D Platformer AABB collision problems
@Vee let us continue this discussion in chat
Jul
11
comment 2D Platformer AABB collision problems
@Vee: Can you show your code for jumping and IsAffectedByGravity?
Jul
11
comment 2D Platformer AABB collision problems
@Vee: your code doesn't show how onGround is set, so I can't investigate why jumping is incorrectly allowed. The XNA demo updates its analogous isOnGround property inside HandleCollisions(). Also, after setting Velocity.Y to 0, why does gravity not starting moving the player down, again? My guess is the onGround property is improperly set. Take a look at how the XNA demo updates previousBottom and isOnGround (IsOnGround).
Jul
11
comment 2D Platformer AABB collision problems
@Vee: set Position = nextPosition immediately inside the for loop, otherwise the unwanted collision resolutions (setting onGround) still occur. The player should be pushed vertically down (and never up) when hitting the ceiling thus onGround should never be set. This is how the XNA demo does it, and I cannot repro the "ceiling" bug there.
Jul
10
answered 2D Platformer AABB collision problems
Jul
1
answered Any learning/studying material for C/C++ that use game programming as learning context out there?
Jun
11
comment Experience embedding javascript
Be aware the Node.js Windows port is not ready; it's under development: stackoverflow.com/questions/6061053/…
Jun
7
comment Variable height jumping in side scrollers
+1 Leave gravity alone.
Jun
2
revised Math for Game Developer's
added 938 characters in body
Jun
2
answered Math for Game Developer's
May
13
comment Determine position of a rotated element in Tetris
@bummzack: Well, then just use the same table for all the blocks like the DTET system. It simply tests more locations besides left and right. You can create your own system and check however many positions you want. However, using the same table for all pieces might allow "unnatural" wall kicks.
May
13
revised Determine position of a rotated element in Tetris
added 236 characters in body; deleted 1 characters in body