Okay, so I'm working on my Entity class and can't really figure out what else I need. Also I'm not quite sure how to actually make a class that uses this to create menu buttons.
This is my entity class:
1 2 3 4 5 6 7
| public abstract class Entity { private BufferedImage sprite; private Rectangle bounds; public abstract void update(); public abstract void render(); } |
I kind of want something like:
1
| Entity button = new MenuButton("settings", posx, posy); |
So that I can store all the entities in a list of some sort.
But I'm not quite sure of how to turn that into a buffered image of the right size. Also I probably need a reference to the canvas so that the button can render itself?