6,403 reputation
11741
bio website
location Tehran, Iran
age 23
visits member for 3 years, 8 months
seen 6 hours ago


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.
Dec
13
comment Isometric graphics with fake perspective
didn't say switch to 3D assests, I just suggested use a perspective projection matrix instead of orthogonal one, with everything else kept exactly the same
Dec
13
comment Isometric graphics with fake perspective
just an idea, but why don't use a full 3d engine for rendering your isometric view?
Dec
6
comment Rectangle collision in SDL2 partially allowing sliding C++
Why don't you use already available physics engines, like box2d?
Dec
3
comment How can I protect my save data from casual hacking?
@CodeClown The question is mostly about secrecy; but then again, OP doesn't want some advanced algorithm. He just wants to keep casual players away. Also you can develop everything and simply apply encryption in the very final step, just before release.
Nov
25
comment Grayscale and 2D lighting using cocos-2dx
what about eliminating the if clause? replacing it with an step function?
Oct
26
answered Building a C-E engine in a high level language, how can I integrate optional lower-level components that own overlapping state?
Oct
26
comment How to determine the distance between a point and a rotated rectangle
also it doesn't need to be rotated around the center, and point in plane will do, as long as you rotate everything (including rectangle itself)
Oct
26
comment How to determine the distance between a point and a rotated rectangle
There is a minor problem with your code, consider this case: the point is exactly at (cx,cy). In this case, dx will become "width/2" and dy will become "height/2". Instead of computing squared distance, you should fix this by some conditions.
Oct
16
awarded  Popular Question
Oct
6
comment Moving CCNode with constant speed in cocos2d
what about adding CCMoveBy action? wrapped inside CCRepeatForever?
Sep
25
awarded  Convention
Sep
24
awarded  Autobiographer