its almost the same as the mario game, the only diffrence is that there is no enemy. altough, you whould slow down if you touched a rock. just like in real life. another diffrence is that the goal is to get to the flag. also, there is no win or lose. but the mario game does have that.
just like the mario game, i watched a video to do this, and i added my own details to it. if you don't know about the mario game, go and check now! i made it before this.