almasb / fxgl-mavengradle Goto Github PK
View Code? Open in Web Editor NEWA template project for FXGL games using Maven and Gradle.
License: MIT License
A template project for FXGL games using Maven and Gradle.
License: MIT License
Maven version (pom.xml) is still targeting version 11, unlike gradle version.
Following errors are thrown:
1:40:18.313 [JavaFX Application Thread] INFO Engine - FXGL-11.12 (11.12.2020 08.51) on WINDOWS (J:15.0.1 FX:15)
11:40:18.314 [JavaFX Application Thread] INFO Engine - Source code and latest versions at: https://github.com/AlmasB/FXGL
11:40:18.314 [JavaFX Application Thread] INFO Engine - Join the FXGL chat at: https://gitter.im/AlmasB/FXGL
11:40:18.613 [FXGL Background Thread 1 ] WARN FXGL.DefaultMenu - FXGLDefaultMenu is not designed for resolutions < 800x600
11:40:18.685 [FXGL Background Thread 1 ] INFO FXGLApplication - FXGL initialization took: 0,224 sec
11:40:18.716 [FXGL Background Thread 1 ] WARN FXGLAssetLoaderServi - Failed to load texture bucket.png Error: java.lang.IllegalArgumentException: Asset "/assets/textures/bucket.png" was not found!
11:40:18.732 [FXGL Background Thread 1 ] WARN FXGLAssetLoaderServi - Failed to load music bgm.mp3 Error: java.lang.IllegalArgumentException: Asset "/assets/music/bgm.mp3" was not found!
11:40:18.735 [FXGL Background Thread 1 ] INFO FXGLApplication - Game initialization took: 0,019 sec
11:40:19.212 [FXGL Background Thread 2 ] INFO UpdaterService - Your current version: 11.12
11:40:19.212 [FXGL Background Thread 2 ] INFO UpdaterService - Latest stable version: 11.11
11:40:19.692 [JavaFX Application Thread] WARN FXGLAssetLoaderServi - Failed to load texture droplet.png Error: java.lang.IllegalArgumentException: Asset "/assets/textures/droplet.png" was not found!
11:40:20.705 [JavaFX Application Thread] WARN FXGLAssetLoaderServi - Failed to load texture droplet.png Error: java.lang.IllegalArgumentException: Asset "/assets/textures/droplet.png" was not found!
11:40:21.730 [JavaFX Application Thread] WARN FXGLAssetLoaderServi - Failed to load texture droplet.png Error: java.lang.IllegalArgumentException: Asset "/assets/textures/droplet.png" was not found!
Game runs, but uses a placeholder texture. Found similar problems with templates while searching online, but some of the solutions I either don't understand or do not work for me, sadly.
When you pull the fresh template and try to start it java throws an error. To fix the javaFX plugin version inside build.gradle has to be changed to 0.0.9
Hi @AlmasB i just made a clone of this template project and it works.
But i get an java.lang.IllegalArgumentException for the resources:
14:38:05.347 [FXGL Background Thread 1 ] WARN FXGLAssetLoaderServi - Failed to load texture bucket.png Error: java.lang.IllegalArgumentException: Asset "/assets/textures/bucket.png" was not found! 14:38:05.471 [FXGL Background Thread 1 ] WARN FXGLAssetLoaderServi - Failed to load music bgm.mp3 Error: java.lang.IllegalArgumentException: Asset "/assets/music/bgm.mp3" was not found! 14:38:05.473 [FXGL Background Thread 1 ] INFO FXGLApplication - Game initialization took: 0,131 sec 14:38:05.935 [FXGL Background Thread 2 ] INFO UpdaterService - Your current version: 11.12 14:38:05.936 [FXGL Background Thread 2 ] INFO UpdaterService - Latest stable version: 11.13 14:38:06.490 [JavaFX Application Thread] WARN FXGLAssetLoaderServi - Failed to load texture droplet.png Error: java.lang.IllegalArgumentException: Asset "/assets/textures/droplet.png" was not found!
Is there anything that i missed?
Cheers
Hi @AlmasB,
you can provide this project as a github template project where other users can then create custom project from it. Here is a link how to do it
Cheers
@astrapi69
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.