Skip to main content
GameDev.net gamedev.net

SFML

15 items across game development

15 results

Blog

#Pong - Devlog 3 - Now with sounds

As said in the previous post, adding sounbds could be interresting and... that was a little more complex than I thought 😀 What's the problem ? As I already have …

snnooze ·
2d games C++ SFML ClassicArcade
Forum Post

Reply in: Problem with Sounds in SFML 3

RmbRT wrote: you need to declare it as extern sf::SoundBuffer m_buffer; and then in one .cpp file, declare it normally without extern. Finally that solution works Thanks for your help …

snnooze ·
C++ SFML Audio
Forum Post

Reply in: Problem with Sounds in SFML 3

Hello, Sorry for the delay, RmbRT wrote: You need to launch the .exe file from within the right directory. Let's say you have your Game/ directory, and then Game/build/Debug/game.exe. If …

snnooze ·
C++ SFML Audio
Forum Post

Reply in: Problem with Sounds in SFML 3

You need to launch the .exe file from within the right directory. Let's say you have your Game/ directory, and then Game/build/Debug/game.exe. If you launch it from the IDE, it …

RmbRT ·
C++ SFML Audio
Forum Post

Reply in: Problem with Sounds in SFML 3

Hello, me again 🙂 I have a new problem that seems to be in relation with the sounds and sound buffer of SFML. The game starts and runs well with …

snnooze ·
C++ SFML Audio
Forum Post

Reply in: Problem with Sounds in SFML 3

Hello, Yes, my first idea was to do something as you do. I don't remember why and when I've started to list the files and as my IDE (CLion) automaticly …

snnooze ·
C++ SFML Audio
Forum Post

Reply in: Problem with Sounds in SFML 3

I noticed you're manually listing your source files in your CMakeLists.txt. Check out what I did for an old project of mine to make source file handling easier: https://github.com/RmbRT/re/blob/master/CMakeLists.txt. This …

RmbRT ·
C++ SFML Audio
Forum Post

Reply in: Problem with Sounds in SFML 3

Hello, Yes and I think it's approximativly tried to do, I'm sure my code is far to be perfectly organized but I've tried to keep an init/inputs/update/draw system. And, in …

snnooze ·
C++ SFML Audio
Forum Post

Reply in: Problem with Sounds in SFML 3

snnooze said:Now I think I can optimize that by not loading the file every time, I will try that. You generally want to have a program structure like this: on_start() …

RmbRT ·
C++ SFML Audio
Forum Post

Reply in: Problem with Sounds in SFML 3

@khawk The forum claims there was a second reply (by OP) to this thread, 3 hours ago, and I also got a notification, but the reply just doesn't show up, …

RmbRT ·
C++ SFML Audio
Forum Post

Reply in: Problem with Sounds in SFML 3

RmbRT wrote: Looks to me like unlike what the documentation suggests, the sf::Sound object has to live for as long as the sound should be played. Sound::play() plays the sound …

snnooze ·
C++ SFML Audio
Forum Post

Reply in: Problem with Sounds in SFML 3

Looks to me like unlike what the documentation suggests, the sf::Sound object has to live for as long as the sound should be played. Sound::play() plays the sound in a …

RmbRT ·
C++ SFML Audio
Forum Topic

Problem with Sounds in SFML 3

Hello, In my actual project where I use SFML 3 I try to add some sound effects, actually music works but when I try to play a sound nothing happen. …

snnooze ·
C++ SFML Audio
Blog

#Pong - Devlog 2 - I can play versus the computer

In the previous post I shared a video but the player seems to have a problem so I hope today that will works. What's new In short, the 1 player …

snnooze ·
C++ SFML 2dgamedev Learning 2Dgame
Blog

#Pong - Devlog 1 - The beginning

A little story I started to dev #Pong about a week ago as I fighted with cmake and SDL for another idea of game to code. My problen with CMake …

snnooze ·
SFML C++ arcade 2d games