home.social

#sfml — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #sfml, aggregated by home.social.

fetched live
  1. Платформер в стиле DOOM: портируем старую курсовую на чистый JavaScript

    Несколько лет назад у нас с одногруппником был зачёт по C++, и вместо того чтобы сделать что-то скромное (например, «Калькулятор» или «Генератор паролей»), мы, конечно же, решили замахнуться на какую-то игру, и тогда нам попалась новость о 30-летнем юбилее игры DOOM. План был красивый, т. к. на тот момент командной работы у нас не было, мы решили, что мой одногруппник пишет псевдо-3D-движок в духе классического рейкастинга, а я делаю 2D-платформер, который в итоге должен был запускаться прямо внутри его мира, как игровой автомат, который запускался бы перед игрой, и сколько патронов ты собрал, столько у тебя и будет в игре. Проблема появилась не в архитектуре и не в гейм-дизайне, а гораздо раньше — на этапе, который мы оба благополучно пропустили: мы не договорились, на чём пишем. Я по рекомендации преподавателя взял SFML — с ним я уже возился на парах, там всё human-readable, спрайты, окна, звук из коробки. Товарищ выбрал SDL, т. к. видел гайд про DOOM на SDL — она даёт прямой доступ к буферу пикселей, что для рейкастинга буквально то, что нужно: рисуешь вертикальные полоски стен вручную, без лишней абстракции между тобой и экраном. По отдельности оба выбора были правильными, а вместе — нет. Слинковать в одном проекте SDL и SFML можно, но два разных event loop, два разных подхода к окну и таймингу — это уже не работа для автомата по зачёту, а отдельная курсовая работа, на которую у нас оставалось дня два-три. Мы посчитали и сдали как два независимых проекта. Препод посмотрел, оценил — и выдал ровно ту фразу, которую в такой ситуации выдал бы любой человек, который знал о проекте: «Идея классная, жалко, что не объединили», но нам это было неважно на тот момент, как говорится, зачёт получили — и на этом спасибо.

    habr.com/ru/companies/ruvds/ar

    #JavaScript #Canvas #DOOM #платформер #SFML #C++ #портирование_кода #игровая_физика #рейкастинг #ruvds_статьи

  2. @markojahnke

    Ja schade das es bei dir auch keine gute und zuverlässige Vorhersage bietet. Auch liegt solcast bei immer relativ gut.
    Ich habe das SFML AddOn deshalb vor 2 Wochen gelöscht.

    #homeassistant #LLM #sfml #Solcast

  3. @zahnfee Du hattest recht.

    Auch nach langer Anlernphase liegt die Prrognose der #SFML-Integration für #Homeassistant gnadenlos daneben. Es ist auch kein Trend zur Verbesserung zu erkennen.

    #Solcast ist tatsächlich um Welten besser.

    Und das ist nur auf den Gesamtertrag pro Kalendertag bezogen.

  4. SFML 3.1 has just been released! 🥳🎉

    It's a minor release, but brings major new features!

    - Revamped text rendering with complex text layouts
    - Supporting TLS, HTTPS, SFTP, and IPv6
    - Better Unicode support
    - Many Android and iOS improvements

    github.com/SFML/SFML/releases/

  5. All right, another game is out! Mansion Malevolence is available for free for PC and Android on my Itch.io: nerudaj.itch.io/mansion-malevo

    The game is a demake of classic survival horror Resident Evil, reimagined as a solitaire card game that you can play in short bursts while commuting.

    The game was made in C++, using SFML for rendering and sounds and TGUI for UI. Source code is available on GitHub: github.com/nerudaj/MansionMale

    youtu.be/f1jT3A2XqXU

    #gamedev #indiedev #MansionMalevolence #ScreenshotSaturday #SFML #TGUI #cpp

  6. Created some tutorials to aid the initial use of Cheese Map, with guidance from scratch to creating grid-style tile maps as well as layers of free tiles:

    github.com/Hapaxia/CheeseMap/w

    Cheese Map is a map drawable for use with SFML and can simplify drawing maps, especially grid-style (the most obvious type) tile maps (it can work with and also draw multiple at once - order by z-order) and can also use 3D scaling.

    Here is a video of it in action during tests: youtube.com/watch?v=de0OGuVQkGk

    #cheesemap #sfml

  7. Added a "page" state stack, as well as "behavior" for characters which currently just includes a slide movement and a wobble when talking.

    #ChristmasHorse #gamedev #CPP #SFML

  8. Begun creating a new PSG (Provided Symbol Group) for Grambol (github.com/Hapaxia/Grambol/wiki):

    Flags!

    Obviously, I've stuck to the more simple ones for now (mostly striped) but there are so many more to come!

    The image is a screenshot of what I have so far (challenge: can you name them all?!)

    #grambol #sfml #cpp #flags

  9. Updated Grambol to include some more Provided Symbol Groups, including: BasicGradient, CardSuit and Icon.

    BasicGradient is identical to Basic group with added gradient.

    CardSuit provides symbols for the suits of standard playing cards: heart, diamond, spade and club.

    Icon provides some customisable symbols that are commonly used as icons: home, (location) pin, upload/download, cog, clock and Bluetooth logo.

    Images shows examples of some the newly added symbols.

    #grambol #sfml #c++

  10. Teaching a data structure class in C++ this semester. Created an assignment where students have to implement a word search game that can solve itself. It's going to be fun!

    Using SFML for the graphical interface.

  11. This keybinding dialog took way longer to implement than I anticipated, but is generic so I can use it in any project from now on :)

    #gamedev #sfml #tgui #ScreenshotSaturday

  12. Псевдо-3D движок за 150 строк кода или рейкастинг для чайников

    На хабре было много статей как создать такой движок, но их проблема была в том что они давали только отрывки кода, не объясняя полностью весь процесс, который мог бы быть по-настоящему полезен новичкам или полным нулям. Поэтому я решил подделится своим опытом в этом направлении

    habr.com/ru/articles/948320/

    #SFML #C++ #Игровой_движок #raycasting #псевдотрёхмерность #псведо3D #минимализм #kiss #игра #импровизация

  13. While work for 3.1 is getting closer to the finish line, we've just released a new patch version 3.0.2 with a few small bugfixes and build enhancements! 🥳

    It's awesome to see so many contributors listed even with this small release! Thank you! ❤️

    github.com/SFML/SFML/releases/

  14. Summer is almost over and I'm releasing my summer-long project - MagRider! A simple-to-learn, hard-to-master 2D platformer where you move by magnetizing your avatar - a cutsy round ball.

    Build by hand in C++, SFML and TGUI, this one also runs on Android and let me tell you a secret - it is a great toilet-break game! Just don't get too angry with the uncompromising difficulty so your phone doesn't end up in the toilet as well. 😁

    Play the game for free: nerudaj.itch.io/magrider

    #cpp #sfml #tgui #ScreenshotSaturday #Gamedev #Indiedev

  15. It's about month and a half since I finished working on support for gamepads in #SFML on Android and the maintainers are ghosting me ever since. I guess I pissed them off with something, although unclear on what.

    Welp, seems I'll be building everything on my fork for foreseeable future 🤡

    #gamedev

  16. Deer Portal Release 0.9.7 - Particles storm. There is a little FPS drop, so optimisations are incoming, but its good for start :) Do you like this massive particles? #GameDev #IndieDev #OSX #Linux #Windows #SFML #linuxgaming #indiegame #DeerPortal devcarpet.itch.io/deer-portal/...