Sprite Animation in raylib

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

КОМЕНТАРІ • 15

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

    Thanks for a great video about Raylib and sprites and I hope you will make more.
    From a pedagogical perspective, viewers have to have some understanding of C and basic geometry to follow your videos.
    I'm quite new to Raylib and C, but the more I learn about Raylib, the more I like it and it shines through, that Raysan have a teaching perspective.
    Although you have a ton more of C knowledge than I, I dare to ask, why you are not writing: Rectangle *mem = malloc(sizeof(Rectangle) * length); ? :o)
    I use Raylib as graphical interface for a small relational database with editing, printer and of course a cursor insert/overwrite - tricky for me.

    • @perelmanych
      @perelmanych 2 місяці тому

      It depends on the background you have, but personally I find much easier to use C++ vectors and not to worry much about memory allocation/deallocation. If for some reason your vector index runs out of range turn on sanitizers and you will immediately find the bug.

    • @andrewhamelcodes712
      @andrewhamelcodes712  2 місяці тому

      I'm not sure where or why I got the impression that explicit casting the return of malloc was necessary.. but it wasn't until veeeeery recently that I learned it's actually bad form to use explicit cast there. It's a great correction to point out.. if only UA-cam didn't delete annotations like a hundred years ago 😂

    • @andrewhamelcodes712
      @andrewhamelcodes712  2 місяці тому +1

      A great suggestion for those using C over C++! I also do not suggest people directly use heap memory in C++ for simple collections like this :)

    • @grimvian
      @grimvian 2 місяці тому

      @@perelmanych Although I dumped C++ two years ago after learned inheritance, composition and all the basic stuff, I assume sanitize have something to do with freeing resources...

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

    Well worth a subscription!

  • @Pabloparsil
    @Pabloparsil 11 місяців тому +3

    Can you make a video on sprites in a 3D environment? Example: Octopath traveler

    • @andrewhamel1
      @andrewhamel1 10 місяців тому +2

      I haven't made any videos on 3D yet, but this might be a great way to eek my way in. Hmm..

  • @benjamindeharo314
    @benjamindeharo314 10 місяців тому +1

    Would you consider making a space invaders emulator ? (The Midway 8080 arcade machine, not a clone of the game)
    It is generally considered to be the next step in emulation programming after chip-8, but there aren't any clear tutorials about making this machine

    • @andrewhamel1
      @andrewhamel1 10 місяців тому

      It's an interesting idea, but emulation is out of my wheelhouse.

  • @Memer474
    @Memer474 11 місяців тому +1

    What is the name of the theme you are using in vs code??

    • @andrewhamelcodes712
      @andrewhamelcodes712  10 місяців тому +1

      I have since reset a lot of this stuff, but just for you I looked through every theme I had installed and I believe it is Monokai Dark Soda! The normal Monokai has a browner background so I opted for something close to it. To be honest, and I should say this quietly.. I prefer light mode. I use it at work also, and if I wasn't making videos I'd probably never use a dark theme!

    • @Memer474
      @Memer474 10 місяців тому

      thanks man @@andrewhamelcodes712

  • @kennyroger22
    @kennyroger22 Рік тому

    Olá sou do Brasil..
    Parabéns pelas suas vídeos aulas..
    Gostaria de pedir uma vídeo aula ..
    Fazer um kart andando numa pista .
    Igual do jogo do Mario kart..
    Carrinho andando na pista ..pegando seu poderes e soltando ele ..
    Não existe nada sobre esse jogo no UA-cam..
    Você seria o primeiro..
    Desde já desejo sucesso 👊🏽

    • @andrewhamelcodes712
      @andrewhamelcodes712  10 місяців тому +1

      I love this idea. I have played a bit of F-ZERO 99 lately and was thinking about how I could create something similar. Let's see how the rest of the year goes!