Questions tagged [sfml]
Simple and Fast Multimedia Library - a free, portable API that provides access to graphics, input, audio, etc.
377 questions
1
vote
1
answer
175
views
How to properly change resolution dynamically in SFML?
I am working on creating an options menu through which I can change resolution and toggle full screen mode. I am allowing only those resolutions that have aspect ratio 16:9, as my game was originally ...
0
votes
0
answers
161
views
My fragment shader is being run on every pixel of the screen
This is my first time using this website and I'm a beginner too, so sorry if what I'm asking doesn't make sense.
I am using C++ and OpenGL to make a basic platformer.
My issue is that the fragment ...
3
votes
1
answer
150
views
How to determine drivers placement in a race with shortcuts and offroading?
Thinking of doing a little Micro Machines clone in SFML/C++.
I know Micro Machines 'ai' was handled by having 2d array positions (or tiles) marked as being 'on-track' or 'off-track and directing the ...
1
vote
0
answers
71
views
Outline Position in pool game
I'm developing a pool game using SFML and Box2D, and I'm currently facing an issue with creating the cue ball outline when the player aims. I have three rays that are cast: two black ones and one ...
0
votes
1
answer
87
views
When does SFML deal with user input
I have an SFML programme using window.setFramerateLimit() to determine the time step of the game.
I have a game loop that looks like this:
...
0
votes
0
answers
44
views
CircleShape crashing program when defined as an instance variable
I am encountering a perplexing issue in my SFML game development where my program crashes instantly during runtime when I add a CircleShape as an instance variable ...
0
votes
1
answer
506
views
Implementing a Fixed Time Step?
This has been bugging me for few days now. I'm trying to stop movement jittering in my game. I've looked towards semi and fixed time steps - moving towards the latter below so I can really understand (...
1
vote
1
answer
119
views
Infinite jump issue
I am currently making a game in c++ using sfml, I encountered a problem where if I jump in my game, the jump mechanic allows the player to jump repeatedly in mid-air which is something I do not want. ...
0
votes
1
answer
202
views
How to develop a game on a 2015 MacBook Pro without learning Metal?
I'm on Mac and OpenGL and Vulcan are not supported. Even worse, I'm on a 2015 MBP 13". Yeah, can't do much with that.
I spent a full year learning C++ and I have no patience to try and learn ...
0
votes
1
answer
77
views
c++ SFML Window in std::thread ignore animation
I have a main window whose loop is just in the program and a Window class in which separate sf::RenderWindow objects are created and the loops for them are in ...
0
votes
1
answer
750
views
Should networking and rendering be separated in multiple threads?
I've been trying to code a multiplayer client/server prototype game using SFML's networking.
My server and client use TcpSelectors to wait for a certain amount of time for incoming packets without ...
0
votes
2
answers
259
views
Is there a logical reason for SFML's Vector2 being templated?
The game development library SFML has a Vector2 class template (and a Vector3 for that matter), which can use any arithmetic ...
1
vote
1
answer
446
views
Creating a Renderer class using SFML
I currently have a Renderer class, which as in the example code, looks like this:
...
0
votes
1
answer
411
views
Swept AABB corners collisions
I'm working on a small SFML engine, and i'm trying to implement continuous collisions. It's working great, but the corners are getting detected as collisions and i can't figure out why. I already ...
1
vote
0
answers
440
views
Raycasting floor/ceiling textures sliding
I'm writing a raycasting engine in C++ and SFML.
I have the wall texturing done and I'm trying to get floor and ceiling texturing right.
I almost got it but the textures are "sliding" when ...