FXGL Game Engine 11.16 Release
- May 25, 2021
- 2787 Unique Views
- < 1 min read
FXGL is a JavaFX game engine: https://github.com/AlmasB/FXGL
Release Highlights
- The restored Multiplayer Service allows easy replications of input, events and entities on a remote machine. For example, by just adding a single line of code (see MultiplayerService API), any key or mouse inputs that occur on one end of the connection can be replicated on the other end.
- The new FPS camera allows easy control of the player (or their "line of sight") in the context of a first-person 3D game.
- There is no longer a transitive dependency on the
javafx.swingmodule. This means FXGL users will not need an extra module in their module graph.
Release Notes
- Restored and refactored MultiplayerService
- Added ReplicationEvent (javafx event that can be replicated on a remote machine)
- FPS camera (
camera3D.setFPSCamera(true)) - Mouse sensitivity setting
- Removed dependency on
javafx.swingmodule, thanks to @FDelporte - Performance improvements in Tiled map loading, thanks to @adambocco
isExperimental3D->3DisExperimentalNative->isNative- Model3D can be loaded from an .obj
- Model3D now has a copy()
- Added Cuboid shape
- EntityGroup::size(), thanks to @adambocco
- Allow providing a custom default cursor for all scenes
- Internal physics refactoring
- Entity no longer throws an exception when adding a duplicate Component (warns instead), thanks to @Zhack47
- JavaFX 15 -> 16
- Compile target for Kotlin: 1.8 -> 11
Video
Don’t Forget to Share This Post!
Comments (2)
Tobiloba
3 years agoI see that you save the point of interest as text in the DB but the response gotten from ChatGPT is JSON. Does this mean you convert the response into string using libraries like gson before saving it in the database?
Denis Magda
3 years agoHey, The response is a String object in the JSON format [1]. The repository takes this JSON string as is and stores to the database [2]. Presently, Spring Data auto-generates the CREATE TABLE statement on the startup and sets the "point of interest" column's type to "text" (or "varchar", don't remember). However, it's always possible to ask Spring Data to use the "json" or "jsonb" type for the column if you wish to query the JSON at the database level. Finally, Vaadin displays a list of PointsOfInterests. Those are generated using the org.json library [3]. Let me know if you have other questions. Hope this helps. [1] https://github.com/YugabyteDB-Samples/budget-journey-gpt/blob/main/src/main/java/com/yugabyte/com/TripsAdvisorService.java#L103 [2] https://github.com/YugabyteDB-Samples/budget-journey-gpt/blob/main/src/main/java/com/yugabyte/com/TripsAdvisorService.java#L74 [3] https://github.com/YugabyteDB-Samples/budget-journey-gpt/blob/main/src/main/java/com/yugabyte/com/TripsAdvisorService.java#L114