How to make a Scene Management using MonoGame

Поділитися
Вставка
  • Опубліковано 19 гру 2024

КОМЕНТАРІ • 10

  • @KayAltos91
    @KayAltos91 8 місяців тому +1

    Finally, new video! Thank you!

  • @que910
    @que910 8 місяців тому +1

    Hello. In VS(not code), when i refer to a class located in a folder, its full path with the folder is required
    For example, using ProjectNameSpace._Manager.GameManager.
    How do you make sure you don't use these paths?

    • @GameDevQuickie
      @GameDevQuickie  8 місяців тому +1

      Hello, great question! It is thanks to this file: github.com/LubiiiCZ/DevQuickie/blob/ff7534c803a6417bf592f72915fdb19ce1619b01/Quickie023-SceneManagement/Usings.cs
      Plus: I am using a single namespace within the example project

    • @que910
      @que910 8 місяців тому

      @@GameDevQuickie yes, i use this file too
      but besides these lines
      {
      global using System;
      global using Microsoft.Xna.Framework;
      global using Microsoft.Xna.Framework.Graphics;
      global using Microsoft.Xna.Framework.Input;
      }
      I also need to add these lines
      {
      global using ProjectNameSpace._Manager.GameManager
      global using ProjectNameSpace._Manager.InputManager
      global using ProjectNameSpace._Models.Character
      }
      and so on
      without this line, I need to put these texts every file to refer my GameManager
      and also i use single namespace
      in other words, my classes cannot find other classes if they are in folders

    • @GameDevQuickie
      @GameDevQuickie  8 місяців тому

      @@que910 are you sure your classes are in the same namespace? It doesn't seem so from the above. I would have to see the project I guess.

    • @que910
      @que910 8 місяців тому

      @@GameDevQuickie Thanks to you, I tried to figure out what was wrong.
      It turns out that when I dragged the class into a folder, the class asked me whether to change its own namespace by adding the name of the folder to the namespace.
      Without reading, I clicked "Yes" everywhere (as I think most of us click "Next", "Next" when receiving notifications)
      Because of this, I got different namespaces, although they had parental roots. Problem solved

  • @mcsauce478
    @mcsauce478 3 місяці тому

    Can you make a video on scene management within your top down shooter project? Thanks

    • @GameDevQuickie
      @GameDevQuickie  3 місяці тому +1

      Hey, it is pretty straightforward. Just take the things from the scene management episode. Are there any blockers?