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 ...
10
votes
2answers
309 views
Design of physics with Collision Detection using SFML
I found out that in Visual Studio 2012, it is possible to create project of SFML easily with a template. I am not an experienced C# programmer. Hence I wanted to implement a physics component just for ...
7
votes
2answers
188 views
Cosine function period
I'm using the cosine function in C++ to simulate flashing for a sprite in my game. The method looks like this:
(anything in the sf namespace is part of the SFML ...
6
votes
1answer
100 views
Ping Pong game in SFML
I am learning C++ and SFML so I want to know if I am laying my code out neatly and if my code is efficient. I know this is not a full game yet but I want to know if I am on the right tracks.
...
4
votes
3answers
103 views
Is having a master instance that all instances revolve around bad practice?
Question: Is having a master class bad practice? I am making a simple pong game, but I'm writing the code as if I were making for something that might be for something more complicated I want to ...
4
votes
1answer
83 views
SFML Ping Pong improved (V0.3)
Some of you may have seen my previous post asking if my code was efficient and easy to read.
I have made some more improvements to it by adding sounds, visual count down and checking if the window ...
3
votes
1answer
477 views
Graphical Tic-Tac-Toe game using SFML
First of all, I'm really new to SFML and making GUIs. This is my first real program using this.
Right now, when I click outside the window when the program is first run, the first piece is placed in ...
3
votes
1answer
253 views
Sprite cache for SFML sprites
I'm trying to make a sprite cache for SFML sprites. The basic idea I got was to use a map of an enum and a sprite pointer. Then when I would ask for a certain ...
3
votes
0answers
799 views
Integrating SFML and Box2D lib, and a Mass Production Shape Factory
I've just written two new headers: one that integrates Box2D and SFML by a class called BodyRep which creates/ is a graphic representation of any body, and one that ...
2
votes
1answer
2k views
How is my SFML sprite Move() function?
I'm making a pong game with SFML and in the process made a function that takes a Time, Speed, ...
1
vote
0answers
43 views
1
vote
0answers
413 views
Breakout-Clone built in SFML
After reading the SFML Game Development book, I decided to put what was learned to the test by creating a simple Breakout clone. I have posted the source code to GitHub: ...