• Advertisement
  • Popular Tags

  • Popular Now

  • Advertisement
  • Similar Content

    • By Ty Typhoon
      ...if you got time to read and answer i would be happy . 
       
      So me and my co try to do a game.
      It should be in unity couse my co do everything in this engine.
       
      We got the rpg package from evila for inventor, but it only runs on pc right now.
       
      I like to make a online store for guns in the game and a multiplayer open world that runs on pc, android, mobile, ps4, xbox one. 
      Somebody told me that you "only" need to program it like so and that its possible in every engine...
       
      So if you are one of the lucky guys who could help me out or programm that, or even if you know a newer better package for maybe unreal which offers that - please let me know now.
    • By ethancodes
      I'm having a weird issue with detecting a collision. I've tried everything I could find online but nothing seems to work. I have a brick object. It has a 2D Collider attached and I have also attached a 2D Rigidbody on it. I also have an EndScreen 2D Collider. The EndScreen 2D collider is tagged with "EndScreen". I am trying to detect when a brick collides with the end screen collider and simply print "game over" in the console. 
      This is my current code for this part of the program, it is attached to the bricks:
      void OnCollisionEnter (Collision2D collision) { if (collision.gameObject.tag == "EndScreen") { Debug.Log("Game over"); } } Several things have happened depending on the set up. If I have the rigidbody 2D set as static, my ball object can still collide with the bricks, but I get no Log message. If I set it to Kinematic or Dynamic, I get absolutely no interaction between the ball and the bricks, and nothing when the bricks pass through the collider. I have tried to set the collider to a trigger and use OnTriggerEnter2D, no change. I have tried to put the rigidbody on the EndScreen object and tried to set it's body type to all 3 settings, no change. The only thing I can think of that I have not done is put the script on the EndScreen object and switch the tag to the bricks. The reason I have not done this is because I will have several types of bricks, some of which will have different tags. 
       
      Please tell me somebody can see what I'm doing wrong here, because I'm losing my mind over something I feel should be ridiculously simple. Thanks.
    • By Sandman Academy
      Downloadable at:
      https://virva.itch.io/sandman-academy
      https://gamejolt.com/games/sandmanacademy/329088
      https://www.indiexpo.net/en/games/sandman-academy
      https://www.gamefront.com/@sandmanacademy
      http://www.indiedb.com/games/sandman-academy
    • By Sandman Academy
      Downloadable at:
      https://virva.itch.io/sandman-academy
      https://gamejolt.com/games/sandmanacademy/329088
      https://www.indiexpo.net/en/games/sandman-academy
      https://www.gamefront.com/@sandmanacademy
      http://www.indiedb.com/games/sandman-academy
    • By Sandman Academy
      Downloadable at:
      https://virva.itch.io/sandman-academy
      https://gamejolt.com/games/sandmanacademy/329088
      https://www.indiexpo.net/en/games/sandman-academy
      https://www.gamefront.com/@sandmanacademy
      http://www.indiedb.com/games/sandman-academy
  • Advertisement
  • Advertisement
Sign in to follow this  

Unity Questions About Engine Development

This topic is 746 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, everyone! I haven't been on here in 15+ years! I never really thought I'd find myself back in this mode of interest. Long story short, I started in C++ when I was 11 (29 now). Eventually got into .NET (C#). And I ultimately landed a solid career as a software engineer in the healthcare industry, primarily focusing on C# and ASP.NET MVC.

 

I feel that my experience since my old days has definitely given me a much stronger understanding of programming in general. Getting back into C++, I've found myself understanding many of the concepts (especially pointers!) far better than I ever did many years ago. Also the concept of OOP. A friend recently started messing around in Unity, and he wanted to know if I could help him with scripting (C#). Sure, why not! This peaked my interest in C++ and game development again, as a hobby.

 

I've been playing around with SDL 2.0, using C++ in Visual Studio 2013. It's been a pretty easy ride so far. My main question at this point is as follows:

 

1) Does a game engine's purpose include abstracting everything away from the underlying library/libraries? So if I write a simple graphics engine using SDL 2.0, should any game I write that uses this engine essentially know nothing about SDL?

 

I've written a very simple "engine", so to speak. I have a state manager class, a graphics class (handles window creation, initializes SDL and similar operations), basic input manager and so forth. As it stands, I can write an application based on these classes in such a way that, in my application, I do not have to "#include <SDL.h>". All I have to include are the headers for my "engine".

 

2) In this case, if I want to specify a color, for example, the correct approach is to write my own object (e.g. "class Color" - in the engine's code) that encapsulates "SDL_Color" found in the SDL library? And then the engine handles converting it to SDL_Color as needed internally?

 

I've never really had much interest in developing the game itself. I've always had a much deeper interest in the behind-the-scenes (e.g. the engine). Now, however, since I feel that I have a much more solid understanding of programming concepts in general, I wouldn't mind creating some smaller scale game projects of my own, including my own engine.

 

Thanks in advance. Glad to be back!

Edited by meu_bin10

Share this post


Link to post
Share on other sites
Advertisement

Generally the purpose of modern engines is to abstract away the underlying platform.

 

You can build a game using SDL or Unity or Unreal, and it will run on all the platforms the technology supports.  A few clicks or config changes and the game runs on Windows, MacOS, Linux, Android, iOS, Windows Phone, XBox, a web browser, and anything else under the sun.

 

There will likely be some work in matching the platform's look-and-feel (the touch of a phone versus the click of a mouse) or changes to support hardware capabilities (a high-end PC's graphics card versus a low-power phone), but overall a well-written engine will hide all the platform details.  The same game should run across them all.

Share this post


Link to post
Share on other sites

Generally the purpose of modern engines is to abstract away the underlying platform.

 

You can build a game using SDL or Unity or Unreal, and it will run on all the platforms the technology supports.  A few clicks or config changes and the game runs on Windows, MacOS, Linux, Android, iOS, Windows Phone, XBox, a web browser, and anything else under the sun.

 

There will likely be some work in matching the platform's look-and-feel (the touch of a phone versus the click of a mouse) or changes to support hardware capabilities (a high-end PC's graphics card versus a low-power phone), but overall a well-written engine will hide all the platform details.  The same game should run across them all.

 

Makes sense. Thanks, frob. This is all purely experimental, and I've never had a desire to reach some sort of public release. Just something fun to do with spare time, and to expand my knowledge. I have yet to consider my options or methods for making anything compatible with any platform other than Windows at this point. Perhaps that's something I should look into, just to open things up a little.

Share this post


Link to post
Share on other sites

I've always had a much deeper interest in the behind-the-scenes (e.g. the engine).
Depending on the genre of games, you can have very large and complicated "magic" going on in the game. Think about simulations, path finding, or smart AIs or NPCs.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement