Skip to main content

Questions tagged [javafx]

The JavaFX platform enables developers to create and deploy Rich Internet Applications (RIA) that behave consistently across multiple platforms and browsers. JavaFX 1.3 and older, were scripting languages, whereas JavaFX 2.x+/8.x enables users to use Java. FXML enables JavaFX to follow MVC architecture.

0 votes
0 answers
60 views

I wrote a Board.java class which draws the initial board draws the Reset button draws the label to indicate whose turn is it In the Main class: I initialized a Pane. Initialized the Board's board ...
zeeshanseikh's user avatar
1 vote
0 answers
91 views

so lately i've been learning about abstract classes and interfaces, and i saw a neat yt video about falling sand games (think Noita) so i wanted to take a crack at it as some particles share a ...
Potat.OS1's user avatar
0 votes
1 answer
1k views

I'm trying to create a sort of "graphing calculator coordinate system" where you can zoom into a point by scrolling with the mouse wheel. I'm using javafx's transformation matrices (Affines) ...
user156844's user avatar
0 votes
1 answer
1k views

I am trying to make an ImageView change its position based on the direction it is facing. ...
qwerty's user avatar
  • 101
1 vote
1 answer
804 views

I have written a version of Castle that so far plays through the terminal. I have recently refactored my code (which can be found here) to use the MVC design pattern. After I have added a GUI I will ...
theJavaGuy's user avatar
1 vote
0 answers
686 views

This is the first game I have developed. Please correct me if I'm mistaken. I want to build an online 2-player turn based card game (Shithead). I want to code it in Java as that is what I have most ...
theJavaGuy's user avatar
0 votes
1 answer
2k views

I am making snake in javafx, I have completed my game, and I am trying to add a reset button in my game. When I click the reset key (ENTER), the game should reset, but the arraylist that stores the ...
PaulBlart's user avatar
3 votes
1 answer
920 views

I'm developing the simple Tic Tac Toe game in Java and got stuck on the game loop architecture. The game must support local, remote and automatic players. The graphical interface is based on JavaFX. ...
Sebastiano Verdolini's user avatar
2 votes
0 answers
76 views

So im trying to add lighting into my game. I'm using shape subtracting and unions to subtract circles (the lights) from a dark rectangle that covers the whole world. I think that its a problem with ...
Superhuman's user avatar
1 vote
1 answer
462 views

I'm making a 2D roguelike tile-based game with Java and JavaFX. I'm currently working on adding lighting and darkness to the dungeon, but whenever I try running it, it takes a very long time to load, ...
Superhuman's user avatar
0 votes
0 answers
124 views

Currently, I am working on my very first bigger project in Java. It is a simple checkers game, which is based on GridPane. For now, everything is more than fine, ...
Fishy_Code's user avatar
1 vote
1 answer
254 views

What is the proper way of handling synchronization between GUI animations' execution order and the user's dynamic input? More specifically, I would like to know how to enforce some logical ...
Julian Broudy's user avatar
0 votes
1 answer
529 views

I am currently trying to make a snake game with Java FX, I read several posts about it and I understand on theory how to move the snake body (for each part of the snake reference the previous one and ...
Mat Ertonn's user avatar
0 votes
1 answer
652 views

After looking at some code sources out there I noticed Java Swing Games usually create a class implementing Runnable, create a new Thread and set up the game loop ...
Jean Henry's user avatar
0 votes
2 answers
4k views

I tried searching online on how to implement health bar with Java FX in a 2D side-view Java fighting game but I can only find those that goes with 'awt' and 'Swing'. The health bar I'm picturing are ...
WCKennedays's user avatar

15 30 50 per page