Pages

Tuesday, April 3, 2012

Since I decided to continue the project I started to think again in all the things I could make to improve it, and the first thing was to make it clear where players / foes were looking at, it's basic to make you know:

Where are you going (the red dot did not helped a lot)

Where are going all the other players / enemies

Can I ambush somebody?, am I being ambushed?

To make client rotate images I just needed a function to rotate a tile certain angle, I didn't had to modify the server code because I already included angle in the players data, I thought how to rotate that and finally I decided to use a library from a good friend that was open source and based in the standard library SGE:

Notice I can't just call Sprig rotate function because I would get a rotated tile with pink background, so I have to use the tmp surface to set the color-key, that way is not optimized at all so I will think in a way to make it faster later, but at the moment is ok.