GameEngineDesign-S24 / AstraEngine

0 stars 9 forks source link

Feature Request: Making Sprites 2D #5

Open CSharpCodeNinja opened 1 month ago

jcollard commented 1 month ago

This would be an awesome feature to have. There are several ways that you might approach this. I would start by thinking about how you would use such a component. For example, one way might be:

Entity player = new();
player.AttachComponent(new Position() { X = 50, Y = 50 });
player.AttachComponent(new Sprite2D() { Filename = "imgs/character.png", Width=60, Height=60 });

Would this meet your needs? If so, try implementing it. If not, what would your example have?