I want to code my own topdown 2D game with SFML+C++ that later shall have multiplayer functionality. Therefor I want to seperate the graphical and logical Parts of my game. All of my ingame Objects are thought to have Polygon-Hitboxes as their physical representation. What I now need is a graphical Representationn to draw them onto the Screen... I dont want to use tiles, because I want to have Support for rotated objects to and my Objects Are not evenly distributed so they wouldnt fit a grid.
My Question now is what would be the best way to graphically represent my Objects?
I thought of some ways but am not sure how you would ''normally'' do sth like that :)
Thought 1: As I only need two layers (For now(Floor and Things that you can collide with)) I thought my Floor could consist of tiles and then I draw my other Objects as sf::RectangleShapes or sf::Sprites onto it. (I would mix sprites and a more flexible approach here)
Thought 2: I only take sprites and include the objects that are ontop into each sprite that they should be drawn onto. (I think that it gets too messy and doesnt really ''solve'' my Problem)
Thought 3: I take each Object (Box, Part of the Floor(maybe each brick?)) and create an own textured sf::ConvexPolygon or sf::Rectangle for them. (Idk how big the impact on performance would be there)
PS: My approaches might seem a bit weird because I recently worked much with 3D-Software(eg Blender) and so I think of every Object to be a (2D) Mesh of Polygons that needs to be textured :)
I hope some of you can provide me some clarity on how to solve my Question :)