Walking Stickman -Using C graphics
Walking Stickman - Animation using C graphics #include <stdio.h> #include <conio.h> #include <graphics.h> #include <dos.h> void main() { /* request auto detection */ int gdriver = DETECT, gmode, err; int radius = 10, x, y, midy; /* initialize graphic mode */ initgraph(&gdriver, &gmode, "C:/TC/BGI"); x = 50; midy = getmaxy() / 2; y = midy - 100; /* * used 5 stick man (still/image) * position to get walking animation */ while (x < getmaxx() - 25) { /...
Comments
Post a Comment