Hi, this may seem a noobish and stupid question but I prefer to ask. Yesterday, I was watching this video: https://www.youtube.com/watch?v=VmChebZcb2U&t=146s. I was curious about the workflow of developing that kind of games (since I don't know much about programming and less of programming games). The thing is, if netbeans have the javafx editor tool... Why the guy in the video is not using it? I mean, the editor lets you create the GUI, why not starting a JavaFx project and let it do it's thing?
The only reason I can think for writing yourself the 'graphic elements' of your program is when they need to be dinamically generated upon an action. Let's say: enemies that suddenly appear, effects over other objects... etc
I have the feeling that I'm getting this wrong, could someone explain to me when to code and when to use just the editor?
When you say the editor, do you mean Scene Builder? Scene Builder is just a tool to help you create FXML files. If you wanted (and some people do this) you could right the FXML file in a text editor.
But I think what you're getting at is whether to use FXML in a situation that is going to be very dynamic. Once you load the FXML file, you have a pane that can be manipulated programmatically. Or you could have several FXML files to create a background, a fighter, a monster, etc.
So basically, it's a matter of taste. (And since I've never written a game in JavaFX, It may be easier one way than the other.)
All things are lawful, but not all things are profitable.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop