This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques and have Mario Casciaro & Luciano Mammino on-line!
See this thread for details.
Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

About graphic elements and GUI

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

Thanks in advance, sorry if it seems obvious,.
 
Sheriff
Posts: 7111
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.)
 
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
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic