6,473 reputation
11742
bio website
location Tehran, Iran
age 23
visits member for 3 years, 11 months
seen 10 hours ago


2d
comment Body lost a velocity component when hitting a wall
your conversation with zee, made me thinking... are you just applying an impulse in one frame, and let the ball move on it's own for the rest of game, or are you applying the force every frame?
2d
reviewed Approve Cross platform C++ UDP socket library
Apr
4
accepted How to properly implement alpha blending in a complex 3D scene?
Apr
4
awarded  Nice Question
Mar
31
revised PHP battle script
added 56 characters in body
Feb
12
comment Possible A* Optimizations
The very reason that you are searching for the path is because your heuristic is not perfect. If it was, you could easily start from the starting node, always choosing the neighbor with lowers heuristic and find the best path with such a naive greedy algorithm. All these path finding algorithms are there to minimize your re-ordering routines, but still whenever you graph gets huge, there will be many re-prioritizing(s) required.
Feb
11
comment Possible A* Optimizations
@MrSnappingTurtle I mean the case, that you've opened a node, but later found some better way to reach it.
Feb
11
answered Possible A* Optimizations
Feb
6
answered How Use loop's in cocos2d-x
Feb
6
comment How Use loop's in cocos2d-x
I guess you meant Sequence::create(delay,runCallback, nullptr). Also personally I prefer using lambda instead of member function: Callfunc::create([this](){speed += 0.3;})
Feb
5
comment Speed dependent arc question
So I'll guess it's something that you should define yourself, so that it looks like real life? In fact the book continued to say, it's just as big you can get, without your animation look unnatural.
Feb
5
comment Speed dependent arc question
Pretty sure that's something that is defined in your own assignment context. And it should mean something like how much it character can rotate safely. Like when driving a car, you can easily rotate it as much is you want, but when you are driving at 90mph, making a hard turn will most likely result in a crash!
Jan
13
revised How do I determine the draw order in an isometric view flash game?
added 4 characters in body
Jan
10
comment Is there a way to exclude original sprites in spritepacker that's in asset bundle?
Are you sure that's the problem? I mean, when loading textures, they'll be stored as uncompressed RGB data in memory, maybe that 25MB you are seeing the size of your package uncompressed? to verify this, just multiply width by height by Bytes_Per_Pixel of the texture
Jan
3
answered How can I create a large space background that repeats, in an unnoticeable way
Dec
26
answered differences betwen game resolution in a different display resolution
Dec
21
answered How could I constrain player movement to the surface of a 3D object using Unity?
Dec
17
answered How can I obtain information about the GPU in Cocos2d-x?
Dec
13
comment Isometric graphics with fake perspective
Just an idea, but you can provide your shader with another texture, representing the height of that pixel, and take that information into account
Dec
13
comment Isometric graphics with fake perspective
It's true, assets are othogonal, but then again, you are drawing them on plane. you can skew that plane, so that it's a little further from camera on it's top. Note that with this change, you won't notice a thing as long as your projection matrix is orthogonal, but switching to perspective at this point will probably create the effect you are looking for.