Lighting in Pygame (Tutorial)

Поделиться
HTML-код
  • Опубликовано: 24 дек 2024

Комментарии • 64

  • @ernestas8176
    @ernestas8176 4 года назад +11

    Hey man, really cool tutorials. Now I know where I will go if I'm having a problem with python. Earned a new subscriber ^^

  • @cristianalbertostantic1854
    @cristianalbertostantic1854 4 года назад +23

    Why I can leave only 1 like? I want to leave 1000 of them

  • @Raphy084
    @Raphy084 4 года назад +49

    Still waiting for a tutorial for 2D water 😭

    • @_manana
      @_manana 3 года назад +5

      lol sin(n)

    • @langcao3544
      @langcao3544 4 месяца назад

      @@_mananalol springs

  • @dicember92
    @dicember92 4 года назад +4

    That’s Crazy... you really know everything about pygame.

  • @gauravbiyani350
    @gauravbiyani350 4 года назад +4

    Dude you are awesome!!!

  • @psspss9702
    @psspss9702 4 года назад +3

    i love your videos

  • @TMLA001
    @TMLA001 3 года назад +1

    I don't understand the particle loop (line 29 to 42)

  • @Scyther-ow8wy
    @Scyther-ow8wy 11 месяцев назад +1

    How would I go about implementing this for a flashlight?

    • @SDZeeAy
      @SDZeeAy Месяц назад

      Maybe draw a full black rectangle with alpha of something like 150, and then drawing a circle surface with a blend flag.

  • @uncertawn
    @uncertawn 4 месяца назад

    Thank you so much! Very helpful!

  • @overratedprogrammer
    @overratedprogrammer Год назад

    I forgot about this feature honestly. I never utilized it so that's probably why. I'm going to test the difference between this and a colored alpha and see

  • @basicallybrand
    @basicallybrand 2 года назад

    Thanks! I have never known about these hidden arguments

  • @Raja-iq5pn
    @Raja-iq5pn 4 года назад +2

    could this be done with polygons

  • @StormwreckerOfficial
    @StormwreckerOfficial 7 месяцев назад

    Great video! Very helpful! I notice that nobody teaches how to apply lighting effects to rectangles. For example, I have an image (i.e. of lava) and I need there to be a glow above the image. I want the glow to have a gradient (from opaque to transparent). Is there a simple, clean way to do this using just Pygame? Again, thanks for touching on the subject of lighting!

  • @venom_ftw9316
    @venom_ftw9316 4 года назад

    Just when I think you can't amaze me further

  • @rentonl
    @rentonl 2 года назад

    thank you so much. implemented into my projects.

  • @AllTheFishAreDead
    @AllTheFishAreDead 4 года назад +4

    Neat! What would you advise as the best way to have a radial drop off, multiple circles would give aliasing right? (and presumably be kinda slow?)

    • @AllTheFishAreDead
      @AllTheFishAreDead 4 года назад +1

      Or can you load a pre-prepared png with alpha gradient that would blend somehow?

    • @DaFluffyPotato
      @DaFluffyPotato  4 года назад +4

      You just use images with the alphas pre-set.

  • @wheelbegood
    @wheelbegood 4 года назад

    Your videos are just AWESOME !!!
    I'm really waiting for new content :)

  • @marcobizzaro3526
    @marcobizzaro3526 4 года назад +1

    What's the best way to support you?

    • @DaFluffyPotato
      @DaFluffyPotato  4 года назад +2

      Monetarily speaking, itch.io is the best option. A lot of my games are set to “pay what you want”, so you can donate there if you want.

  • @mrtz187
    @mrtz187 4 года назад +10

    Could you make a video about RayCasting in pygame. That would be awesome

    • @DaFluffyPotato
      @DaFluffyPotato  4 года назад +9

      I’m planning on it, but it’s a bit far out atm since I’m still covering some of the simpler stuff.

    • @mrtz187
      @mrtz187 4 года назад +1

      @@DaFluffyPotato allright, thanks for the reply.

    • @mrtz187
      @mrtz187 4 года назад

      @@-TheRealCozmik- in python/pygame ?!??!

    • @mrtz187
      @mrtz187 4 года назад

      @@-TheRealCozmik- than u should probably use a game Engine like Unity or Unreal

    • @jdnnnnnnn
      @jdnnnnnnn 3 года назад +1

      @@mrtz187 their entire series is based on pygame-

  • @Zuzelo
    @Zuzelo 4 года назад +1

    nice.

  • @josioh5725
    @josioh5725 3 года назад +1

    Thanks

  • @storm_pegasus9659
    @storm_pegasus9659 4 года назад +1

    Can I upload any pygame project in play store?

    • @DaFluffyPotato
      @DaFluffyPotato  4 года назад

      In theory yes, but I haven’t done it myself.

  • @drinkwater2982
    @drinkwater2982 4 года назад

    can you tell me how did you get that background?

  • @juanignaciosanchez2202
    @juanignaciosanchez2202 3 года назад

    Thanks Fluffy

  • @noobintheinternet
    @noobintheinternet 2 года назад

    Hello DaFluffyPotato! Can You make please your font larger on your IDE, because when I watch your videos from my phone, I can't see anything.

  • @storm_pegasus9659
    @storm_pegasus9659 4 года назад +1

    Does pygame games support on Android?

    • @DaFluffyPotato
      @DaFluffyPotato  4 года назад +1

      It’s possible to port it, but I never cared to and I haven’t looked into it.

    • @storm_pegasus9659
      @storm_pegasus9659 4 года назад

      @@DaFluffyPotato pygame or kivy which i should learn for Android game development?

    • @DaFluffyPotato
      @DaFluffyPotato  4 года назад +1

      Kivy is made for that stuff, so potentially Kivy unless you already like Pygame.

    • @rmr_md6834
      @rmr_md6834 4 года назад +1

      Well, now Pygame supports Mobile devices (Pygame v 2.0.0)

  • @rayleighslivers2187
    @rayleighslivers2187 4 года назад +1

    Can you use rgba for this?

  • @siete3d950
    @siete3d950 4 года назад +1

    off topic, you and youtuber Lex Fridman are almost indistinguishable if we talk about voice and pronunciation :)

    • @DaFluffyPotato
      @DaFluffyPotato  4 года назад

      My voice is definitely higher, but my pronunciation seems close

  • @themathforyou
    @themathforyou Год назад

    What editor do you use?

  • @voltifer5267
    @voltifer5267 3 года назад

    everything is awesome but i dont understand anything so i have to copy and paste the code from the link below

  • @jatinverma6759
    @jatinverma6759 4 года назад

    Can you make a video on pygame to exe conversion and pygame to apk conversion

    • @o_poky9359
      @o_poky9359 4 года назад

      Pygame to apk is impossible unless you use kivy

  • @bpm.coding
    @bpm.coding 4 года назад +1

    noice

  • @projectvibe1226
    @projectvibe1226 4 года назад

    it would be great if u make a video on inventory in pygame

    • @Jesseeeeee
      @Jesseeeeee 4 года назад +1

      thats not really pygame related u just have to use a list

    • @rmr_md6834
      @rmr_md6834 4 года назад +1

      Watch his video on "How to implement (almost) everything in Pygame"

  • @rmr_md6834
    @rmr_md6834 4 года назад +3

    Thank you for this tutorial. It is what I needed. And now that I know Pygame better, and generally Coding, I know how to implement ithis into my game. It really makes my game look more polished. I am so glad that there is at least someone that makes easy to understand Pygame tutorials. Without your tutorials, I would probably need the double amount (if not the triple,... amount) of what I needed until now. Thanks again for those tutorials. Keep doing this! :)

  • @bryantgrey6695
    @bryantgrey6695 4 года назад

    Good!!, very good!!.
    Awesomw job.
    Thank freund.👍🏻

  • @Kotarofumaaa
    @Kotarofumaaa 3 года назад

    You got my LIKE AND SUBSCRIBE ❤️❤️❤️ THANK YOU

  • @keremcd
    @keremcd 2 года назад +1

  • @beelz1042
    @beelz1042 4 года назад +1

    Who is the one person that disliked ?

  • @anotherone-e9c
    @anotherone-e9c 4 года назад

    Yas