I would like to make a 2D game engine which is heavily focused on vectors. I would also like use a transformation matrix to translate, rotate and scale sprites that I would like to load in somehow.
I'm trying to do this without an external library in case anyone was wondering.
Does anyone know if I'm even remotely in the right direction with this? Applying a transform to an images coordinates? And what data to I input and output from my matrix exactly? I understand what the matrices are, but my experience with this is limited and I don't really know the next step.
It's all a bit abstract at the minute, and I wish I could explain it better.
All my source code: mainComponent, vector2f, matrix3f and transform.
Outline of what is in the classes so far: mainComponent is fairly obvious, just Main() at the minute. Vector2f has basic math, getters and setters for 2D vectors(float). Matrix3f has an initialization of translation, rotation and scale matrices and a multiply method. And I have no idea what Transform is really doing, all I know is that in there, my matrices get set, take their inputs and multiply together. Dont really know what to do to attach it to something on a screen, although I can make a basic BufferedImage pixel array thing that might be what I want.
The next problem is loading in sprites :/