Hello.
I'm trying to create a traffic simulator using java applet. I've seen a couple of source codes and to be honest, I'm just clearly confused on how to go about it.
What I've done so far is paint the image of the road junction that I am trying to run the cars on. So i've got an image of a 4 way cross junction.
How do I simulate a car object to move on a specific road? I know that I would need a Car class.
I'm not asking for the code itself, just an understanding on how to go about doing it.
Thanks.