almasb / fxglgames Goto Github PK
View Code? Open in Web Editor NEWThis repo contains sample games built with FXGL
Home Page: http://almasb.github.io/FXGLGames/
License: MIT License
This repo contains sample games built with FXGL
Home Page: http://almasb.github.io/FXGLGames/
License: MIT License
As a user of an AZERTY keyboard, it would be nice to add the arrow keys (up, down, left and right) to move the Pacman.
I spotted http://almasb.github.io/FXGLGames/ on reddit, and tried out the first example listed: GeometryWars.
I cloned FXGLGames, changed directory to GeometryWars, executed mvn package
which succeeded, and ran the jar with java -jar
and it failed.
See log output, etc: http://hastebin.com/fuvuholatu.sm
I have downloaded the zip file of FXGLGames some days before, but I found that the IDEA seems not able to resolve the maven dependency such as "com.github.almasb:fxgl:jar:17+dev-SNAPSHOT", is there any recommendation that can help me to run the game example successfully?Thanks so much.
Breakout uses dev-SNAPSHOT:
Line 19 in 750b42c
but there does not seem to be that version in maven central
I just read your JavaMagazin article and wanted to play with some of the examples and checked out the repository.
Personally I'd consider it to be cool if all of the subdirectories would have a defaultGoal set in pom.xml.
Asteroids doesn't seem to run via mvn javafx:run but I had to do a mvn package and start the created JAR with java -jar, while GeometryWars was able to run via javafx:run.
Integrating a defaultGoal is quite easy and would allow anyone to just clone the repo and hit 'mvn' to see the game running.
Thanks for your great work and the cool library!
Classes BulletBossHandler and BulletEnemyHandler have duplicate code. It would be good to fix this.
Hello Almas,
I am just playing with some JavaFX examples using JEP330 launching, as I found for my first experiments, that basically launch(YourAppClass.class, args) works with on-the-fly classloading.
I quickly fetched required modules from maven (ya, manually, very quickly, so game works....) and found that it tries to access EntityType.main(String[]) so I put him here passing of launch and it kinda works, but crashes on mouse input ...
Can you pls quickly think what can be failing and why the Enum main is required for something??
In run.txt there is command to execute the KeyRainApp.jxc file (containing java sources of your app)
There are even 2 log files where it crashed (but I had to put app.main into enum.main !!! why??)
Its just a experiment to allow quick and dirty changes to tiny apps, now also using some referenced/provided modules...
(I am sharing this my BEGINNERS samples approach with gluon too, found it very cool for tiny things - your example was challenging as it required MANY modules and I manually fed here one by one all of them - some kind of dependecy scan and load from maven will be coo )))
But sure - I also CAN use maven finally - its easy and your tiny example is at the edge of usability of JEP330 - that was the goal to try here :-)))
(sorry, gmail complains about security so I replaced modules only by list of them)
UPDATE: Well, it in fact works :))) but the Enum.main is something I couldnt understand, really
Thanks,
Petr
210327-FXGL-Keyrain-JEP330.zip
Steps to reproduce:
click on the links for "code samples",
expected behavior: link to code samples
Actual behavior: error 404
suggestion: change the link from
https://github.com/AlmasB/FXGL/tree/release/samples
to
https://github.com/AlmasB/FXGL/tree/release/fxgl-samples
00:20:25.951 [JavaFX Application Thread] INFO Engine - FXGL-dev-SNAPSHOT (26.05.2021 15.59) on WINDOWS (J:11.0.6 FX:10.0.2-internal)
00:20:25.953 [JavaFX Application Thread] INFO Engine - Source code and latest versions at: https://github.com/AlmasB/FXGL
00:20:25.953 [JavaFX Application Thread] INFO Engine - Join the FXGL chat at: https://gitter.im/AlmasB/FXGL
00:20:28.018 [FXGL Background Thread 1 ] WARN SystemBundleService - Failed to load: java.io.FileNotFoundException: E:\javaGame\FXGLGames-master\Cannon\system\fxgl.bundle (The system can not find the file specified。)
00:20:28.111 [FXGL Background Thread 1 ] INFO FXGLApplication - FXGL initialization took: 1.406 sec
00:20:28.133 [JavaFX Application Thread] FATAL FXGLApplication - Uncaught Exception:
java.lang.NoSuchFieldError: BACK
at com.almasb.fxgl.input.MouseTrigger$Companion$WhenMappings.<clinit>(Unknown Source)
at com.almasb.fxgl.input.MouseTrigger$Companion.buttonToString(Triggers.kt:130)
at com.almasb.fxgl.input.MouseTrigger.<init>(Triggers.kt:143)
at com.almasb.fxgl.input.Input.addAction(Input.kt:433)
at com.almasb.fxgl.input.Input.addAction$default(Input.kt:432)
at com.almasb.fxgl.dsl.FXGL$Companion.onBtnDown(FXGL.kt:409)
at com.almasb.fxgl.dsl.FXGL$Companion.onBtnDown(FXGL.kt:405)
at com.almasb.fxgl.dsl.FXGL.onBtnDown(FXGL.kt)
at com.almasb.fxglgames.cannon.CannonApp.initInput(CannonApp.java:64)
at com.almasb.fxgl.app.FXGLApplication$GameApplicationService.onMainLoopStarting(FXGLApplication.kt:516)
at com.almasb.fxgl.app.Engine.startLoop(Engine.kt:149)
at com.almasb.fxgl.app.FXGLApplication$startImpl$task$2.accept(FXGLApplication.kt:145)
at com.almasb.fxgl.app.FXGLApplication$startImpl$task$2.accept(FXGLApplication.kt:69)
at com.almasb.fxgl.core.concurrent.IOTask.succeed(IOTask.java:164)
at com.almasb.fxgl.core.concurrent.IOTask$1.succeeded(IOTask.java:153)
at javafx.graphics/javafx.concurrent.Task.setState(Task.java:726)
at javafx.graphics/javafx.concurrent.Task$TaskCallable.lambda$call$1(Task.java:1436)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$9(PlatformImpl.java:418)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:417)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:175)
at java.base/java.lang.Thread.run(Thread.java:834)
00:20:28.133 [JavaFX Application Thread] FATAL FXGLApplication - Application will now exit
00:20:33.333 [FXGL Background Thread 2 ] WARN UpdaterService - Failed to find updates: java.net.UnknownHostException: raw.githubusercontent.com
This error is reported when I need mouse input
My jdk is 11.0.6
Hi:
Openjdk 16 is released
and it supports ZGC which could make gc pause lower than 1ms
so is it possible to enable ZGC by default?
<options>
<option>-XX:+UseZGC</option>
</optoins>
thx
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.4</version>
<configuration>
<stripDebug>true</stripDebug>
<compress>2</compress>
<noHeaderFiles>true</noHeaderFiles>
<noManPages>true</noManPages>
<release>${source.version}</release>
<jlinkImageName>FlappyBird</jlinkImageName>
<launcher>FlappyBird</launcher>
<mainClass>FlappyBird/com.almasb.fxglgames.flappy.FlappyBirdApp</mainClass>
</configuration>
</plugin>
I used jlink to generate executable binary , but when I execute command ,it reported the error:
Failed to load texture bird.png Error: java.lang.IllegalArgumentException: Asset "/assets/textures/bird.png" was not found!
How to generate the correct executable binary on Windows?
I want to get an .exe file finally.
Message: /home/rene/.openjfx/cache/fxgl-11/libSDL2.so: libsndio.so.6.1: cannot open shared object file: No such file or directory
Type: UnsatisfiedLinkError
Line: Native Method
java.lang.UnsatisfiedLinkError: /home/$user/.openjfx/cache/fxgl-11/libSDL2.so: libsndio.so.6.1: cannot open shared object file: No such file or directory
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:383)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:227)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:169)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2407)
at java.base/java.lang.Runtime.load0(Runtime.java:747)
at java.base/java.lang.System.load(System.java:1857)
at com.almasb.fxgl.controllerinput.ControllerInputService.onInit(ControllerInputService.kt:81)
at com.almasb.fxgl.app.Engine.initServices(Engine.kt:84)
at com.almasb.fxgl.app.FXGLApplication$start$task$1.run(FXGLApplication.kt:120)
at com.almasb.fxgl.core.concurrent.IOTask.lambda$ofVoid$5(IOTask.java:138)
at com.almasb.fxgl.core.concurrent.IOTask$2.onExecute(IOTask.java:151)
at com.almasb.fxgl.core.concurrent.IOTask$1.call(IOTask.java:107)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)
Not much to add ... this happens on Fedora 33.
ldd /home/$user/.openjfx/cache/fxgl-11/libSDL2.so
ldd: warning: you do not have execution permission for `/home/$user/.openjfx/cache/fxgl-11/libSDL2.so'
linux-vdso.so.1 (0x00007ffd163cb000)
libasound.so.2 => /lib64/libasound.so.2 (0x00007f59c6709000)
libm.so.6 => /lib64/libm.so.6 (0x00007f59c65c3000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f59c65bc000)
libpulse.so.0 => /lib64/libpulse.so.0 (0x00007f59c6566000)
libsndio.so.6.1 => not found
libX11.so.6 => /lib64/libX11.so.6 (0x00007f59c641f000)
libXext.so.6 => /lib64/libXext.so.6 (0x00007f59c6408000)
libXcursor.so.1 => /lib64/libXcursor.so.1 (0x00007f59c63fb000)
libXinerama.so.1 => /lib64/libXinerama.so.1 (0x00007f59c63f6000)
libXi.so.6 => /lib64/libXi.so.6 (0x00007f59c63e4000)
libXrandr.so.2 => /lib64/libXrandr.so.2 (0x00007f59c63d7000)
libXss.so.1 => /lib64/libXss.so.1 (0x00007f59c63d2000)
libXxf86vm.so.1 => /lib64/libXxf86vm.so.1 (0x00007f59c63c9000)
libwayland-egl.so.1 => /lib64/libwayland-egl.so.1 (0x00007f59c63c4000)
libwayland-client.so.0 => /lib64/libwayland-client.so.0 (0x00007f59c63b4000)
libwayland-cursor.so.0 => /lib64/libwayland-cursor.so.0 (0x00007f59c63aa000)
libxkbcommon.so.0 => /lib64/libxkbcommon.so.0 (0x00007f59c6365000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f59c6343000)
librt.so.1 => /lib64/librt.so.1 (0x00007f59c6336000)
libc.so.6 => /lib64/libc.so.6 (0x00007f59c616b000)
/lib64/ld-linux-x86-64.so.2 (0x00007f59c6b2f000)
libpulsecommon-14.0.so => /usr/lib64/pulseaudio/libpulsecommon-14.0.so (0x00007f59c60e3000)
libX11-xcb.so.1 => /lib64/libX11-xcb.so.1 (0x00007f59c60de000)
libxcb.so.1 => /lib64/libxcb.so.1 (0x00007f59c60b4000)
libICE.so.6 => /lib64/libICE.so.6 (0x00007f59c6097000)
libSM.so.6 => /lib64/libSM.so.6 (0x00007f59c608a000)
libXtst.so.6 => /lib64/libXtst.so.6 (0x00007f59c6081000)
libsystemd.so.0 => /lib64/libsystemd.so.0 (0x00007f59c5fc1000)
libsndfile.so.1 => /lib64/libsndfile.so.1 (0x00007f59c5f4f000)
libasyncns.so.0 => /lib64/libasyncns.so.0 (0x00007f59c5f47000)
libdbus-1.so.3 => /lib64/libdbus-1.so.3 (0x00007f59c5ef6000)
libcap.so.2 => /lib64/libcap.so.2 (0x00007f59c5eed000)
libXrender.so.1 => /lib64/libXrender.so.1 (0x00007f59c5ee0000)
libXfixes.so.3 => /lib64/libXfixes.so.3 (0x00007f59c5ed7000)
libffi.so.6 => /lib64/libffi.so.6 (0x00007f59c5ecc000)
libXau.so.6 => /lib64/libXau.so.6 (0x00007f59c5ec7000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f59c5ebc000)
liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f59c5e90000)
libzstd.so.1 => /lib64/libzstd.so.1 (0x00007f59c5dbb000)
liblz4.so.1 => /lib64/liblz4.so.1 (0x00007f59c5d9d000)
libgcrypt.so.20 => /lib64/libgcrypt.so.20 (0x00007f59c5c78000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f59c5c5d000)
libgsm.so.1 => /lib64/libgsm.so.1 (0x00007f59c5c4c000)
libFLAC.so.8 => /lib64/libFLAC.so.8 (0x00007f59c5bf1000)
libogg.so.0 => /lib64/libogg.so.0 (0x00007f59c5be6000)
libvorbis.so.0 => /lib64/libvorbis.so.0 (0x00007f59c5bb7000)
libvorbisenc.so.2 => /lib64/libvorbisenc.so.2 (0x00007f59c5b0c000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f59c5af2000)
libgpg-error.so.0 => /lib64/libgpg-error.so.0 (0x00007f59c5acb000)
running mvn javafx:run
results in:
Error: Could not find or load main class com.almasb.fxglgames.keyrain.KeyRainApp
Caused by: java.lang.ClassNotFoundException: com.almasb.fxglgames.keyrain.KeyRainApp
[ERROR] Command execution failed.
Caused by:
<mainClassName>com.almasb.fxglgames.keyrain.KeyRainApp</mainClassName>
but package for KeyRainApp is keyrain
Hi:
Apple is deprecating OpenGL pipeline on MacOSX
so the demo projects have to upgrade its FXGL version which could provide new pipeline support(Metal instead of OpenGL)
the version should be from 11 -> 17.x(17.3 is recommended)
11 is not longer supported on new MacOSX versions
If we run the application by using FXGL 11 on MacOSX 13.4.1 it will throw exceptions indicating that:
Graphics Device initialization failed for : es2, sw
Error initializing QuantumRenderer: no suitable pipeline found
8月 26, 2023 1:54:04 PM com.sun.javafx.application.PlatformImpl startup
Warning: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @2da90a2f'
Loading library prism_es2 from resource failed: java.lang.UnsatisfiedLinkError: /Users/chengenzhao/.openjfx/cache/16/libprism_es2.dylib: dlopen(/Users/chengenzhao/.openjfx/cache/16/libprism_es2.dylib, 0x0001): tried: '/Users/chengenzhao/.openjfx/cache/16/libprism_es2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/chengenzhao/.openjfx/cache/16/libprism_es2.dylib' (no such file), '/Users/chengenzhao/.openjfx/cache/16/libprism_es2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
java.lang.UnsatisfiedLinkError: /Users/chengenzhao/.openjfx/cache/16/libprism_es2.dylib: dlopen(/Users/chengenzhao/.openjfx/cache/16/libprism_es2.dylib, 0x0001): tried: '/Users/chengenzhao/.openjfx/cache/16/libprism_es2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/chengenzhao/.openjfx/cache/16/libprism_es2.dylib' (no such file), '/Users/chengenzhao/.openjfx/cache/16/libprism_es2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2404)
at java.base/java.lang.Runtime.load0(Runtime.java:817)
at java.base/java.lang.System.load(System.java:2015)
at com.sun.glass.utils.NativeLibLoader.installLibraryFromResource(NativeLibLoader.java:214)
at com.sun.glass.utils.NativeLibLoader.loadLibraryFromResource(NativeLibLoader.java:194)
at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:135)
at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:53)
at com.sun.prism.es2.ES2Pipeline.lambda$static$0(ES2Pipeline.java:69)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
at com.sun.prism.es2.ES2Pipeline.<clinit>(ES2Pipeline.java:51)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:391)
at java.base/java.lang.Class.forName(Class.java:382)
at com.sun.prism.GraphicsPipeline.createPipeline(GraphicsPipeline.java:218)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:91)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124)
at java.base/java.lang.Thread.run(Thread.java:1623)
Loading library prism_sw from resource failed: java.lang.UnsatisfiedLinkError: /Users/chengenzhao/.openjfx/cache/16/libprism_sw.dylib: dlopen(/Users/chengenzhao/.openjfx/cache/16/libprism_sw.dylib, 0x0001): tried: '/Users/chengenzhao/.openjfx/cache/16/libprism_sw.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/chengenzhao/.openjfx/cache/16/libprism_sw.dylib' (no such file), '/Users/chengenzhao/.openjfx/cache/16/libprism_sw.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
java.lang.UnsatisfiedLinkError: /Users/chengenzhao/.openjfx/cache/16/libprism_sw.dylib: dlopen(/Users/chengenzhao/.openjfx/cache/16/libprism_sw.dylib, 0x0001): tried: '/Users/chengenzhao/.openjfx/cache/16/libprism_sw.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/chengenzhao/.openjfx/cache/16/libprism_sw.dylib' (no such file), '/Users/chengenzhao/.openjfx/cache/16/libprism_sw.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2404)
at java.base/java.lang.Runtime.load0(Runtime.java:817)
at java.base/java.lang.System.load(System.java:2015)
at com.sun.glass.utils.NativeLibLoader.installLibraryFromResource(NativeLibLoader.java:214)
at com.sun.glass.utils.NativeLibLoader.loadLibraryFromResource(NativeLibLoader.java:194)
at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:135)
at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:53)
at com.sun.prism.sw.SWPipeline.lambda$static$0(SWPipeline.java:42)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
at com.sun.prism.sw.SWPipeline.<clinit>(SWPipeline.java:41)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:391)
at java.base/java.lang.Class.forName(Class.java:382)
at com.sun.prism.GraphicsPipeline.createPipeline(GraphicsPipeline.java:218)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:91)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124)
at java.base/java.lang.Thread.run(Thread.java:1623)
Graphics Device initialization failed for : es2, sw
Error initializing QuantumRenderer: no suitable pipeline found
java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
at com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280)
at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:244)
at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:261)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:286)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:160)
at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658)
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:94)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124)
... 1 more
java.lang.RuntimeException: No toolkit found
at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:273)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:286)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:160)
at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658)
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
at java.base/java.lang.Thread.run(Thread.java:1623)
Error during launch:
Application will now exit
Process finished with exit code 255
I bought your book, "Learn JavaFX and App Development", I had just finished the third chapter and copied the pong game down onto my computer. When I ran it it didn't work. The enemy paddle and the player paddle both spawned at 0, 0. I'm not sure why this happened. I double checked the code and rewrote all of it, same issue.
Hi there.
Is there a website for this repo?
Because if you don't have, well, this repo can simply be turned into a website right away. Others will discover this project in that website.
Steps:
Go to Settings and look for GitHub Pages
, scroll down. That's almost at the bottom.
You will see there: Branch:none
, so you should change that to master
because you have a README.md
file in the master repo. This will be your page. Click Save
first.
Then click Theme
, you select a predefined theme of your site.
Visit your site now! The URL will be https://AlmasB.github.io/FXGLGames
.
If you were amazed by that, simply read the documentation about GitHub Pages.
Hi:
We have successfully run the game
but it seems like there is a problem
when we exit the game
then the cursor image will become a mess
any idea why it happened?
as you can see the messed image is on the screen there
macos 11.2.3 big sur intel cpu
game: space war/ geometry war
I tried openjdk 16 and graal 21.0, both have the same problem
In the Bomberman part, I think it will be more interesting to generate random walls, so I tried to add the code for randomly modifying 0.txt in BombermanApp.
BombermanApp.md
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.