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

Author Topic: How would you go about making something similar to unity for an SFML game  (Read 5417 times)

0 Members and 2 Guests are viewing this topic.

devilswin

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • Email
So i will try and be a specific and thought out as possible with this.

I do not know the technical term for the thing that i am asking about but i will go into as much depth as possible

So on the left hand side there is a side bar of sorts with different game elements such as a box, an enemy sorter, etc. With that sidebar you can add new elements, say if i want to make a car element, i click a little plus. After clicking, i can choose what base class the object is and then what the name of it is, and other options i feel i need. Then from there it will generate a .cpp and a .hpp that i could edit with an ide. another functionality that this sidebar would have is that i can drag and add elements to the scene, create maps, and other stuff with those elements. The main part of the window will be a scene, if it was a scene of a world, it would look like a map. From that map i can rearrange aspects to my liking and create new areas. After i finish editing, i can save it as a .txt and all of the map will have a specific ID to the block/thing so that the game can read through and build the world.

Is there anything like this that exists?
How would you go about doing this?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
GDevelop goes in that direction and it uses or did use once SFML for the graphics part.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

devilswin

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • Email
The only issue is that it is HTML5, and i would prefer to do it in C++

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Ah right forgot about that. Maybe they also moved on to something else. I just remember that the guy behind it once posted on the forum here.

As for C++ Engines with editor etc. you might want to look at Godot, it's free and open source.
If you want something more complex and that scales take a look at Unreal Engine 4, which by now is also free (with limitations) and you get the full C++ source code.

I don't know of a engine/editor that uses SFML.
If you want to do something like that on your own, I can't advise it, since it requires a lot of experience.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

devilswin

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • Email
Ahh, ok.

What about making a map editor like what i said that is not entirely an engine/a simpler version of what i said?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Don't take this the wrong way, if you have to ask on how to approach something like that and given your history on this forum, it seems unlikely that you'll get very far with such a project.
While it might seem simple from the outside, there's a lot going on, on the inside. Without having collected quite some experience you'll only get frustrated.

I personally suggest to keep working on smaller games and maybe some bigger game.
In the end it's your choice however. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

devilswin

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • Email
Yea, I'm just trying to get feedback on ideas...right now i am working on a pong while using sfml game development book (if only my textures would load! :-X).



Edit: My pong game now has a ball moving!
« Last Edit: May 04, 2015, 04:40:25 pm by devilswin »

victorlevasseur

  • Full Member
  • ***
  • Posts: 206
    • View Profile
You can make native games (internally using SFML and C++) or HTML5 games with GDevelop.  ;)

MakaiKing0

  • Newbie
  • *
  • Posts: 9
    • View Profile
Just to clarify....

Unity uses an ECS Model (Entity, Component, System);  The 'elements' as you called them are actually the components that your attaching to each entity object.  Unity uses it's own custom approach to this model and has an editor built on-top of it to create the overall game engine.

And no I have not seen any engine built with SFML that follows Unity....  You could just make one.... it's not that difficult.......

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
And no I have not seen any engine built with SFML that follows Unity....  You could just make one.... it's not that difficult.......
That has got to take the prize as "understatement/underestimation of the year". Come back in a few years when you've actually done it (reimplemented something Unity-like for SFML that is)...
« Last Edit: May 22, 2015, 09:54:33 pm by Jesper Juhl »