Endless runner help


So basically I'm trying to make an endless runner. I'm using Cotton to make it because it makes the character controller and stuff way easier. However, I come to a problem: an endless runner needs to be endless, and I have no idea how to really do that. My idea was to have a bunch of different rooms and it would just randomly pick one every time you scroll the screen so that it seems endless, but I don't really know how to do that, so anyone who's experienced in LDtk or Cotton could help please!

The most common way to do this is to either spawn objects constantly and delete them when the leave the screen or the other is to have 3 or four permanent objects that reset their position after reaching a certain point. Either way watch Squid God's YouTube tutorial for an intro to playdate development. https://www.youtube.com/watch?v=BG-pbLrY3ro&list=PLlMPQvEA0GZPOuKJyhSr3Ra0vrpCiBTnb&index=8


That's what I was thinking, but with Cotton I don't know what the objects are

So it turns out cotton isn't maintained anymore, so i have to start over


I'm trying to use LDtk importer and Noble Engine, and my main.lua file is in Source, and toyboxes.lua is in Toyboxes. Both of these folders are subfolders of my game folder. So, I put in

import '../toyboxes/toyboxes.lua'

in my main.lua file and it says that file doesn't exist.

Are you on Mac or Linux? If so, my guess is that you maybe need to use the uppercase "T" of the Toyboxes folder name in the import.

import '../Toyboxes/toyboxes.lua'

(Just a wild guess though, I haven't used toyboxes yet)

Well, I just moved Toyboxes inside of Source and it works now, but everything is blank

I did LDtk.load and stuff and it doesn't crash but its blank D: