0
\$\begingroup\$

My favorite language is C++ and I feel most comfortable to stick to it.

I made a game in C++ primarily using the console output as a graphical interface: somewhat like that of dwarf fortress.

However I wish to connect my game to either Unity or Unreal so that I can take advantage of their graphic rendering.

Is it possible? Running a game on other program while separately running an application on Unreal or Unity for rendering purpose? Or should I just make a game from ground up on Unreal or Unity?

\$\endgroup\$
9
  • 2
    \$\begingroup\$ See also Is it possible to use C++ with Unity instead of C#?. \$\endgroup\$ Commented Nov 1, 2018 at 19:13
  • \$\begingroup\$ @Theraot isn't it "shared library" dll? I am not building a library in c++ then wanting to use it. I made a fully functional game written on c++ that runs on its own using console as a graphical display. I want Unity or Unreal to "display" my game. \$\endgroup\$ Commented Nov 1, 2018 at 21:27
  • \$\begingroup\$ You will probably have to split your code such that all your UI code is isolated from the rest, so you can change it easily. Once you have done that, you might aswell make the rest a library that is called by an executable that has the UI... and that executable could be Unity. However, if you insist, see also Is it possible to use the Unreal Engine as a big C++ library, without using the editor?. \$\endgroup\$ Commented Nov 1, 2018 at 21:30
  • \$\begingroup\$ @Theraot I do not want to make a library then run the game on Unity by calling the library. I want to run the game as a console application as it is. Then have a library to communicate between my game and the Unity/Unreal so that Unity/Unreal can express my game as a graphical display. I want to have all my game codes be done in c++ separately. Then have some library that Unity/Unreal can use to ask my game where monsters are and where players are, so that Unity/Unreal can display monsters and players. Then when user clicks the monster/player, I want Unity to talk back to my game \$\endgroup\$ Commented Nov 1, 2018 at 21:33
  • \$\begingroup\$ talk back to my game, that the player clicked monster/his-her-avatar. \$\endgroup\$ Commented Nov 1, 2018 at 21:36

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.