It sounds like you're describing a classic endless Motorcycle Run game where the goal is to go as fast and as far as possible while avoiding obstacles like cars and trucks on the road.
Here's a quick overview of how those types of games typically work:
Gameplay
- You control a motorcycle riding endlessly down a highway/road
- Your view is from behind the motorcycle looking forward
- The road endlessly generates in front of you
- Your cycle automatically accelerates, often to insane top speeds
- You use left/right controls to steer and change lanes
- Obstacles like cars, trucks, debris litter the road that you must avoid
Objectives
- Stay on the road as long as possible without crashing
- Weave through traffic at high speeds
- Go for a high score by traveling the farthest distance
- Some games have online leaderboards to compete for best distance
- Collect coins/powerups along the way to increase your score multiplier
Gameplay Variations
- Levels may change scenery from highways to cities, deserts etc.
- Ramps to catch air and do stunts
- Upgrading your bike's capabilities with earned cash
- Different control schemes like buttons, tilt, swiping etc.