some time ago, i did my first boing ball in C language, using basic draw commands.
i made it in classic red and white, but the system take a lot of time to draw it and fill the color. And if i wanted to pu my ball to "walk from one point to other" i had to draw the full object then erase it all, then draw it again 1 pixel in other direction... this would do a flicker animation....
Can i use sprites to speed up the process?
What limitations do i have?
If i understand correctly a sprite is a small range of pixels that you can put "walking" thru screen using direct hardware.... is that correct? but if i want to use an area bigger then the sprite?
imagine a simple square on screen, with basic commands (no sprites) i can do:
1) draw 4 lines connecting each other
or
2) draw each pixel from one coordenate to other
then to put it going to one side of screen to other, i would have to draw, erase, draw again, erase again....and so one... this will flicker the screen a lot... it works but it is not the best way....
How can i do it with sprites? Must i draw the object inside the sprite area and then i can tell the sprite to "walk" around the screen? But about transparency? if i have a background?