Skip to main content

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.

1 vote
0 answers
18 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 ...
Linny's user avatar
  • 10.3k
2 votes
1 answer
112 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 ...
passsterf's user avatar
4 votes
1 answer
179 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 ...
imapyromain's user avatar
7 votes
1 answer
687 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 ...
Doruk's user avatar
  • 293
3 votes
2 answers
806 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 ...
Paul Nick's user avatar
2 votes
1 answer
897 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 ...
Allen's user avatar
  • 23
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? ...
Isaí's user avatar
  • 51
3 votes
1 answer
595 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 ...
Lir's user avatar
  • 33
2 votes
1 answer
233 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 ...
eesiraed's user avatar
  • 123
1 vote
1 answer
88 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 ...
Đạt Phạm's user avatar
2 votes
1 answer
221 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 ...
Kotetsu Chan's user avatar
2 votes
1 answer
486 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....
tarstevs's user avatar
3 votes
2 answers
151 views

Game of life with options like windows and board size

Mainly I am looking for a better way to control the user input in the game loop which is in the first file. Since the nested switch with many ...
yolo expectz's user avatar
10 votes
1 answer
922 views

High performance physics simulation - core class design

Below is some stripped down code from a physics simulation. The classes Vector2, Line and ...
Oliver Schönrock's user avatar
1 vote
1 answer
112 views

Text rendering for a Node class in SFML

I needed a method which would print a square with 4 values in each corner, my current "prototype" looks like this: ...
a a's user avatar
  • 157

15 30 50 per page
1
2 3 4 5
8