The Sprite Class | Monogame Tutorial Ep. 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 23

  • @codingwithsphere
    @codingwithsphere  ปีที่แล้ว +12

    For those who are wondering, this is the timeline I am going to be following for this series. If you have any suggestions please let me know! This is not set-in-stone (and I could totally be forgetting something).
    Monogame Tutorial Series Timeline
    0. Introduction
    1. Textures
    2. Sprites (We're here)
    3. User Input
    4. Collisions
    5. Camera(s)
    6. Text
    7. Audio
    8. Rotations/transformations
    9. Scene Management
    10. Game Architecure (OOP)
    11. Optimizations
    12. Render Targets
    Some misc. concepts I might cover:
    - Effectively Debugging
    - How to ship your game
    - Sub-pixel precision

  • @bobsondugnut4179
    @bobsondugnut4179 11 หลายเดือนก่อน +15

    Deep inheritance like this is definitely not the way to go. Really appreciate seeing the monogame stuff regardless, thanks for the vids.

  • @EdwardPerkins-x8r
    @EdwardPerkins-x8r ปีที่แล้ว +1

    Thanks for a superb tutorial. Looking forward to future tutorials

  • @Azurantine81
    @Azurantine81 ปีที่แล้ว

    Always nice to see new Monogame tutorials, great job and am looking forward to future videos. Subbed.

  • @ColliefarmerYT
    @ColliefarmerYT ปีที่แล้ว +1

    yagt = yet another great/good tutorial keep it up man

  • @deblejeje6521
    @deblejeje6521 11 หลายเดือนก่อน

    you are crazy efficient with your explanations tysm

  • @paulushcgcj
    @paulushcgcj 9 หลายเดือนก่อน

    Loving the way you explain things. Keep up the awesome work

  • @ajaydeep7394
    @ajaydeep7394 5 หลายเดือนก่อน

    Thank you my lord. You teach so well.

  • @smc_onetwo
    @smc_onetwo 9 หลายเดือนก่อน

    thanks for this!

  • @dennyTruffles
    @dennyTruffles 8 หลายเดือนก่อน +3

    i dunno if im stupid or something but i cant seem to get past this part in the video, i keep getting issues with Microsoft.Xna.Framework, such as "cannot convert from 'System.Drawing.Rectangle' to 'Microsoft.Xna.Framework.Vector2'" when using sprite.Rect....so weird

    • @dennyTruffles
      @dennyTruffles 8 หลายเดือนก่อน +4

      ok so my ignorance is slightly less today, i had both Microsoft.Xna.Framework and System.Numerics libraries and Vector2 didnt know which to reference. fixed!

    • @raineivyaeera
      @raineivyaeera 8 หลายเดือนก่อน +3

      @@dennyTruffles keep going and good luck! ✨

  • @TheNew1234_y
    @TheNew1234_y 3 หลายเดือนก่อน +1

    The video is nice, But you should not use deep inheritance, As it would make a whole tree of classes and the code will be just confusing, And you can do all of this in the first sprite class and use default parameters for the constructor for things you don't want in the sprite.

  • @Cnastret
    @Cnastret 4 หลายเดือนก่อน

    OOP is the more popular approach with Unity. Ecs is more performant and easier to wrap your head around. Less spaghetti code. Though ecs isn't perfect either. People use it for composition but composition isn't an outcome of ecs. It is a property of it. There are better and more performant ways to achieve composition. But I am still more on the ecs side than the OOP side. OOP is objectivly worse than ecs.

  • @abnrml5452
    @abnrml5452 ปีที่แล้ว

    what's next after tis episode? User Input? Ui and Gui? Side scrolling?

    • @codingwithsphere
      @codingwithsphere  ปีที่แล้ว

      Here is the current timeline I'm going off of. If you have any suggestions please feel free to let me know! (The "Text" video will cover some UI/GUI aswell):
      Monogame Tutorial Series Timeline
      0. Introduction
      1. Textures
      2. Sprites (We're here)
      3. User Input
      4. Collisions
      5. Camera(s)
      6. Text
      7. Audio
      8. Rotations/transformations
      9. Scene Management
      10. Game Architecure (OOP)
      11. Optimizations
      12. Render Targets
      Some misc. concepts I might cover:
      - Effectively Debugging
      - How to ship your game
      - Sub-pixel precision

  • @ColliefarmerYT
    @ColliefarmerYT ปีที่แล้ว

    my antivirus blocks my project for some reason
    EDIT: I fixed it by next to debug in visual studio it says Any Cpu, change it to 32 bit or 64 bit (depends on your cpu)

  • @powerupshow484
    @powerupshow484 25 วันที่ผ่านมา

    I don t know why but when I try to do the player = new Scaled(texture, Vector2.Zero); command it shows me that it cannot convert from a xna framework vector 2 to a systems numeric vector 2, so yeah but anyway thanks I started to learning monogame , and your videos are really helping me :)

    • @CoolModderJaydonX
      @CoolModderJaydonX 23 วันที่ผ่านมา +2

      Oh. Try removing "using System.Numerics" at the top and replace it with "using Microsoft.Xna.Framework"

    • @powerupshow484
      @powerupshow484 23 วันที่ผ่านมา

      @ thx :)

  • @MowiWowi
    @MowiWowi ปีที่แล้ว

    Whoosh over my head but ill get there

    • @codingwithsphere
      @codingwithsphere  ปีที่แล้ว

      If you want some more help, I'd love to help you out in my discord server!