Simple and Fast Multimedia Library - a free, portable API that provides access to graphics, input, audio, etc.

learn more… | top users | synonyms

-2
votes
1answer
407 views

Check one side of a rectangle for collision detection?

How can I check to see if only one side of a rectangle is colliding with another?
0
votes
3answers
1k views

How to handle many sprites and update?

I am making a game, and I just started to think about how I am going to update and render all the sprites on the screen. Should I store all sprites in some type of list (vector or something?) and then ...
0
votes
1answer
779 views

Creating an abstract Animation class

I'm creating a simple 2d game with c++ and SFML, and I've got a simple framework going for animating a sprite using a "SpriteSheet" image (an big image containing all the "frames" of an animation) ...
4
votes
1answer
415 views

How could I implement my library/game to run in a browser plugin?

I usually code cross-platform, to build as native code for Mac Linux and Windows, but I clearly see the value in being able to display my game in a browser. Could you guide me in doing such a task? ...
4
votes
1answer
4k views

glCreateShader causes segmentation fault

I can't create a shader when trying to use shaders with sfml. The function glCreateShader(GL_VERTEX_SHADER); causes a segmentation fault. At first I googled it and found that it does that when the ...
1
vote
1answer
807 views

Should I write my own game engine, and if so what are the main features? [duplicate]

Possible Duplicate: When to roll your own game engine? I've been interested in writting games for a while, and now that I have acquired a bit of experience in programming, I feel like I ...
2
votes
1answer
2k views

SFML - Moving a sprite on mouseclick

I want to be able to move a sprite from a current location to another based upon where the user clicks in the window. This is the code that I have: #include <SFML/Graphics.hpp> int main() { ...
7
votes
1answer
2k views

Is it possible to use SFML with the Android NDK?

I've started using SFML recently and I absolutely love it. I'd like to make games that could be ported to android, linux, mac and windows, but it seems that SFML lacks portability. I've searched for ...
2
votes
3answers
1k views

Question about “Entity System” design

I am developing a top down 'thing' in SFML and C++ and was wondering about how best to handle so called Entities in my game. An entity, for example is defined by me as an object in-game, such as a ...
2
votes
2answers
549 views

how to keep a GUI on-screen without moving or resizing it according to camera movement

Hey i'm trying to make a GUI lib with SFML, and everything's done except one problem: Making the Interface stay still even when the camera moves or zooms in/out. This would be easy to fix if zooming ...
1
vote
1answer
501 views

How to form a concave shape out of convex shapes? [closed]

I'm trying to get around the rule of only being able to form convex shapes in the SFML C++ library. To do this I'm planning on testing given vertices, and if concave, splitting the vertices ...
0
votes
1answer
742 views

How to render images/textures in shape/polygon form?

I'm working with SFML right now, and upon finishing the tutorials I still do not know how to give a shape a texture or image -- not just a solid color/outline. The only thing I know can take an ...
7
votes
2answers
2k views

Better animation of elements in SFML/C++

This is not about animating individual characters or elements, I'm happy with spritesheets for that. What I'm looking for is the animation of elements on screen. For example my game starts and the ...
0
votes
2answers
1k views

my SFML sprite Move() function: FeedBack?

Hey so i'm making a pong game with SFML and in the process made a function that takes a Time, Speed, Angle of movement, buffer for the movement on the X axis, and buffer for the movement on the Y ...
-3
votes
2answers
326 views

What are some good combinations of libraries? [closed]

Lately I have been working on a game that i plan to make online. I have used different libraries to make this game as far as i could, but I feel that I should rethink on how Im sertting this game up, ...
2
votes
1answer
3k views

Converting 3D coordinates to 2D and back?

I'm wondering if there is a simple way to convert 3D coordinates to 2D coordinates. Also, if it's possible, to convert in the reverse direction. I'm using OpenGL(GLUT) in my C++ project. I am also ...
11
votes
5answers
2k views

Python Performance vs Game Maker [closed]

I was originally thinking of creating a game with Python and SFML. I understand Python is slow compared to C++, but how is it compared to Game Maker? The main reason I ask is I recently played a Game ...
1
vote
1answer
340 views

Theoretic question about rendering in sfml and in general

I have read whole tutorial section on sfml-dev.org and have some question. What are exactly views and how to use them ? Should I render things in views or in renderwindow ?
4
votes
5answers
2k views

Does SFML support these specific features that I require?

I've been working on a game in c++ for about a week and a half, and I've been using SDL. However, my current engine only needs the following from whatever library I use: enable double buffering load ...
1
vote
1answer
509 views

SFML title bar with weird characters when using UTF-8

(Previously asked at http://stackoverflow.com/questions/4922478/sfml-title-bar-with-weird-characters-when-using-utf-8) I've just started using SFML and one of the first problems I've come across is ...