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 ...
1
vote
1answer
38 views
Simple Snake Game - followup
Based on the previous question, I have implemented all suggestions. Also, I added new features to the game.
Summary of improvements:
Implemented smooth movements to snake instead of tile movements ...
3
votes
1answer
61 views
Simple Snake Game
I was working on this game for while and I have made it for education purposes by using SFML. The game works fine but I would like to know how I can improve it.
...
6
votes
1answer
47 views
Simple OpenGL-2D Program
I have created mini-opengl program that draw simple chess board on screen by using SFML windows model only. The program runs fine. The main purpose of this program is to keep it as simple as possible ...
5
votes
0answers
35 views
Fake 3D effect in SFML - follow up 2
Based on my previous question, I have implemented all the recommendations received. In addition, i have implemented new features and completed road geometries.
Here is a summary of the improvements:
...
4
votes
1answer
60 views
Fake 3D effect in SFML - follow up
Based on my previous question, I have implemented all the recommendations received.
Here is a summary of the improvements:
Use meaningful names as much as possible.
Removed multiple declarations in ...
4
votes
1answer
61 views
Fake 3D effect in SFML
I was reading about making fake 3D effects or so-called "mode 7" on 2D contexts. I have made a small program to demonstrate the fake 3D effect by using SFML. How can I improve it?
...
4
votes
1answer
77 views
Simple Breakout/Arkanoid clone with SFML
I'm doing this small Breakout clone for school, and I've looked at heaps of people's takes on Breakout and tried to combine bits and pieces that I liked. Only problem that I'm having is getting the ...
4
votes
2answers
67 views
QuadTree for collision detection
I was recently working on a game using the SFML library, Later on, I experienced performance issues due to collision detection. I have been told to use a QuadTree ...
2
votes
1answer
106 views
2D Tile Engine game
The game basically has a player (PlayerCharacter class) that can move around the world. It has a 2D world made of tiles managed by ...
3
votes
1answer
78 views
Drawing a colored rectangle on-screen
I have made my first program that draws a colored rectangle on-screen. I want to know the best practices of making OpenGL and GLSL programs.
...
1
vote
1answer
128 views
Snake class for simple Snake clone
NOTE: I'm only including the snake class (only one file) here because the rest of the code doesn't need reviewing. If you need to see the complete code for whatever reason, it is available on GitHub ...
2
votes
0answers
74 views
Tic Tac Toe - NxN
This is a graphical Tic Tac Toe game by using SFML cross-platform library. It seems to work fine. I'm actually new to SFML and making GUIs. If anyone is familiar with SFML, I'd appreciate some ...
6
votes
1answer
78 views
N-body sim with Barnes-Hut - Follow up
Link to previous question: Barnes-Hut N-body simulator
It still has issues I'm sure.
Node.h
...
15
votes
2answers
498 views
Barnes-Hut N-body simulator
I've written an n-body simulator, implementing the Barnes-Hut algorithm. Please comment on anything you can see wrong with this.
Wikipedia Barnes-Hut page
This is a screen shot of the simulation ...
9
votes
3answers
349 views
Network programming for an IRC Bot
I'm currently making my first steps into the territory of network programming, using the SFML Network library to simplify things.
Later on, my bot shall post new pull requests and changes concerning ...
2
votes
1answer
101 views
SFML Pong Game Performance
I was hoping I could get some feedback on performance of my animations overall. It could just be me but I keep getting a bit of lag despite being at 60FPS constantly.
Objects on screen seem to tear a ...
5
votes
1answer
131 views
A Trivia game with SFML
So I've been making a trivia game with SFML and C++ for quite a while now for my school project and I would like to get some constructive criticism, anything helps from best practices to overall ...
4
votes
1answer
351 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 ...
6
votes
1answer
666 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.
...
1
vote
0answers
84 views
2
votes
2answers
67 views
Generic 2D engine for simulation
I'm using SFML to manage my windows and I'm writing this engine to visualize some PSO work. I'm trying to make it generic enough that I can extend it for other simulations later on and keep it as ...
4
votes
1answer
145 views
Cart-creation class using SFML
My code is for a simple "cart-creation" class and sample use in SFML. The Cart class inherits sf::RectangleShape and will end up ...
1
vote
0answers
757 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: ...
10
votes
2answers
472 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
3answers
542 views
Performance of collision detection in a grid
I have fairly simple collision checking and handling Python code which is currently bottlenecking my performance quite a bit. I haven't done too much coding in python and I'm quite sure there's ...
4
votes
3answers
111 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 ...
3
votes
1answer
747 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
393 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 ...
7
votes
2answers
198 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 ...
3
votes
0answers
876 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, ...