SFML is a Simple and Fast Multimedia Library. JSFML is the official Java binding to SFML and provides a powerful, yet simple, high-level Java API for OpenGL graphics, OpenAL audio and input.
Questions tagged [jsfml]
9 questions
4
votes
1 answer
jsfml, poolEvents() method
I recently started project in java using the JSFML library. My code fragment looks like this:
Iterable events;
events = mRenderWindow.pollEvents();
mKeyboardListener.handleEvents(events);
mMouseListener.handleEvents(events);
My problem is,…

WarNaX
- 83
- 7
3
votes
2 answers
How to decouple an event-driven module?
A little background may be needed, but skip to Problem if you feel confident. Hopefully the summary gets the point across.
Summary
I have an InputDispatcher which dispatches events (mouse, keyboard, etc...) to a Game object.
I want to scale…

Vince
- 14,470
- 7
- 39
- 84
2
votes
1 answer
Print blocks in sfml
I'm doing a program in java, and I want pass at the new window when I click the button but when I run the program it automatically open me the 2 views also if I don't press the button.What can I do for fix this problem?
Main:
package…

GADO
- 145
- 1
- 6
1
vote
1 answer
Both objects are moving instead of just one in 2d game
I'm making java 2d game library, using JSFML as base.
Lately I found a big problem.
All of my objects in game, are extending abstract class GameObject, that contains stuff like position, velocity, size and name of object.
All loaded objects are…

FilipeeX
- 13
- 2
1
vote
1 answer
Deadlock occurring when using java.nio.file.Paths & jsfml loadFromFile
I've been trying to debug a problem I've had with loading a font from file (a .ttf file) with the java.nio.file.Paths import, using a combination of Paths.get() and loadFromFile(), but can't seem to find a solution.
Here's the problem code:
import…

MoonMan
- 13
- 3
1
vote
1 answer
Linux SFML - Cannot Open Shared Object File
Using Linux Mint 18 Cinnamon 64-Bit
I am having issues trying to get SFML to work. I am trying to compile from the command line with g++.
My file is /home/joe/Desktop/SFML/test/main.cpp
My SFML Folder is at /usr/lib/SFML-2.4.1
If I run g++ -c…

Joe G
- 99
- 1
- 14
0
votes
0 answers
Why aren't my images loading in compiled .jar file?
Explanation:
I'm currently programming game library in java with IntelliJ IDEA Community Edition. I'm using jSFML as a multimedia library.
I tried rendering a sprite, using jsfml's wiki page, and everything seemed to work fine, so I moved…

FilipeeX
- 13
- 2
0
votes
0 answers
How to make my character jump the same height if it's on ground or platform? (JSFML)
this is my code:
public class Jsfml_salto_pltfrm {
public static RenderWindow rw;
public static Texture txtr_bgrnd;
public static Texture txtr_grnd;
public static Texture txtr_muro;
public static Texture txtr_plyr;
public static Sprite…

Nishio
- 3
- 4
0
votes
1 answer
cannot move and rotate two CirclarShape objects together in SFML
I have defined a CircularShape named car having 3 points(displayed as triangle) and Circular shape field which is circular in shape,
I want field to stay at tip of the car and move along with the tip of the car but the problem is when i run the…

saksham jain
- 33
- 6