Advertisement

Latest SFML Activity

Hi everyone! I’m currently working on my master’s thesis, where I’m comparing the SFML, Raylib, and SDL2 libraries in the context of game development. I’d love to hear about your experiences with these libraries. Which one have you used or are you using in your work, and what influenced your choice…

698 views
Advertisement

@JoeJ Thank you for taking the time to help me with this.

I actually fixed the problem. As it turned out it was an off by one problem with my loop. A triangle fan needs to be 2 elements larger than the number of vertex points in my vector, 1 for the central position and 1 to close the gap between th…

5,800 views

yusuf0 said:
HI. I m trying to learn creating tilemap with vertex array. I found a code from a tutorial but i didnt understand completely this code:

What do you not understand about it? And why do you want to do your own tile maps, although SFML already has that implemented? (I assume you use SFML, b…

4,513 views

Never used box2d, but as nobody else seems to have time, let's try.

I copy/pasted the code above and reformatted it to something readable. Compiling it fails with:

$ g++ something.cpp
something.cpp: In function ‘void AddBox(b2World&, int, int)’:
something.cpp:132:20: error: invalid conversion fro…
5,679 views

@undefined I appreciate the detailed response. Unfortunately there is no documentation or user examples I can find regarding using SFML's mipmaps. I tried generating a mipmap for each tile atlas texture, wondering if it would benefit the view.zoom() calls. But no, same issue as before. I'll just ha…

18,150 views
rileyman
April 30, 2021 10:49 PM
The Colon Case - Wrapping Text in SFML

In my previous post, I presented a simple FontFamily class.  This was just the first step in being able to render large blocks of text for my upcoming detective game, The Colon Case.

When SFML renders text on the screen, it will only wrap that text to a new line if the string actually contains …

6,674 views
rileyman
April 28, 2021 12:40 AM
The Colon Case - Font Families in SFML

Slow but steady, progress is being made on my upcoming detective game, The Colon Case.  With basic character movement well behind me, the next main feature to tackle will involve examining items on the map.  Following that will be dialog with NPCs.  Both of these features will requir…

5,717 views
rileyman
April 16, 2021 07:21 PM
The Colon Case - Now Building with CMake

It's been a few months since I last posted about my next game, The Colon Case.  I've actually been reasonably (sporadically?) active on the project, but took a little detour over the past month to learn how to build C++ projects using CMake.

I'm happy to say that the source code for The Colon C…

7,554 views
8Observer8
June 16, 2020 08:56 AM
SFML C++. Bouncing ball with showing coordinates

l use MinGW and lightweight editor VSCode: https://code.visualstudio.com/docs/languages/cpp

Type the command: mingw32-make

Makefile

# -mwindows - without a console window

CC = g++

INC = -I"E:\Libs\SFML-2.5.1-windows-gcc-7.3.0-mingw-32-bit\include"

LIB = -L"E:\Libs\SFML-2.5.1-windows-gcc-7.3.0-min…
7,745 views
Advertisement
Advertisement