Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frankkopp/jarkanoid
A Java/JavaFX based Arkanoid version
https://github.com/frankkopp/jarkanoid
Last synced: 6 days ago
JSON representation
A Java/JavaFX based Arkanoid version
- Host: GitHub
- URL: https://github.com/frankkopp/jarkanoid
- Owner: frankkopp
- License: mit
- Created: 2018-01-02T15:16:29.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T22:38:16.000Z (about 1 year ago)
- Last Synced: 2024-10-30T05:34:46.192Z (about 2 months ago)
- Language: Java
- Homepage:
- Size: 118 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jarkanoid
A Java/JavaFX based Arkanoid version## Motivation and thoughts
I really like JavaFX - it's fun. Using Timelines, Animations, Property Binding and FXML makes it easy to build any kind of grafical user interface, even for games.I tried to stick to the JavaFX flavor of the MVC pattern (powerful FMXL injected Controller which knows Model AND View) for this.
After being nearly feaure complete I'm not as convinced as before anymore that MVC is a good pattern for JavaFX for games with grafical "shapes". It would be much easier to use the JavaFX Shapes and their properties directly instead of replicating them in a model, e.g. JavaFX shapes have intersect() method which is quite convienient for collission detection.
The better pattern would propably be a classical GameLoop pattern (GameLoop -> (processEvents, updateWorld, renderFrame). Although I do also have a game loop pattern in place it updates only model objects. The model then uses property bindung and the Observer pattern to update the view.
The GameLoop pattern would also have made the code easier to understand and would probalby have avoided many lines of code compared to the MVC pattern.