Code Review: Saving Sedit Platform Game

Sdílet
Vložit
  • čas přidán 31. 05. 2019
  • In this video I examine the construction and design decisions behind a fully finished platform game, aimed at the speed running community, combined with procedurally generated levels and exploration action.
    You can download and play it here: onelonecoder.itch.io/saving-s...
    Source: github.com/OneLoneCoder/Javid...
    CZcams: / javidx9
    / javidx9extra
    Discord: / discord
    Twitter: / javidx9
    Twitch: / javidx9
    GitHub: www.github.com/onelonecoder
    Patreon: / javidx9
    Homepage: www.onelonecoder.com
  • Věda a technologie

Komentáře • 64

  • @javidx9
    @javidx9  Před 5 lety +17

    Hello! Big thanks to MaGetzUb, Sedit, Brankec, Hopson & UglySwedishFish for being such good sports. Please consider checking their channels, linked below:
    Hopson has a great channel with all sorts of projects: czcams.com/channels/eQhZOvNKSBRU0Mdg7V44wA.html
    You can see UglySwedishFish's graphics engine projects here: czcams.com/channels/Z6kqME0wWAxoCy4LdrjldA.html
    Sedit also has some videos about his AI and graphics projects: czcams.com/channels/0WGoCiVQxMdPxZZkqFks1g.html
    Finally, because a nice chap on the other side of the world did me a favour recently, shout outs to czcams.com/channels/9bS8I2rNa33zMtuv_oPw_g.html

  • @seditt5146
    @seditt5146 Před 5 lety +48

    OMG, Ya'll want to hear the best part, I got about 3 days into the game jam and do not have an entry because guess what.... My computer crashed LMFAO!

  • @xaaf
    @xaaf Před 5 lety +9

    The Hopson token made me laugh so much. I love how you incorporated him! Really liked this code review video, so I'm hoping for another one :D

  • @beron_the_colossus
    @beron_the_colossus Před 5 lety +19

    Code Review 👏 👏

  • @nassav3
    @nassav3 Před 5 lety +1

    The game looks amazing! Great video too, I always learn something new on this channel.

  • @getrundelthd9807
    @getrundelthd9807 Před 5 lety +6

    You could also use a seed determined by the current time or date or let the player enter a seed and then add the functionality for showing the seed to the user for generating the same level over and over again.

  • @jsflood
    @jsflood Před 5 lety +3

    Great game, great review. Lot's of genius solutions. Had a lot of laughs regarding the discord users helper tokens :-) Thank you.

  • @seditt5146
    @seditt5146 Před 5 lety +8

    Hooray!!! I'm Saved! :D

  • @theboot100
    @theboot100 Před 5 lety +5

    Great game.
    I've managed to get it down to 15 sprites required for every angle possibility by using a custom bitmask look up table.
    There are 47 sprites to cover all possibilities however if you use the lookup table to add rotation to the pieces you can get away with 15 sprites on your sheet.

    • @javidx9
      @javidx9  Před 5 lety +1

      I have a massive sheet so the art package can colour and shade them accurately more than anything else. I hate drawing!

    • @Wanfanel
      @Wanfanel Před 5 lety

      @@javidx9 256 is much more drawing than 16 ^_^

    • @achtsekundenfurz7876
      @achtsekundenfurz7876 Před 3 lety

      @@javidx9 You did quite an excessive job on the wall sprites; instead of 256 sprites, 32 would have been enough.
      You had the following thing going on:
      0 1 2
      7 x 3
      6 5 4,
      x being the tile in question.
      If you had cut every tile in quarters, you'd have the following layout:
      0 0 1 1 2 2
      0 0 1 1 2 2
      7 7 x x 3 3
      7 7 x x 3 3
      6 6 5 5 4 4
      6 6 5 5 4 4
      As you can see, there are now only 3 rather than 8 neighbors affecting each quarter, e.g. 7 0 1 for the upper left part. That means you need only 8 different upper left parts, and likewise 8 of the other three. Even better, they're only 1/4 the data each, so you'd have saved 31/32 or roughly 97% of the image size.
      Speaking of file size: I'd switch to 7zip. It's usually slightly faster than zip and compresses much better (and not THAT slowly either), and decompression in LZMA (the default compression algorithm) takes much less RAM on the target machine, too.
      If you want to keep the zip file format: do you know Ken Silverman's Zip (kzip)? A brutally thorough zipper, and 100% format-compatible; sometimes it can shave more than 10% off! Free of charge, too.

  • @bluefal
    @bluefal Před 5 lety

    This more educational than any university course!!!! Thank you!!!

  • @littleRebell
    @littleRebell Před 4 lety

    You are such a Genius :D , i love your creativity *Hypers*

  • @LimitedWard
    @LimitedWard Před 4 lety +1

    Never thought I'd be watching a video of someone doing a code review, but here we are.

  • @speedyc88
    @speedyc88 Před 5 lety +1

    Another great video, Javidx9 as always keep up the good work.
    Until next time All The Best From Speedy C

    • @javidx9
      @javidx9  Před 5 lety

      Cheers Speedy C!

    • @speedyc88
      @speedyc88 Před 5 lety

      @@javidx9 That's OK, I Always Look Forward To Your Video Content

  • @francisco94457
    @francisco94457 Před 5 lety +8

    No one:
    Javidx9: I thought of doing something a little bit different

  • @tiho6817
    @tiho6817 Před 5 lety

    Quite interesting. Thanks~

  • @dreded7961
    @dreded7961 Před 3 lety

    what drawing app is that one with the pruple triangle logo?

  • @cumulonimbuscapillatus9312

    Amazing game and amazing video as well.

  • @andreinegru2070
    @andreinegru2070 Před 5 lety +2

    When will you return to the c++ console fps game? The last part of the series was about 2 years ago. Please make another episode!

  • @lonnybulldozer8426
    @lonnybulldozer8426 Před 5 lety +11

    How the f*** did you make this in 7 days? This would have been a top seller if it was released for the SNES awhile back. Wow, chief.

    • @stephenkamenar
      @stephenkamenar Před 5 lety +1

      How the f*** did this take you 7 days? This would have been a 1 day project if it was created using game maker. Wow, chief.

    • @lonnybulldozer8426
      @lonnybulldozer8426 Před 5 lety +7

      @@stephenkamenar Ha, you've just fallen victim to my trap. Welcome to Hell, chief.

  • @AI-ec2qb
    @AI-ec2qb Před 3 lety

    totally underrated

  • @simbobcrafts4843
    @simbobcrafts4843 Před 5 lety

    Is making games a good way to learn code or is it too advanced? Can you start with c++ as first language?

  • @mahmoudabdelsattar8860
    @mahmoudabdelsattar8860 Před 5 lety +1

    Professional

  • @mahmoudabdelsattar8860

    It will be fun to give something with pygame
    As an engine like pixel engine u build using c++

  • @AJSquirrel53
    @AJSquirrel53 Před 5 lety

    So can this video be viewed sort of like a part 2 to the Jario platform game? Or are you still planning on returning to that series? Thanks!!!

    • @javidx9
      @javidx9  Před 5 lety +1

      Thanks Austin, i guess in many ways yeah its Jario part 2. Ar some point i want to add enemy movements and patterns, and moving platforms in tilemaps, which was the intended part 2.

  • @amalirfan
    @amalirfan Před 3 lety

    Video idea: Slime mold simulation, Sebastian Lague had made one (using Unity), could PGE perform better? He used compute shaders, it looks amazing, even if you didn't make a video you should try it out.

  • @SaladeVerteMC
    @SaladeVerteMC Před 5 lety +2

    What is the name of this naming convention?
    Prefix an integer with "n" as "nLayerWidth" or a float with "f" as "fOffsetX" etc...
    I really like it!

    • @javidx9
      @javidx9  Před 5 lety +4

      its called hungarian notation

  • @iProgramInCpp
    @iProgramInCpp Před 5 lety +1

    Did you use the platformer engine you've coded using the CGE?
    edit: i just noticed: yes, yes you did

  • @sweetberries4611
    @sweetberries4611 Před 5 lety +1

    That discord-meta stuff is kinda funny

    • @javidx9
      @javidx9  Před 5 lety +1

      lol, its such a great, baffling, frustrating, caring, bewildering community. I love it! XD

  • @omarelkhatib150
    @omarelkhatib150 Před 5 lety +1

    thanks for your "unique" amazing content

    • @javidx9
      @javidx9  Před 5 lety

      Thanks Omar, I appreciate that!

  • @mycollegeshirt
    @mycollegeshirt Před 5 lety

    That's an insane amount of stuff for seven days

    • @fossegutten6579
      @fossegutten6579 Před 5 lety

      A couple of afternoons he said ;) Genius Javid

    • @javidx9
      @javidx9  Před 5 lety +1

      Lol to be fair, i already had the platforming code, maze generation code and path finding code to hand, it was mostly just gluing it all together.

  • @grevel1376
    @grevel1376 Před 4 lety

    you just could make 8 sprites with blue highlights and one with pink block and just overlap them on the screen

  • @jajwarehouse1
    @jajwarehouse1 Před 5 lety

    When you got to talking about the png files vs decompressed images, it made me think about Google recently open-sourcing the Binomial Basis universal texture format. Have you by chance looked into that file format?
    Google's Blog entry: opensource.googleblog.com/2019/05/google-and-binomial-partner-to-open.html
    Basis GitHub page: github.com/binomialLLC/basis_universal

  • @jamesl.fletcher53
    @jamesl.fletcher53 Před 4 lety

    Fireboy and Watergirl Unblocked on hudgames so cool ok ok good game i love it

  • @sweetberries4611
    @sweetberries4611 Před 5 lety +2

    Save the pharaoh

    • @seditt5146
      @seditt5146 Před 5 lety

      Lol, i'm prob more on the level of the workers that built the pyramid... maybe a bit lower lol :)

  • @harleyspeedthrust4013
    @harleyspeedthrust4013 Před 5 lety +2

    Proud to be Like #255 (almost 256)!!!

  • @brentboymebob8754
    @brentboymebob8754 Před 5 lety

    5:17 when you get a bootleg famiclone

  • @user-ec6kt2fg7m
    @user-ec6kt2fg7m Před 4 lety

    Saving Sprite Sedit

  • @Gabonic64
    @Gabonic64 Před 5 lety +1

    Old Jon Snow

  • @Icelink256
    @Icelink256 Před 4 lety

    My own game does something similar with auto-tiling, only it uses simple bitwise logic on the base tiles, to manipulate their graphics.
    Here's a chart that I created a while back, to show somebody how I did it:
    i.imgur.com/3iqOnfM.png
    (The strip of tiles at the bottom, shows how the tile graphics are stored, starting from 0.)

  • @iWouldWantSky
    @iWouldWantSky Před 5 lety

    Would you recommend Rust to new hobbyists game developers who know very little C++? Do you have any general thoughts/experience with Rust?

    • @lonnybulldozer8426
      @lonnybulldozer8426 Před 5 lety

      No. No way. Rust is not really used for game development, so if you're new, I wouldn't recommend starting out with Rust.

  • @Wanfanel
    @Wanfanel Před 5 lety +1

    Hello @javidx9, auto tilemaps can be more easy if you just take corners you check only for 4 bits not 8 and is only 15 combination to draw just like in this picture drive.google.com/file/d/10J4x-wfO4Ps8tEKNuMENfEhg8EEHN2_t/view?usp=sharing

    • @Wanfanel
      @Wanfanel Před 5 lety +1

      I just coded my version on auto tile map with "Simple and Fast Multimedia Library" github.com/Wanfanel/Auto-Tilemap-with-SFML/

  • @PetrPss
    @PetrPss Před 4 lety

    Nice. But that's not 'Code Review', it's 'Code View'.