Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Screenshot Thread  (Read 437253 times)

0 Members and 1 Guest are viewing this topic.

Duka

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Screenshot Thread
« Reply #270 on: April 14, 2023, 02:19:38 pm »
Simple 2D gravity simulation. My first SFML project

« Last Edit: April 14, 2023, 02:32:08 pm by eXpl0it3r »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11175
    • View Profile
    • development blog
    • Email
Re: Screenshot Thread
« Reply #271 on: April 14, 2023, 02:33:01 pm »
Ohh, I like gravity simulations, do you have an animation of that? :)
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Duka

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Screenshot Thread
« Reply #272 on: April 14, 2023, 03:58:39 pm »
Ohh, I like gravity simulations, do you have an animation of that? :)

Here is a gif (If I can even upload it). Also the source code https://github.com/Duje1/Gravity-Simulator

https://gifyu.com/image/Sd8eU

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Screenshot Thread
« Reply #273 on: May 30, 2023, 06:09:42 pm »


Inspired by some games I'm heavily considering making my own "RPG Maker Mystery/Horror Game" style game, in C++, SFML, with Lua for scripting events, and few other libraries.
Back to C++ gamedev with SFML in May 2023

Bondrusiek

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Screenshot Thread
« Reply #274 on: July 30, 2023, 10:32:27 am »
Hi,
I'vs created Star Pusher. Star Pusher is a Sokoban or “Box Pusher” clone. StartPusherSFML is "Star Pusher" clone written in SFML.



Source code
Best

Hapax

  • Hero Member
  • *****
  • Posts: 3415
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Screenshot Thread
« Reply #275 on: September 11, 2023, 07:16:59 pm »
Since creating Cheese Map, I decided I wanted to try it out with a project so I dusted off an old (7 years old ago! Look, here's an old post!) platformer beginning I had made and swapped the map to use Cheese Map.

I ended up getting more involved in the game itself and - since I've been trying out working with joysticks/controllers - I have also implemented that as well. I may very well start actually working on it a bit now. We'll see ;)

Here's a quick screenshot (click for full size) of what I've called "Dais":


And, in true "me" style, here's a Windows executable (SFML-statically-built, zipped with included resources) if you want to try it out yourself:
https://www.mediafire.com/file/67y3yqg02nel8z8/Dais_-_early_alpha_tests_0.0.0.zip/file
You can edit the level as you see fit while the game is still running :)
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Hapax

  • Hero Member
  • *****
  • Posts: 3415
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Screenshot Thread
« Reply #276 on: October 05, 2023, 05:01:22 pm »
I made a small graphics editor that assists with creating small, reduced-colour images aimed at helping with Rubik's Cube patterns.

Since that tool was made using SFML, I thought it only fit to create one using the SFML logo :D:





Yes, that's 100 mini-cubes! 8)


Technically not a screenshot, I suppose...
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

freesoul

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Screenshot Thread
« Reply #277 on: January 07, 2024, 10:53:14 pm »
An exploration RPG in development for a few months now.


Bondrusiek

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Screenshot Thread
« Reply #278 on: July 20, 2024, 07:13:56 pm »
Hi,
I'vs created the Top Down Shooter game.



Source code
Best

Bondrusiek

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Screenshot Thread
« Reply #279 on: November 14, 2024, 06:06:15 pm »
Analog Clock

Source code: https://gist.github.com/Przemekkkth/3a0c9acae9d8824780a7b9b7bb07fbe2

Additionally I created a function which use Bresenham's line algorithm and help drawing a line between two points with specified width and color:
int drawLine(sf::RenderWindow &window, sf::Vector2i point1, sf::Vector2i point2, int lineWidth, sf::Color lineColor)
{
    int x0 = point1.x;
    int y0 = point1.y;
    int x1 = point2.x;
    int y1 = point2.y;
    int dx = abs(x1 - x0);
    int sx, sy;
    if (x0 < x1) {
        sx = 1;
    }
    else {
        sx = -1;
    }

    int dy = -abs(y1 - y0);
    if (y0 < y1) {
        sy = 1;
    }
    else {
        sy = -1;
    }

    int err = dx + dy;

    while (true) {
        sf::RectangleShape rect(sf::Vector2f(lineWidth, lineWidth));
        rect.setFillColor(lineColor);
        rect.setPosition(x0, y0);
        window.draw(rect);
        if (x0 == x1 && y0 == y1) {
            break;
        }
        int e2 = 2 * err;

        if (e2 >= dy) {
            err += dy;
            x0 += sx;
        }

        if (e2 <= dx) {
            err += dx;
            y0 += sy;
        }
    }
}
 

« Last Edit: November 15, 2024, 12:02:24 am by eXpl0it3r »

Hapax

  • Hero Member
  • *****
  • Posts: 3415
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Screenshot Thread
« Reply #280 on: March 12, 2025, 06:23:07 pm »
I recently decided to push myself to see how much I could get out of my own knowledge of raw OpenGL (it's not much!) within SFML. Along the way, I factored it into a library and ended up arranging it so its use is very similar to SFML's graphics module.
Note that this is all done with SFML and only the OpenGL that is included by SFML's headers. No other external library (even any OpenGL) was included.





Here's a screen recording of the full test scene! ;)


Note that this "library" is just a personal test. It isn't being developed for public use; at least, not yet...
It also acts as a kind of "proof of concept" of what SFML 3D might have looked like.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything