Puzznic?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
function DrawHollowCircle(DrawingSurface* surface, int ox, int oy, int radius){
int dd, ii=0;
int limit = FloatToInt(IntToFloat(radius)/Maths.Sqrt(2.0));
while(ii<=limit){
dd = FloatToInt(Maths.Sqrt(IntToFloat(radius*radius - ii*ii)));
surface.DrawPixel(ox-ii,oy-dd);
surface.DrawPixel(ox+ii,oy-dd);
surface.DrawPixel(ox-ii,oy+dd);
surface.DrawPixel(ox+ii,oy+dd);
surface.DrawPixel(ox-dd,oy-ii);
surface.DrawPixel(ox+dd,oy-ii);
surface.DrawPixel(ox-dd,oy+ii);
surface.DrawPixel(ox+dd,oy+ii);
ii++;
}
}
x=200;
while (x>=0)
{
SetViewport(x,0);
Wait(1);
x--;
}
QuoteThe "MovementSpeed" option allows you to control how fast the character moves when walking. Here, a larger number means he walks faster. If you find that a movement speed of 1 is still too fast, you can use negative numbers (eg. -3) which will move even more slowly. The lower you go, the slower the movement speed.
//Put this in repeatedly execute always of the room:
if (!object[2].Moving){
object[2].X = 0; object[2].Y = 100;
object[2].Move(640, 100, 2, eNoBlock, eAnywhere);
}
Quote from: Alen101 on Thu 17/12/2015 04:50:14
but it wont work with tint.
cEgo.Tint(Random(255), Random(255), Random(255), 100, 100);
SetGameOption(OPT_DRAWLINEMODE, 1); //Say 0 for original(default) algorithm and 1 for fast algorithm
s.DrawLine(blah);
s.DrawLine(blah bla);
...
QuoteAnyway, if one seriously need to use 8-bit images use only real 8-bit editors.
Two good choices of such programmes are Deluxe Paint ][ Enhanced (DP2E) and Grafx 2, as they're 8-bit pixel graphics editors and they won't do foolish things automatically (like "friendly" sorting and trimming your palette, merging slots with similar colours, dithering you images, etc.).
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 2.579 seconds with 15 queries.