Required:
framework: .Net framework 2.0
language: C#
output file: [login to view URL]
output data:
1. strength value (int, value range 0 - 100 or -1 is null): public static int GetStrength([login to view URL] myPosition, [login to view URL] enemyPosition, double windValue, int angleValue)
2. bullet trajectory is one of an array of points (class Point (x,y)): public static [login to view URL][] GetTrajectory([login to view URL] myPosition, [login to view URL] enemyPosition, double windValue, int angleValue, int strengthValue)
call them: [login to view URL](...), [login to view URL](...)
Detail the game here:
video a fight: [login to view URL]
link to play game: [login to view URL]
u need deep know this game to do this project.
More information:
you can create a windows form project in the same solution to test this dll, wind value is random from the game, angle value is drive by player in an allow range by weapon, point (0, 0) is top of the left game area (unit is pixel). In this windows form u can auto detect myPositon and enemyPosition by:
[DllImport("[login to view URL]", CharSet = [login to view URL], SetLastError = true, ExactSpelling = true)]
public static extern int BitBlt(IntPtr hDC, int x, int y, int nWidth, int nHeight, IntPtr hSrcDC, int xSrc, int ySrc, int dwRop);
public static Bitmap GetColorArea(int destWidth, int destHeight, int srcX, int srcY)
{
Bitmap area = new Bitmap(destWidth, destHeight, [login to view URL]);
using (Graphics gdest = [login to view URL](area))
{
using (Graphics gsrc = [login to view URL]([login to view URL]))
{
IntPtr hSrcDC = [login to view URL]();
IntPtr hDC = [login to view URL]();
int retval = BitBlt(hDC, 0, 0, destWidth, destHeight, hSrcDC, srcX, srcY, (int)[login to view URL]); [login to view URL](); [login to view URL]();
}
}
return area;
}
wind value and angle value u input manual maybe better.
waiting u bid, until u can, no need fast.
Hi,
I have gone through your project details and I would like you to know that we would like to do it for you. you can have a view to our profile.
Thanks
Paresh