Sonic and Sega Retro Message Board: SFML Integration into Code::Blocks - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Page 1 of 1
    Locked
    Locked Forum

SFML Integration into Code::Blocks Why am I not understanding this?

#1 User is offline KingofHarts 

Posted 25 May 2018 - 07:18 PM

  • Posts: 1610
  • Joined: 07-August 10
  • Gender:Male
  • Project:Project Sonic 8x16
  • Wiki edits:1
For context, SFML is this.

To keep things short, I use Code::Blocks primarily to code simple console applications in C++, as practice for my upcoming courses I am taking. I feel I have a good grasp on the basics, and have programmed in M68k ASM and GMS before, and wanted to try my hand at coding a basic game in C++.

Of course, I'm not talking a basic text game, though I created a simple Combat Simulator for an RPG engine I am working on, but I want to make something visual. From what I gathered from YouTube tutorials, I have found that apparently integrating SFML is the way to go. Therein lies my issue. I've tried following no less than 6 different guides to do it successfully, and EVERY one of them results in different errors. I can't even get it to build, even though I am following the tutorial instructions to a tee. I feel that the tutorials I've been following are lacking in important details, as I don't know what I'm doing wrong.

Has anyone done this with any success? And if so, can someone please help me to get started? Or perhaps are there more ideal alternatives for C++ programming? Cheers!

#2 User is offline Ralakimus 

Posted 25 May 2018 - 08:42 PM

  • Posts: 286
  • Joined: 16-April 13
  • Gender:Male
Well, what kinds of errors have you been getting?

On a side note, there's also SDL, which is also cross platform and pretty much seems to do what SFML generally does, which I have used before doing other work with Direct3D and OpenGL. To be honest, I'm not too sure on how it compares against SFML (though I've heard SFML is more object oriented), as I've never really done much with it in the past, but it's there.
This post has been edited by Ralakimus: 25 May 2018 - 08:45 PM

#3 User is offline Billy 

Posted 26 May 2018 - 12:30 AM

  • RIP Oderus Urungus
  • Posts: 1806
  • Joined: 24-June 05
  • Gender:Male
  • Location:Colorado, USA
  • Project:retrooftheweek.net - Give it a visit and tell me what you think!
  • Wiki edits:15
Never used it with Code::Blocks, but I've used SFML a lot with Visual Studio, as well as compiling with it on Linux. What errors are you running into? Are you only following YouTube tutorials? If so, there's excellent tutorials on the SFML site.

RE: Side note, I vastly prefer SFML over SDL since, as stated before, it's object oriented. Put simply, SFML is C++ library, SDL is a C library.
This post has been edited by Billy: 26 May 2018 - 12:30 AM

Page 1 of 1
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users