Code Review: Saving Sedit Platform Game
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
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
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!
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
Code Review 👏 👏
The game looks amazing! Great video too, I always learn something new on this channel.
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.
Great game, great review. Lot's of genius solutions. Had a lot of laughs regarding the discord users helper tokens :-) Thank you.
Hooray!!! I'm Saved! :D
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.
I have a massive sheet so the art package can colour and shade them accurately more than anything else. I hate drawing!
@@javidx9 256 is much more drawing than 16 ^_^
@@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.
This more educational than any university course!!!! Thank you!!!
You are such a Genius :D , i love your creativity *Hypers*
Never thought I'd be watching a video of someone doing a code review, but here we are.
Another great video, Javidx9 as always keep up the good work.
Until next time All The Best From Speedy C
Cheers Speedy C!
@@javidx9 That's OK, I Always Look Forward To Your Video Content
No one:
Javidx9: I thought of doing something a little bit different
Quite interesting. Thanks~
what drawing app is that one with the pruple triangle logo?
Amazing game and amazing video as well.
Cheers buddy!
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!
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.
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.
@@stephenkamenar Ha, you've just fallen victim to my trap. Welcome to Hell, chief.
totally underrated
Is making games a good way to learn code or is it too advanced? Can you start with c++ as first language?
Professional
It will be fun to give something with pygame
As an engine like pixel engine u build using c++
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!!!
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.
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.
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!
its called hungarian notation
Did you use the platformer engine you've coded using the CGE?
edit: i just noticed: yes, yes you did
I did indeed!
@@javidx9 thank you
That discord-meta stuff is kinda funny
lol, its such a great, baffling, frustrating, caring, bewildering community. I love it! XD
thanks for your "unique" amazing content
Thanks Omar, I appreciate that!
That's an insane amount of stuff for seven days
A couple of afternoons he said ;) Genius Javid
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.
you just could make 8 sprites with blue highlights and one with pink block and just overlap them on the screen
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
Fireboy and Watergirl Unblocked on hudgames so cool ok ok good game i love it
Save the pharaoh
Lol, i'm prob more on the level of the workers that built the pyramid... maybe a bit lower lol :)
Proud to be Like #255 (almost 256)!!!
255 is better. is maximum in 8 bits (11111111) :-)
yeah it is
5:17 when you get a bootleg famiclone
Saving Sprite Sedit
Old Jon Snow
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.)
Would you recommend Rust to new hobbyists game developers who know very little C++? Do you have any general thoughts/experience with Rust?
No. No way. Rust is not really used for game development, so if you're new, I wouldn't recommend starting out with Rust.
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
I just coded my version on auto tile map with "Simple and Fast Multimedia Library" github.com/Wanfanel/Auto-Tilemap-with-SFML/
Nice. But that's not 'Code Review', it's 'Code View'.