Spritestacks - Pygame Tutorial

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

КОМЕНТАРІ • 57

  • @DaFluffyPotato
    @DaFluffyPotato  Рік тому +29

    accidentally recorded with my gain too high. oops.

    • @justinkim5692
      @justinkim5692 6 місяців тому +1

      The audio actually sounds better

  • @eboatwright_
    @eboatwright_ Рік тому +40

    This effect never gets old! It's so charming

  • @solstice_enigma
    @solstice_enigma Рік тому +8

    That is a super neat and simple little trick! I guess the hardest part of all of this is just making everything consistent.

  • @maybe_tankerguy05
    @maybe_tankerguy05 Рік тому +8

    This is a pretty cool effect. When I get to a point where I am able to make my dream project, I might add in spritestacking to give it a bit more of a unique look than a standard, 2d top down game.

  • @matheus5806
    @matheus5806 Рік тому +1

    Nice to see you exploring other genres. I really liked the aesthetics in this video, good shit

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

    Duuuuude this is amazing! I never knew what it was called but I accidentally did a lower form of this for my first game ever! We also had drawn all the maps with regular flat “brightness” and then added a “shadows” layer over top of the entire game so that the shadows looked like they covered moving objects dynamically lol.

  • @sbd2639
    @sbd2639 Рік тому +1

    I tried to make a car racing game before and used a free asset from itch but didn't realize the asset was meant to be used as spritestacks and just took the upper layer of the car and added rotation to make it turn which ended up looking very bad. I gave it a try after watching this video and sure enough, it looks 100x better :)

  • @zvisger
    @zvisger Рік тому +2

    :O I can't wait to watch this tonight!

    • @zvisger
      @zvisger Рік тому +1

      Ok so I watched it and this is awesome... idk why I never thought of this. Thanks Fluuff

  • @emperor8716
    @emperor8716 Рік тому +4

    this is crazy

  • @dslowcoder
    @dslowcoder Рік тому +5

    I love how it looks, you allways find ways of making better looking games with pygame, it's awesome. Btw, how did all end with pygame and pygame-ce??

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

    damn this looks great! i really want to try out this racing game when it is finished

  • @PaulHindt
    @PaulHindt Рік тому +4

    Your racing game reminds me of Codemasters' NES racing game called "Micro Machines", based on the toy cars from the 1990s of the same name. Have you ever seen that game? They rotate the car sprites in a way that looks very similar, albeit without sprite stacks. Also, your rotating background looks awesome, and is something that was not done in Micro Machines.

    • @DaFluffyPotato
      @DaFluffyPotato  Рік тому +2

      I only know the name because someone else said the same thing.

  • @quantum_hg3299
    @quantum_hg3299 Рік тому +2

    Really cool concept

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

    In a game like this with a locked isometric perspective it seems more efficient to just do the spritework in 3d to begin with, that way you're not wasting performance on pixels that will never be rendered (the inside of the car for example). Even for the backgrounds since you're not using parallax the result will be identical to predrawn sprites with a clever tiling system. Spritestacking only seems worthwhile if you're trying to do 3D with perspective.

    • @DaFluffyPotato
      @DaFluffyPotato  Рік тому +1

      You don't waste anything on the middle if you cache.

  • @red-52
    @red-52 11 місяців тому +1

    I use pg.RESIZABLE and pg.SCALED is there a reason why the other method is better?

    • @DaFluffyPotato
      @DaFluffyPotato  11 місяців тому

      SCALED is faster but is more difficult to make work nicely with RESIZABLE. Also, I started using that technique before SCALED was even a thing.

  • @novialriptide
    @novialriptide Рік тому +1

    5:24 looks trippy.. wow

  • @himitesolaymane
    @himitesolaymane Рік тому +1

    Can you do a tutorial about top down sprite rendering I have problems at ordering them correctly

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

    I think I first saw this on a 2kliksphillip video where he called them "dolley mixtures"

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

    pygame is a wrapper for sdl2, i dont understand why people hate pygame but love sdl2

  • @knut-olaihelgesen3608
    @knut-olaihelgesen3608 Рік тому +1

    Have you developed your own framework when using Pygame?

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

    Are the fences in this scene sprite stacked too?

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

    It looks like the spinning 3D rat meme xD

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

    for a bigger game wouldn't this be very cpu intensive rendering all of these images for a 3d model because if they're multiple different 3d sprites in a game it could be a lot?

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

      No, it's as fast as rendering a 2D tile if you cache properly.

    • @smosa605
      @smosa605 Рік тому +1

      @@DaFluffyPotato by cache do you mean iterations?

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

    Is there a trick to caching? Or do you just add layers you’ve already generated to a dictionary or array

    • @DaFluffyPotato
      @DaFluffyPotato  Рік тому +1

      I actually prerender the whole stack and store it based on angle

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

    I was wondering when someone would make a game with 2KliksPhillip's "dolly mixture" method. :D It looks great!

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

    I'd love to know what base resolution you are setting with your games?

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

      it varies. you can just run the games and check

  • @howezae6338
    @howezae6338 Рік тому +3

    Interesting concept! May I ask if you will ever be developing using a more efficient platform, say using C# or Java?

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

    Thanks, thats so cool, i’ve try this before but it was slow af.

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

    CUMAZINGGGGGGGGG!!!!!!!!!!

  • @TamerlanSerik-c9h
    @TamerlanSerik-c9h Рік тому

    coder space made the similiar stuf likes you but he used magica voxel to make stacked sprites))

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

    i been working on a same thing

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

    tutorial for caching!!

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

    Hey dude, I have learnt way too much from you for free. Do you have a separate payment link? I'd like to donate some cash privately, without commission being taken off. Any cashapp would do.

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

    Hi there guys

  • @majomajo36
    @majomajo36 Рік тому +2

    wait its online or its ai?

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

    wsg