I'm curious how could I make a layout infinite, I need my game to be like kitten cannon or toss the turtle where the character can keep going in the layout infinitely if it hits objects
Develop games in your browser. Powerful, performant & highly capable.
Try the template.
File > New > Template: Auto-runner
Your character is fixed in the x position, and the world (background, objects) move across the screen so need to be generated from the right and destroyed on the left.