Object Creation Help
I'm a first year computer science student and I created a maze out of about 200-300 different rectangles and need to make the maze one object altogether. I know how to make an object that is one rectangle and if I did that, I would be creating 200-300 objects. Is there a way to make my irregularly shaped maze one object? I need this to implement collision detection with the walls of the maze.
Re: Object Creation Help
Create a Maze class and extend it from JComponent. Than override paintComponent(Graphics) method and paint it using Graphics passed as an argument.