Questions tagged [fxgl]

FXGL is a game development library based on JavaFX.

The FXGL library, seen here, is a modular game development library based on JavaFX.

9 questions
2
votes
1 answer

Is there a way to launch FXGL with SpringBoot?

I need to launch application with fxgl animations with springboot to utilize it's functionality. I dont really know how to do it. I tried putting initialization into different init() methods of the inheritor of the GameApplication. I tried it like…
Foma Fom
  • 33
  • 4
1
vote
1 answer

Could Not Load Textures From Assets In FXGL

I want to make a 2D game for a project that belongs to my university. So I decided to use JavaFX and FXGL library. I got a test basic project from FXGL Git repository and tried to run it. When I run this project FXGL warns that it could not load…
Amir Victor
  • 181
  • 1
  • 7
1
vote
1 answer

Testing a FXGL game

I'm programming a simple game in Java FXGL. I'm very new to Java FX and FXGL. I'd like to test my game with JUnit5, but I can't get it to work... The problem: When I launch my tests, the FXGL properties aren't initialized yet. I would be very happy…
testgoofy
  • 33
  • 4
0
votes
0 answers

Having trouble creating an unbound game using FXGL

I am trying to recreate a game like Splix.io using FXGL, I have implemented the logic of the game for one player and it works. And for my game window I am using a 800*800 window. My problem is my game should be "unbounded" which means that the…
0
votes
1 answer

directory structure for fxgl app (specifically .tmx files)

I've been following an older tutorial for fxgl that uses the tiled software to create maps (https://www.youtube.com/watch?v=37wfF9GW1vQ&t=9s). I've looked online for anything about what the directory structure should look like, but every time I try…
0
votes
1 answer

No EntityFactory has a method annotated @Spawns()

I have trouble with testing the TMX feature. I wanted to load a simple TMX file into my sample FXGL App (JavaFX Game Library). Any ideas? Error: 10:52:31.888 [FXGL Background Thread 4 ] WARN TMXLevelLoader - TiledMap generated from 1.7.2.…
Arquillian
  • 125
  • 2
  • 16
0
votes
0 answers

How do I create a triangle with Java FXGL

Hey so im new to FXGL and I followed some tutorials to create a small game. They have created rectangles and circles like this: @Spawns("player") public Entity newPlayer(SpawnData data) { var body = new Circle(25, Color.LIGHTBLUE); …
slaxeea
  • 1
  • 1
  • 2
0
votes
0 answers

Inconsistent size of application screen

The problem is that my application size is not consistent. Sometimes application size is same as I defined in my code, but most of the time it's just a small piece on my screen. I'm using kubuntu and Intelij. I think that maybe It's a problem with…
Jules
  • 85
  • 1
  • 12
0
votes
0 answers

fxgl over 11.3 and missing gluon

I try to use fxgl engine with java 11. With release 11.4 and over dependencies { compile 'com.github.almasb:fxgl:11.4' } I get this error Could not find com.gluonhq.attach:storage:4.0.2
robert trudel
  • 5,283
  • 17
  • 72
  • 124