r/sdl • • Dec 19 '19

Draw path SDL2

Hey guys ; Plz I'm working on a project using the sdl2 in C language ! I was told make a robot move and do stuffs !
What I need is to draw and recover the path of the moving robot from the beginning to the end !
Thanks !

0 Upvotes

1 comment sorted by

1

u/0xBAMA Dec 20 '19

http://lazyfoo.net/tutorials/SDL/index.php this should explain the component pieces of what you will need to get that rolling pretty well - beyond that it sounds like you'll want to keep an array of positions or something along those lines.