expl0r3rgu1 / floppy-floppa

A flappy-bird remake but with floppa. Why floppy and not flappy? Because the floppa flops.
GNU General Public License v3.0
11 stars 4 forks source link

Wrong ActionListener usage #45

Closed expl0r3rgu1 closed 2 years ago

expl0r3rgu1 commented 2 years ago

The implementation is supposed to be similar to https://github.com/expl0r3rgu1/floppy-floppa/blob/dev/src/main/infinite_map/TimedObstacleGenerator.java and https://github.com/expl0r3rgu1/floppy-floppa/blob/dev/src/main/infinite_map/TimedFixedObstacleGenerator.java

The only difference should be that it will be completely implemented in the Character class.

criicchio commented 2 years ago

Do I only need to change the implementation of the ActionListener or is there also a problem in the code inside of it?

expl0r3rgu1 commented 2 years ago

Do I only need to change the implementation of the ActionListener or is there also a problem in the code inside of it?

The code of the Action listener is okay. The repaint method is not working correctly because of the way the Action listener has been instantiated.