{"type":"video","version":"1.0","provider_name":"Dailymotion","provider_url":"https:\/\/www.dailymotion.com","title":"\ud83c\udfae 25 in 1 Games 40KB Project","description":"40KB was the standard game size for NES cartridges back in the late 80s and early 90s.This 40KB Project was created as a personal challenge to test myself. I was able to fit 25 games into this 40KB file. These games were created in HTML5 and will work on almost any browser or operating system. Below is how it was accomplished.\ud83d\udcbe Link to code and games: https:\/\/github.com\/TheThornZ\/40KBWithout any form of compression, this project would be approximately 10MB.By swapping out graphics with emojis and drawing graphic shapes instead of using 256KB graphics, I saved an estimated 8,960KB. This reduced the project size to 140KB, with a size on disk of 116KB.After manually compressing the text by hand and using ChatGPT on larger games, I managed to reduce it to 69.5KB, with a size on disk of 104KB. This was achieved by removing all notation, shortening variable names, and eliminating unnecessary line breaks and indents. While this makes the code difficult to edit\/navigate, I will provide both the compressed and uncompressed versions.Finally, compressing it as a standard ZIP file resulted in a file size of 39.6KB, with a size on disk of 40KB. I could have reduced the size further using WinRAR, saving an additional 3KB, but I chose not to require extra software.\ud83e\udd16 If you enjoyed this video and want to support the channel, consider hitting that Super Thanks button! It really helps me keep making content like this, and I appreciate every bit of your support!Check out more videos youtube.com\/TheThorns & don't forget to like, subscribe & share.Chapters:00:00:00 About the project00:03:09 showcase of all 25 games00:12:23 Polygons and 3D shapes in HTML500:12:57 Games I didn't finish or include#computerscience #gaming #html5games #40kbproject #html5games #retrogaming #nesgames #gamecompression #browsergames #indiegamedev #html5dev #emojigames #floppydiskgames #gamedevelopment #microgames","author_name":"TheThorns","author_url":"https:\/\/www.dailymotion.com\/TheThorns","width":480,"height":269,"html":"<iframe frameborder=\"0\" width=\"480\" height=\"269\" src=\"https:\/\/geo.dailymotion.com\/player.html?video=xc20t2e&\" allowfullscreen allow=\"autoplay; fullscreen; picture-in-picture; web-share\"><\/iframe>","thumbnail_url":"https:\/\/s1.dmcdn.net\/v\/hSuKc1h52mW3B7L6X\/x720","thumbnail_width":1281,"thumbnail_height":720}