Questions tagged as 'sfml'

1
answer

How to configure C ++ SFML library in codeblocks or dev c ++?

I have managed to configure the SFML library in codeblocks but once I move the .exe file to another place it does not work anymore. My configuration is as follows: download CODEBLOCK: http://www.codeblocks.org/downloads/binaries download S...
asked by 02.08.2017 / 18:11
2
answers

What would be the best way to handle the firing rate of the ships in my game?

In my current code the enemy ships fire each frame of the game. How can I make those shots to be every so often, 2 seconds for example? My code: Bullet.h: class Bullet { private: sf::Sprite sprite; sf::Vector2f speed; int posX, posY;...
asked by 04.05.2017 / 21:25
1
answer

How to handle text files to save scores of a game?

The idea is that when the user dies he enters his name and it is saved along with his score keeping the names and scores that were already saved. the problem is that the code I have only overwrites the previous file and saves the last name enter...
asked by 15.06.2017 / 03:59
1
answer

What I need is that when the character collides with the door jump to the next level, how do I do this?

This is one of the levels, it is declared as global. String Capitulo_1[] = { "OTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTO", "P p", "P p", "P p", "P...
asked by 25.05.2017 / 04:11