Hello,
I've been reading over this book, which I think the source code is actually on the SFML Github so that makes me think someone here made it. For those who have read it, I was wondering how someone might implement a tile system using the same engine the book walks you through. Preferably, it would be nice to see source code with the same engine customized with tiles and not overly done with other features (kept basic). I've read all the SFML books, but this is the only one that actually goes into implementing gameplay more complex and going past just the engine (forgot about the side scroller By Example does). So I've decided to read this again with more attention. One of my major problems is learning how to take, say, take this example, and expand on it my own way (or RPG genre from Airplane scroller). SFML Game Development By Example is one of my favorite books, but trying to add on to it is a bit complex still, which is why I came back to this book which implements a nice little engine and shows how to do gameplay content in a more straightforward way.
I figured I could make a tile system using the SceneNode. But I'm not exactly sure if that's a good way to do it. I'm not sure if it would involve changing too much. When I read Procedural Generation Content for C++, it had a Tile struct (which I'd consider a node because of the parent pointer) and allowed you to do pathfinding easy. Which is something I really don't want to make difficult, because I've had trouble implementing pathfinding outside of the way they show it.
I made a hardcoded example and I got tiles to appear instead of the desert scrolling background. But I want to implement this in a class that would be the most efficient way. The reason I'm hesitant is because of how the SceneNode interacts with the airplanes in a tree-like behavior. It's not exactly the same way I have learned to do tiles (from books and myself). For clarity, I would be changing the whole genre of the book.
I don't want to continue to ramble on, but any help would be appreciated (especially, with examples). I hope this makes sense.
Thank you! Be safe and have a nice day.
tldr; Using SFML Game Development, by Artur Moreira how can I implement a tile system efficiently and if anyone has examples using the concepts from this book I'd greatly appreciate it.
NOTE: I'm not talking about SFML Game Development By Example! Although, it is my favorite book!
EDIT: I did see a thread similar to this one here, but it didn't provide me with any help.