Tugduoff / RType

RTypeeeeeeeuh
3 stars 0 forks source link

Sprite component #26

Closed tibaudlemaout closed 1 month ago

tibaudlemaout commented 2 months ago

-Sprite component is created using a single ID, this ID is used to assign a texture path for created sprite -Utilities function such as:

C0Florent commented 2 months ago

So, just to make sure we agree on what this Sprite component will only be used on the client-side ?

The server should only send to the client information about entities like type or category, and it is up to the client to deduce from that what each entity will look like on screen. So the Sprite entity will only be the client internally.

Tugduoff commented 2 months ago

We believe this component will be of no use since a component must be able to transfer its data via network and we cant really transfer a sf::sprite via network. However we need to think of another way to send the sprite data like texture.