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

Author Topic: Looking for the SFML Example Code (specifically zelda map scrolling) [SOLVED]  (Read 13554 times)

0 Members and 1 Guest are viewing this topic.

LedLoaf

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Email
Hello,

I remember a year ago there were some code examples for various concepts using SFML. I remember there was this Zelda example where it was demonstrating scrolling/zoom/ and I believe the main concept was using the view. You could toggle split screen, scroll around a pre-rendered map.

It wasn't a game just an example. Somewhere/someone (I believe it was off the SFML github examples) use to provide a bunch of different examples that had the full project source code. I looked at the SFML Wiki, projects, source code, the 100 or so list examples. I can't find all the example codes I once saw a year ago.

Does anyone know where this section is located or what I am even talking about? I'd appreciate it.

Thanks
« Last Edit: January 21, 2019, 05:58:07 pm by LedLoaf »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
Re: Looking for the SFML Example Code (specifically zelda map scrolling)
« Reply #1 on: January 21, 2019, 05:04:36 pm »
This sounds like you're thinking of my sf::View tutorial.

You can find it on the Wiki (or my blog).
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

LedLoaf

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Email
Re: Looking for the SFML Example Code (specifically zelda map scrolling)
« Reply #2 on: January 21, 2019, 05:55:47 pm »
I don't know how I found this. I was coding and I went back to my tabs and somehow it "magically" appeared. I must have clicked something and went back to coding while it loaded up (slow internet).

https://dev.my-gate.net/2012/06/21/using-sfview/

I think I googled SFML View examples and found it. I apologize I thought it was part of Official SFML Examples.

That was it, but thanks anyway.

EDIT: I just clicked your blog and went to the exact page I found. So thanks for clarifying!!

EDIT2: eXpl0i3r: I've recently come across a lot of your work. A lot of these examples are super old (2012!), yet they are still relevant today. Do you plan to do any more modern update examples? I believe I saw an engine by you and I really wanted to use it. But these "super buffed up" engine are too intimidating to me. But I've been trying to find a basic setup with tiles (culling, scrolling, state machine, and other simple things and possibly a simple component system). I have enough resources to do it myself, I just really would prefer to have something "done right".

 I just don't like a complex engine that I have no idea how to maneuver around it confidently. So I'd really like to find something simplified but organized and easy to expand on and enough to make a tiny rogue. Any suggestions?
« Last Edit: January 21, 2019, 06:07:42 pm by LedLoaf »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
I'm glad you found what you were looking for.

In theory, I'd love to write more examples/tutorials, but there's only so few hours in a day that I often end up either working on SFML itself or doing something else. I do have some list of potential candidates, so I'll see what I can do.
But don't expect my stuff to be "right". In programming, there's usually never just one way to do something. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

LedLoaf

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Email
That would be awesome. Just to clarify by "right" I mean organized and efficient I should say haha. You got some great stuff, I've been looking at the code all day.

Anyways, thanks! And keep up the great work!