Questions tagged [sfml]
SFML (Simple Fast Media Library) is a portable and easy to use multimedia API written in C++. You can see it as a modern, object-oriented alternative to SDL. SFML is composed of several packages to perfectly suit your needs. You can use SFML as a minimal windowing system to interface with OpenGL, or as a fully-featured multimedia library for building games or interactive programs.
110 questions
2
votes
1
answer
122
views
A Tic-Tac-Toe prototype written in SFML and C++
I'm a beginner in C++, and I tried to implement some basic skeleton for a game of Tic-Tac-Toe using SFML 3.0.0.
The thing is, it contains some main logic:
Place figures (...
6
votes
1
answer
294
views
Julias Set fractal timelapse
I've implemented a fractal renderer with a physics-based animation system that creates a never-ending "timelapse" effect, here is an example video.
The function uses pseudo-physics to move ...
6
votes
0
answers
165
views
FractalRendering on GPU with CUDA
I am doing a fractal renderer using CUDA, SFML, C++, recently optimized it to eat less memory, now I am going to optimize the actual fractals, because for some reason, it is the most holding back ...
2
votes
0
answers
89
views
Gradient in C++/SFML
As an exercise, I've decided to try my hand at gradients using SFML. To truly make this a learning experience, I didn't look at any resources or papers that described an algorithm for doing so; I ...
2
votes
1
answer
139
views
Basic foundation for a physics engine using SFML and Dear ImGui
I want to create a very basic physics engine in SFML. I also want to be able to control objects using Dear ImGui. So I created this basic foundation. My main problem with it is how I handle rendering ...
4
votes
1
answer
203
views
An implementation of Conway's Game of Life using C++ and SFML
I recently started learning C++ again, and I wrote a simple version of Conway's Game of Life. This version doesn't use 2 buffers to transfer changes over to the main view. Instead, it uses a stack of ...
7
votes
1
answer
729
views
John Conway's Game of Life in C++
I have created Game of Life in C++ SFML. The code works just fine. However since I am not used to working with C++, I implemented a lot of stuff the way I would in python (for example I have not used ...
3
votes
2
answers
855
views
"Asteroids" style arcade game
My Game class does not satisfy me. I use some cheat-code to delete bonuses from their list, I think this is not a better way to do it.
Any other requests will be greatly appreciated.
Latest version is ...
2
votes
1
answer
976
views
Minesweeper using SFML with C++
Hi, I am making a Minesweeper game using SFML 2.0.
I am just a beginner in C++ and started using the framework for 2 weeks now, so it is safe to say I may have made lots of mistake especially when it ...
5
votes
2
answers
2k
views
Simple virtual piano
The application is a virtual piano with only one octave for simplicity.
What can I improve with this code?
...
3
votes
1
answer
645
views
A Flappy bird game using C++ and SFML
I have written a Flappy Bird using SFML and C++, kindly review my code. I'm hoping for objective criticism.
main.cpp
...
2
votes
1
answer
275
views
Reimplementation of Diep.io in C++ with SFML and Box2D
Here's my attempt at reimplementing part of https://diep.io/, a 2D game where tanks battle with each other. The tanks are circular and they have cannons which fire bullets. The bullets can hit other ...
1
vote
1
answer
107
views
game interface setup
I've learned that magic numbers are bad in code. However, should the coordinates, and rotation angles of all the sprites be stored in variables? Is the convention in game development to leave those ...
2
votes
1
answer
253
views
C++ Connect 4 in SFML
After a substantial amount of programming experience in high level languages like Javascript and Python, I decided to try learning a low level language for once, so I did C++. As my first project I ...
2
votes
1
answer
507
views
Chess game setup: Initial board state
This app only creates a chess board set to the start-of-game state. It does nothing else. I'd appreciate feedback on the files that are relevant to this board setup (all shown below: board.cpp, pieces....