Drawing SPRITES in Raylib

Sdílet
Vložit
  • čas přidán 30. 06. 2024
  • Raylib has some very handy shape drawing functions, but most games will require the use of hand-made textures. Assuming you've bundled all your sprites together on an atlas, this video will help you to discover most of the Texture drawing functions in Raylib, and we get a little peak into how we might be able to animate these sprites. In a follow up video, we'll apply what's covered here to create animations in Raylib, and even later we'll figure out how we can animate a player as they move around.
    My video on the Apple Catch game:
    • Making the most COMMON...
    My video on the C Language:
    • C Language Overview
    My video on Tic-Tac-Toe with Raylib in C:
    • Making Tic-Tac-Toe in ...
    Chapters
    0:00 Loading a texture
    0:47 Basic texture drawing
    2:05 DrawTextureRec
    3:08 DrawTexturePro
    4:28 Cleaning up with define
    5:12 DrawTexturePro Rotation and Scaling
    5:33 Source manipulation
    6:46 Using a timer to "animate" the apple
    7:44 Conclusion

Komentáře • 14

  • @willianvinagre3338
    @willianvinagre3338 Před rokem +4

    Wow, you really deserve more views. You are a great explainer, the videos are easy to follow, it's neither too fast nor too slow. Your code is also really clean and simple.
    I love using raylib, and you've been doing the best tutorials on CZcams. Keep up with the good work!

  • @donttrusttheape
    @donttrusttheape Před rokem +4

    Seems a lot simpler then using SDL/SDL2, C for the win!

  • @orangejuice732
    @orangejuice732 Před rokem +4

    Great explainer. I was looking the other night on the cheat sheet for a way scale sprites too no avail. Thank you for this.

  • @The_Codemaster144k
    @The_Codemaster144k Před rokem +5

    These videos are so helpful you have no idea... People normally only talk about using C++ with raylib which imho is pretty much nothing the same with C. Thank you

    • @Almethese84
      @Almethese84 Před rokem +1

      I agree, best RayLib videos I have been able to find!

    • @gerardo.arroyo.s
      @gerardo.arroyo.s Před 3 měsíci

      c++ is c with classes

    • @Fletcher64
      @Fletcher64 Před 2 měsíci

      ​@@gerardo.arroyo.sif you barely know c++ then sure

  • @accountprincipale2293
    @accountprincipale2293 Před 8 měsíci +1

    man i hope you continue this project, it's really cool

    • @andrewhamelcodes712
      @andrewhamelcodes712  Před 8 měsíci +1

      That's the plan! The reason there hasn't been a video in a bit is because I've been building some tools to make making these videos easier. Typical, programmer writes code to enable being lazy..

  • @emilymontgomery9692
    @emilymontgomery9692 Před rokem +1

    This was so helpful! Thank you!

  • @nacnud_
    @nacnud_ Před rokem

    Good direct video and quick info. We'll done. Just consider the phrase "spazzing out like crazy". This isn't the 70s any more. Time to level up :)

  • @nedjiminaas1301
    @nedjiminaas1301 Před 11 měsíci +1

    can you make a 3d simple game engine using raylib and c++ or csharp please make a videos about it also your are my best and favorite youtuber ever

    • @andrewhamelcodes712
      @andrewhamelcodes712  Před 11 měsíci +1

      C++ is definitely much better suited to 3D than C! I still have quite a bit of C content in the pipeline but I do also use Raylib with C++ for some projects. We'll see some of that on the channel at some point!

    • @nedjiminaas1301
      @nedjiminaas1301 Před 11 měsíci

      @@andrewhamelcodes712 thank you