Nov 26, 2011 I am doing a little assignment and came up with a grand idea (lol) of doing a typing effect on the screen, if it is at all possible. For example, in movies when a computer is talking to a human, you see the letters typing out letter by letter on the screen with a blinking cursor at the end.
This animation using C draws a smiling face which appears at random positions on the screen.
C programming code
Try looking for game development tutorials in google, you will find a lot of very simple examples. They usually do not reflect the exact same techniques used in full fledged engines, but understanding those first will make possible to understand the later.
Dev-C is a free IDE for Windows that uses either MinGW or TDM-GCC as underlying compiler. Originally released by Bloodshed Software, but abandoned in 2006, it has recently been forked by Orwell, including a choice of more recent compilers.
area = imagesize(left, top, left +50, top +50); p =malloc(area);
setcolor(WHITE); settextstyle(SANS_SERIF_FONT, HORIZ_DIR,2); outtextxy(155,451,'Smiling Face Animation');
setcolor(BLUE); rectangle(0,0,639,449);
while(!kbhit()) { temp1 =1+ random (588); temp2 =1+ random (380);
Precision tune auto care beaumont tx. getimage(left, top, left +50, top +50, p); putimage(left, top, p, XOR_PUT); putimage(temp1 , temp2, p, XOR_PUT); delay(100); left = temp1; top = temp2; }