Making Minecraft from scratch in 48 hours (NO GAME ENGINE)

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

Комментарии • 6 тыс.

  • @chirpyr6219
    @chirpyr6219 3 года назад +19396

    “And after about an hour of work I have a blank window” is the most C thing I’ve ever heard

    • @AmazingAmbro1
      @AmazingAmbro1 3 года назад +410

      But to me, doing the blocks with an infinite generated seed is the very C thing.

    • @JackMott
      @JackMott 3 года назад +409

      It is pretty hard in most languages, since few "serious" languages include any way to put a pixel on the screen. So either you use a library (not from scratch) or start making OS calls and takes some time. The languages that DO have a way to put pixels on a screen built in, usually it isn't sufficiently powerful to do 3d rendering.

    • @brainloading5543
      @brainloading5543 3 года назад +48

      @@JackMott do you consider opengl as a library

    • @JackMott
      @JackMott 3 года назад +160

      @@brainloading5543 Good question! Sure, so is the operating system api, and I suppose by convention when people say "From scratch" they don't usually mean "also the 3d api and operating system"

    • @quickstergamestutorialsgam3899
      @quickstergamestutorialsgam3899 3 года назад +43

      @@JackMott I could imagine the guy who made this video self coding his own graphics api as well.

  • @Smiley4883
    @Smiley4883 3 года назад +30648

    This guy is the reason coding interviews are so hard

    • @AceDeclan
      @AceDeclan 3 года назад +127

      What

    • @Sol4rOnYt
      @Sol4rOnYt 3 года назад +543

      @@AceDeclan yes

    • @nerfzinet
      @nerfzinet 3 года назад +255

      Maybe you're just bad at it.

    • @anuragparcha4483
      @anuragparcha4483 3 года назад +1247

      nah, coding interviews are hard because I get anxious as fuck and forget literally everything.

    • @Slgjgnz
      @Slgjgnz 3 года назад +412

      Nah coding interviews are hard because it's all theories and school algos that you don't ever need again in your job. But a book like Cracking the Coding Interview helps a lot.

  • @alekbase795
    @alekbase795 3 года назад +7091

    Seeing just how much code it took just to get a green square blew my mind.

    • @jesusmods1
      @jesusmods1 3 года назад +277

      Learning opengl in a nutshell

    • @chrispanov3026
      @chrispanov3026 3 года назад +312

      Don't worry. Making the rectangle is the hardest part. In terms of pure opengl code, there is not very much different concepts you will be using. From there on, it's mostly just abstractions.

    • @vasileandreicalin3143
      @vasileandreicalin3143 3 года назад +21

      @@ahmadayazamin3313 you need about 1100 f

    • @ABusFullaJewz
      @ABusFullaJewz 3 года назад +76

      OpenGL is absurdly verbose. That's not to say 3D rendering doesn't require a shit ton of code (it does), but OpenGL definitely at least doubles the number of lines for all the graphics rendering

    • @wesleymays1931
      @wesleymays1931 3 года назад +3

      OpenGL be like

  • @jackhawkins7285
    @jackhawkins7285 Год назад +1806

    More examples of why you should be paid on the hours of knowledge it took to learn how to do your job, not the hours spent doing your job. This man coded Minecraft in 12 hours, but to learn to code this way in C would have taken him thousands of hours. Huge respect.

    • @minmike2714
      @minmike2714 Год назад +57

      thats why theres higher positions in jobs

    • @ahall9839
      @ahall9839 Год назад +49

      Not only is this the most shallow, surface level take, but it's also how the world works anyway. Maybe you've heard about things like colleges, universities, apprenticeships, you know, things that help you learn a skill to get paid more?

    • @jackhawkins7285
      @jackhawkins7285 Год назад +35

      @@ahall9839 so if you asked me to make a game for you and I did it in 10 hours you would pay the same as you would i if it took me a year? If your answer is yes than you're the minority as many people would disagree. Maybe do research into areas such a freelance before making a stupid comment.

    • @ahall9839
      @ahall9839 Год назад +65

      @@jackhawkins7285 What? Are you 5? If you made a game that was worth anything in 10 hours you could sell it yourself. Wtf is this juvenile mindset? People are payed for what they produce. It just so happens that having skills means you produce more/better in less time. If no one wants your product, it doesn't matter how long you spent on it.

    • @jackhawkins7285
      @jackhawkins7285 Год назад +9

      @@ahall9839 when you grow up and learn how the world work get back to me. do your research before acting like you know what you talking about

  • @breadwithoutbutter1056
    @breadwithoutbutter1056 3 года назад +5161

    "rome wasn't built in a day" but Minecraft was built in two.

    • @Vvopat96
      @Vvopat96 3 года назад +76

      notch wasn't really that genius, simple game, good luck and good idea

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

      Damn that was a nice one lol

    • @LodIstHier
      @LodIstHier 3 года назад +3

      Roma comparata con un gioco, mi sento offeso.

    • @techteamanimations4251
      @techteamanimations4251 3 года назад +26

      @@Vvopat96 I mean the game was made in 2009 so ye

    • @prcr364
      @prcr364 3 года назад +28

      @@Vvopat96 Inspired by infiniminer, he kept updating it with great ideas and it became well known.

  • @bezlon7332
    @bezlon7332 3 года назад +5735

    non programmers can’t even start to comprehend how hard this is and how much pure talent and skill you need to do this. respect.

    • @itsjosh1509
      @itsjosh1509 2 года назад +58

      you know ive tried to do programming until i realized how hard it is but i dont know that this is hella hard to do

    • @AlexandrBorschchev
      @AlexandrBorschchev 2 года назад +299

      its not about talent or how hard it is, no such thing as natural ability. you only need lots of experience and knowledge to make something great like this.

    • @valelelentin
      @valelelentin 2 года назад +153

      Talent, no. Hardwork, yeah

    • @DNAnielsama
      @DNAnielsama 2 года назад +38

      I'm a programmer and I can only speculate how hard this is 😂😂

    • @sis4212
      @sis4212 2 года назад +23

      @@AlexandrBorschchev Only someone with natural ability says this, its cute

  • @plantarise8284
    @plantarise8284 3 года назад +6326

    I can smell the countless hours of work he invested throughout his life to achieve something like this in 12 hours. Really inspiring

    • @keanestewart4837
      @keanestewart4837 3 года назад +13

      how does one putted ?

    • @samuelwolfe8269
      @samuelwolfe8269 3 года назад +22

      @@keanestewart4837 was wondering this myself

    • @alexander53
      @alexander53 2 года назад +30

      @@ebush he said 12 hours in the video

    • @rue6407
      @rue6407 2 года назад +6

      @@JohanSimonsson ok?

    • @an77h
      @an77h 2 года назад +5

      @@JohanSimonsson 💀💀 o...ok

  • @melc311
    @melc311 2 года назад +3244

    This kinda highlights how good of a programmer Notch actually was when the made Minecraft in Java.

    • @angy1717
      @angy1717 Год назад +45

      @@xxgamerhdxx898 he legit said that? can u read

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

      @@xxgamerhdxx898 You illiterate?

    • @Logan_Neasbitt
      @Logan_Neasbitt Год назад +31

      @@angy1717 bro is actually silly

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

      @@xxgamerhdxx898 r u dumb?

    • @kotovich24
      @kotovich24 Год назад +24

      Notch used the Infiniminer source code

  • @midgetsow
    @midgetsow 3 года назад +6203

    Dear my fellow depressed coders/game developers, the takeaway here is that despite how clearly skilled and experienced he is, he still encountered several issues and learned a lot while doing this project. So don't feel discouraged if you encounter setbacks, and always be ready to learn.
    *Heavy sigh*

    • @joeman123964
      @joeman123964 3 года назад +198

      agreed...i spent like 2 hours making an inventory system on unity, then realized i need to completely restart since there was no way to determine if the item is stackable or how to equip certain items. 😆 definitely gonna make it work tomorrow

    • @plebisMaximus
      @plebisMaximus 3 года назад +55

      @@joeman123964 Did you get it to work?

    • @joeman123964
      @joeman123964 3 года назад +131

      @@plebisMaximus yeah it works great!

    • @plebisMaximus
      @plebisMaximus 3 года назад +71

      @@joeman123964 Congrats on that, mate!

    • @egg-iu3fe
      @egg-iu3fe 3 года назад +96

      I just started coding this year and I was watching this video like wtf does any of this mean. It looks like an alien language to me.

  • @leonardodias1037
    @leonardodias1037 3 года назад +5148

    being a programmer for 4 years, professionally, i feel like a failure after watching this
    damn

    • @lucasburford7881
      @lucasburford7881 3 года назад +352

      The Imposter Syndrome is real :')

    • @thedoublehelix5661
      @thedoublehelix5661 3 года назад +166

      Just take some time to learn c and open gl. Honestly shouldn't take more than 6 months to make something like this.

    • @UndregoGrey
      @UndregoGrey 3 года назад +71

      I tend to think the same thing sometimes. But any skill can be learnt. Never Give UP. you have 16 Years to go to becoming a Master Coder

    • @thedoublehelix5661
      @thedoublehelix5661 3 года назад +20

      @@Kevin-rk4qu isn't it 8 hours? Also c and the math isn't that bad to learn. 1 hour a day is more than enough

    • @thedoublehelix5661
      @thedoublehelix5661 3 года назад +15

      @@Kevin-rk4qu you should watch blackpenredpen if you're struggling with calculus

  • @galanonim4936
    @galanonim4936 3 года назад +5131

    I bet that someone is watching this and thinking:
    „ C is too easy, im going to write it in pure Assembly ''

    • @filiphron3147
      @filiphron3147 3 года назад +114

      No but yes.

    • @TheTiredFox07
      @TheTiredFox07 3 года назад +795

      Assembly is too easy, I'm going to write it in pure Binary.

    • @linkdx7079
      @linkdx7079 3 года назад +517

      Binary too easy, I'm going to write in a paper

    • @ultrabass838
      @ultrabass838 3 года назад +317

      @@linkdx7079 Paper is too easy, I’ll do it in O2

    • @zux128
      @zux128 3 года назад +357

      @@OneTwoThreeFour56 Void is too easy, I'll write it in

  • @chonkydabear4924
    @chonkydabear4924 2 года назад +939

    If this man can make minecraft in 48 hours then theres no reason mojang can't add firefiles

    • @KaMeR1337
      @KaMeR1337 Год назад +22

      that is just some basic minecraft without any features and probably lots of bugs and no multiplayer, still need lots of hours of work lol

    • @slokxoxo
      @slokxoxo Год назад +155

      @@KaMeR1337You really underestimate Mojang. Theres 600 developers there. They are able to make fireflies

    • @likefakk3524
      @likefakk3524 Год назад +25

      ​@@KaMeR1337adding something to a game is easier than making something from scratch. That's why modding is popular

    • @awesomeredpandax2267
      @awesomeredpandax2267 Год назад +9

      ⁠@@slokxoxoI imagine you have no coding experience let alone know how to coordinate 600 developers

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

      lots of bugs but no fireflies?@@KaMeR1337

  • @china0018
    @china0018 3 года назад +12180

    "Mom can I buy minecraft?"
    "No"
    "Fine. I'll do it myself."

    • @boci8829
      @boci8829 3 года назад +50

      🤣

    • @yeozdemir75
      @yeozdemir75 3 года назад +70

      you copied my damn comment.

    • @hauntahex
      @hauntahex 3 года назад +59

      @@yeozdemir75 no one gives a shit

    • @liability3960
      @liability3960 3 года назад +27

      just pirate it tho

    • @gone4701
      @gone4701 3 года назад +21

      YigitTheGeek made this comment 11 months ago. Could be a coincidence though.

  • @Dezomm
    @Dezomm 3 года назад +1822

    I'm currently working on a master's degree in computer science and I highly doubt I could do something like this at my current level AT ALL, let alone in 48 hours. Well done mate

    • @Akalos1
      @Akalos1 3 года назад +210

      That's because school does next to nothing for you. The only way to become proficient is to actually code. Masters degrees in particular are a huge waste of time; there is no comparison in terms of skill level when comparing someone who was coding for 5 years versus someone who was going to school to learn to code for five years. The one thing I've seen college grads have an advantage on is *sometimes* understanding 3 dimensional calculus and more often a better understanding of data structures and when to use them (although that usually becomes "when to use hashmap").
      The big takeaway is you don't actually go to school to learn to code: you go to school to learn to college/university. You learn theory and become a "computer scientist" instead of a software engineer. The amount of code people who have wasted their time at school have actually put out is next to nothing.
      A highschooler can be taught to code at a professional level, especially if he's being mentored by the previous generation of engineers; college will get you fired and keep you away from high paying jobs if you treat it as anything other than a ticket past the hr firewall.

    • @eeeesyywuwiz2836
      @eeeesyywuwiz2836 3 года назад +48

      @@Akalos1 Well it could be useful for your resume

    • @DigitalViscosity
      @DigitalViscosity 3 года назад +99

      I remember when I went to school for computer science. I had more skill than anyone there because I live and breathe code since 1990. People going to school for it limit their exposure to programming to only classroom learning. However, programming requires a lot more than that, it requires one to learn how to use the tools given to solve a grand problem. One of the issues I see is schools focus too much on OOP design that takes the user out of problem solving and more on how to think abstractly or design patterns(ie. the terrible software engineering class). I remember all my projects were so well written and unique that my professors didn't believe or trust my abilities at first, until my senior capstone project that they saw me design and implement over the course of the semester. To get to this level is going to take more than just what you do in school or at work try working on projects that will build your skill overtime.

    • @gabriela.ts_
      @gabriela.ts_ 3 года назад +3

      @@Akalos1 that's exactly what I think

    • @jayit6851
      @jayit6851 3 года назад +18

      @@eeeesyywuwiz2836 I mean depends on the job. When it comes down to a regular programming job they could give a rats ass if you have a master's if you can't code. If he's going into computer science research then yes it would be very helpful

  • @Omnicide101
    @Omnicide101 3 года назад +2145

    "Every other guy on youtube used some kind of cheat like pre-existing useful things, so I destroyed spacetime and created a brand new reality"

    • @Ludifant
      @Ludifant 3 года назад +20

      And imported a bunch of stuff from our reality and bwammm.. 1.5 billion years later...

    • @t3to_i554
      @t3to_i554 3 года назад +2

      jup he took there honour in slapped it to the bare ground XD

    • @robertstrickland9722
      @robertstrickland9722 3 года назад +17

      He accuses people of being cheaters then literally says, "Thankfully I have a library called GLFW, that does all the heavy lifting for me"... completely negates what he is accusing people of lol

    • @danallan8526
      @danallan8526 3 года назад +24

      @@robertstrickland9722 It seems to me that he didn't set out with an absolute goal like doing it without using the work of others at all. More like he just went a level deeper than the others. I mean otherwise you would have to not use any C libraries not made by yourself which would make this take far longer (if possible at all). Then you could complain that he's even using C in the first place, which is higher-level than x86 (or whatever his architecture is) assembly. Then you could say that all the instructions in assembly are machine opcodes and you're using work done by the developers of assembly for your architecture. All right then, "making Minecraft in machine language". But wait, you will also invariably be making system calls made by the developers of your operating system and thus you have to write your own. What about the kernel? Even if you write your own kernel, you're still using a CPU (as well as peripherals) with an architecture made by others. So in the end, if you don't want to use the work of others at all, you will have to make your own CPU, with its own architecture, from scratch, mining the materials for the transistors out of the dirt with no tools. In other words, you would have to play IRL Minecraft.
      I'm evidently not one to speak loudly about how seriously other people need to be taken but I think "not using shortcuts" was more of a tongue-in-cheek statement.

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

      @@danallan8526 or, you know, just use the os API and an IDE.

  • @4g0ttn45
    @4g0ttn45 Год назад +106

    8:40 "the chunks are rendered in the wrong order so i have to .." for me as an absolute programming beginner in my first semester in informatics the way of thinking and actually realizing what the problem is amazes me so much. great video !!

  • @adrian8443
    @adrian8443 3 года назад +2055

    and he didn't open stack overflow once

    • @Specifix5
      @Specifix5 3 года назад +185

      he’s God tier already.

    • @YeetDisDude
      @YeetDisDude 3 года назад +133

      Plot twist: he opened stack overflow on his phone or something

    • @InfinityBS
      @InfinityBS 3 года назад +2

      @@retro9293 what kind of language requires you o search that up?

    • @retro9293
      @retro9293 3 года назад +26

      @@InfinityBS come on man! it was a joke lol

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

      @@retro9293 oh ok

  • @jnoded
    @jnoded 3 года назад +1969

    You know that shit gonna go serious when he says "shortcuts like languages with classes"

    • @ddd21465
      @ddd21465 3 года назад +104

      Next step is to do it in assembly or binary :)

    • @franciscofarias6385
      @franciscofarias6385 3 года назад +13

      Which isn't a big deal, if your code is supposed to be used during 2 days only

    • @13thk
      @13thk 3 года назад +8

      @@ddd21465 After that on paper, then in O2, then in void, and then in

    • @xenizs9112
      @xenizs9112 3 года назад +23

      Classes, OOP and so are just a programming language feature, an actual shortcut could be considered as a game engine, and frameworks, libraries etc.

    • @jnoded
      @jnoded 3 года назад +37

      @@xenizs9112 I mean, classes seems to me as basic thing as variables now. So it sounds crazy to make game without classes and OOP

  • @cosmic4297
    @cosmic4297 3 года назад +1645

    Him: this wasn’t to hard
    Me: tf I struggle to use unity

    • @Atomx1j
      @Atomx1j 3 года назад +7

      LOL

    • @getsomehelp6261
      @getsomehelp6261 3 года назад +7

      me who doesn't have unity: guess ill die

    • @danioc8078
      @danioc8078 3 года назад +3

      same, none of the mouselook tutorials i find work.

    • @ABusFullaJewz
      @ABusFullaJewz 3 года назад +34

      Me getting compilation errors on line 84 of my 13 line program

    • @malachirasheed
      @malachirasheed 3 года назад +7

      @@strilx5277 i just wished unity was as easy as RobloxStudio to script / Handle know what i mean?

  • @vinudaliyanage3069
    @vinudaliyanage3069 Год назад +624

    You know it's insane when he said, "I decided to write my Minecraft clone in C".

    • @AnoNym-zi5ty
      @AnoNym-zi5ty 5 месяцев назад +10

      He still used tons of libs.

    • @eneadon6592
      @eneadon6592 5 месяцев назад +28

      @@AnoNym-zi5tyHe still wrote it in C? Tf? You can only go like 1-2 levels lower in terms of languages

    • @javauseronline
      @javauseronline 4 месяца назад +2

      @@eneadon6592 damn, how much experience does it take to do something like this?

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

      @@eneadon6592your missing the point, his entire rendering system is built strictly off the OpenGL library

    • @ns2304
      @ns2304 3 месяца назад +5

      @@AnoNym-zi5ty Reckon the middle ground here is that he clearly understood what path to take and how to get to his goal. Guys obviously familiar with making an openGL game on C, to say the least xD

  • @safdaboss8645
    @safdaboss8645 3 года назад +1444

    My man is insane. First, he makes google developers look silly, next, he put copper into his version, and copper was announced to be in minecraft AFTER this video

    • @linuxsbc
      @linuxsbc 3 года назад +50

      And he tried to make mountain biomes.

    • @arnox4554
      @arnox4554 3 года назад +47

      It's not hard at all to add an ore into MC. What is hard though is deciding how that ore should be valuable and if it should even be in the game in the first place.

    • @Prince_-vu4wu
      @Prince_-vu4wu 3 года назад +8

      @@arnox4554 while that might be true loads of mods have added copper ore and placed it well enough around iron tier but gives you more options within the mod along with people wanting more ores in the games and more blocks, Minecraft does need constantly a new influx of new blocks and ores to keep the game fresh

    • @arnox4554
      @arnox4554 3 года назад +25

      @@Prince_-vu4wu Yeah but it's very different when you're working on the actual main game itself where your changes will not just be permanently incorporated into all MC games (without mods of course), but also will be incorporated in all future versions of the game.

    • @Prince_-vu4wu
      @Prince_-vu4wu 3 года назад +1

      @@arnox4554 true but it's something the community has wanted for a while plus it's adding new varients of blocks which can bring a lot of new fun things and i know a lot of people are really hyped for it being added only thing i'm not happy for is wanting to cry while in caves more from getting jump scared

  • @PastorSkeptic
    @PastorSkeptic 3 года назад +1654

    "There's always somebody who's better than you."

    • @InfinityBS
      @InfinityBS 3 года назад +27

      So there’s someone better than this guy?

    • @Monsizr
      @Monsizr 3 года назад +29

      @@InfinityBS yes

    • @Anto-xh5vn
      @Anto-xh5vn 3 года назад +3

      @@Monsizr name

    • @Monsizr
      @Monsizr 3 года назад +3

      @@Anto-xh5vn idk

    • @spookyleo2589
      @spookyleo2589 3 года назад +16

      @@Monsizr he is the one on top of the piramid

  • @MrOgone4ek
    @MrOgone4ek 3 года назад +2875

    this is the best minecraft clone of those that i have ever seen

  • @sorprenant9106
    @sorprenant9106 Год назад +99

    Im in my first year of university as CS major, and I'm learning C/C++. This video blows my mind. Super impressive.

    • @DOGMA20051
      @DOGMA20051 8 месяцев назад

      I tried to learn c++ a little while ago and man that was complicated i couldnt even get past setting it up idk how people do it

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

      ​@@DOGMA20051learn C instead it's a billion times better

    • @firemonkey1015
      @firemonkey1015 6 месяцев назад

      Same except I’m learning Java, finished my first year a few days ago. Barely understand what’s going on in this video lol

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

      Just checking weather u still sticking with c/c++ or switched to any other lang??

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

      @@dharmadeepmadisetty3569 I'm still with it

  • @ArizonaJewell
    @ArizonaJewell 3 года назад +973

    I’m currently in college pursuing my bachelor’s degree in information technology with a concentration in database technology & programming. This guy’s skill level blows my mind. Not only did he code it in C, not only did he not use an engine, but he also coded it in 2 DAYS. Meanwhile I’m still learning python 😭

    • @sneakycheeky531
      @sneakycheeky531 3 года назад +22

      EW python

    • @sneakycheeky531
      @sneakycheeky531 3 года назад +7

      @@ArizonaJewell lets not discuss PHP lol. also did you begin to get into programming before or after you heard about python

    • @sergioenriquediazortiz5131
      @sergioenriquediazortiz5131 3 года назад +55

      @@sneakycheeky531 you are junior programmer right?

    • @sneakycheeky531
      @sneakycheeky531 3 года назад +3

      @@sergioenriquediazortiz5131 ive been programming for like 8 weeks so I'm well past junior. im late mid

    • @sergioenriquediazortiz5131
      @sergioenriquediazortiz5131 3 года назад +97

      @@sneakycheeky531 are you kidding me? ._:

  • @kenneth6965
    @kenneth6965 3 года назад +1072

    As a Software Engineer student, I am intimidated. This guy is an absolute coding monster with all that knowledge.

    • @jeffreyd2564
      @jeffreyd2564 Год назад +33

      Hey I am also a software engineer focus majoring in computer science, I know this comment was a year ago but hope your doing well!!!

    • @teaser6089
      @teaser6089 Год назад +14

      Me too, really interested to try this out in a more comfortable language like C#, but god damn that math is dounting and I am usually not scared of math, but damn Vector math is annoying af haha

    • @ahahahhehg-zk6kt
      @ahahahhehg-zk6kt Год назад +4

      Fr, all of this just feels overwhelming right now

    • @Ascentyon
      @Ascentyon Год назад +32

      As a software engineer with 10 years of experience, some of it spent leading teams... I am intimidated.

    • @BobrLovr
      @BobrLovr Год назад +4

      Do NOT do this with a garbage collected , JIT language.
      I mean notch did. But he's different

  • @dailyasbaily6798
    @dailyasbaily6798 4 года назад +7760

    Kid: mom can you buy me minecraft?
    Mom: NO
    Kid: *Builds his own minecraft

    • @Supervisor360
      @Supervisor360 4 года назад +73

      You mean
      Karen: NO

    • @drawingmaster8187
      @drawingmaster8187 4 года назад +40

      Mom: :0

    • @Junior-ul6ic
      @Junior-ul6ic 4 года назад +129

      @@Supervisor360 or maybe they just don’t have the money man :(

    • @astralviperyt2985
      @astralviperyt2985 3 года назад +23

      And then she blows up his pc XD

    • @shadowplayz8896
      @shadowplayz8896 3 года назад +43

      Me : MOM BUY ME MINECRAFT OR ELSE
      Mom : NONONONONONONO!!!!!
      Kid : *He hacked minecraft and made it free*
      10 months later
      Mom : how did you have minecraft?!
      Kid : I hacked minecraft
      lol

  • @aGoodDisguise
    @aGoodDisguise 7 месяцев назад +10

    Bro needed a project for his resume FAST

  • @PocketQuadsOnly
    @PocketQuadsOnly 4 года назад +1572

    That you managed to do that without a game engine within 2 days blows my mind.
    Awesome video.

    • @KRYMauL
      @KRYMauL 4 года назад +52

      Make it without a game engine isn’t that hard he did it without object oriented and with a custom compiler

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

      Epic man go to src the main.c is right there. If anything you’re a fucktard for not knowing how to use git clone

    • @pendergastj
      @pendergastj 4 года назад +47

      @@KRYMauL Implying Object Oriented Programming improves productivity.

    • @KRYMauL
      @KRYMauL 4 года назад +17

      @@pendergastj Actually class based programming improves productivity because it allows you to have inheritance.

    • @pendergastj
      @pendergastj 4 года назад +38

      ​@@KRYMauL Great then you have to keep up with an ever growing mountain of virtual functions and your code begins to slow down as the vtables takes up your cache which makes your program slow.

  • @Glomly
    @Glomly 3 года назад +1606

    I spent a whole week 12 hours a day learning opengl , glfw, c++ to render one simple textured cube and understand the basics of render pipeline. This guy made a whole game in 48 hours. That makes me feel the most slow-brained person in the world lol

    • @mysingingmonstersfan1023
      @mysingingmonstersfan1023 3 года назад +48

      im still using scratch and gmm2 dnd so

    • @mysingingmonstersfan1023
      @mysingingmonstersfan1023 3 года назад +27

      its been 4 years

    • @OrangeDied
      @OrangeDied 3 года назад +144

      he probably already knew all of that, that's still pretty impressive considering all you learned!

    • @nikkiofthevalley
      @nikkiofthevalley 3 года назад +17

      A week to learn C++? How!? (OpenGL/GLFW is simple enough after you learn C++, so I'm not counting that)

    • @ahmedifhaam7266
      @ahmedifhaam7266 2 года назад +49

      @@nikkiofthevalley i think he meant, learning extra C++ stuff related to the library, not the fundamentals of the language

  • @helloimalexander
    @helloimalexander 3 года назад +749

    “And of course, the next thing to do...”
    Me (not a programmer): Of course!

  • @thenewsonatrain
    @thenewsonatrain Год назад +15

    bro this is INCREDIBLE! even mojang took shortcuts and still took years to make the game we know and love; you made it in 48hrs!

    • @Goalatio
      @Goalatio 5 месяцев назад +1

      They also have a lot more features than just flying around and generating chunks

    • @a.andrade345
      @a.andrade345 3 месяца назад

      First version of minecrat was built in 6 days by Notch. After Microsoft acquistion, the development is slow af

    • @StitchSprites
      @StitchSprites 15 дней назад

      Its a lot easier to make a clone of a game than come up with it entirely from scratch

  • @codegeek98
    @codegeek98 3 года назад +380

    [0:00] Intro & Env
    [0:34] GLFW & CGLM
    [1:40] Texture Atlas
    [2:30] Blocks & Occlusion/Culling
    [3:37] Chunk Loading
    [4:14] Block-breaking
    [5:02] World gen
    [5:56] "Lighting"
    [6:31] Water & Glass
    [10:35] Trees
    [12:00] Animated Textures
    [12:51] Flowers
    [13:26] Ore
    [14:03] Distance Fog
    [14:38] Liquids
    [15:05] "Biomes"
    [15:24] Building
    [16:12] Outro

  • @BGVassil
    @BGVassil 3 года назад +439

    I'm a software engineer on minecraft at work and I love that YT recommened this to me. I'm seeing a bunch of familiar things :)

  • @Nicolas-L-F
    @Nicolas-L-F 3 года назад +232

    When he mentioned "things like classes" I realized this video was special

  • @lunarleaf
    @lunarleaf 2 года назад +162

    as a c# programmer my brain cant even comprehend how difficult this is, i cant even use C++ to make games let alone doing it in plain ol' C and openGL, huge props to u

    • @Bluentomion
      @Bluentomion 2 года назад +6

      same(i do c# in unity ,lua and some python) ,i hope i could reach this when i grow up

    • @azir8930
      @azir8930 Год назад +4

      I program in C# but now I am going through CS50 course. I can tell that C is not that bad. I would even say it is fun to learn because it feels like you are coding everything by yourself, and additionaly can better understand computer memory and low level set of things. I recommend to give it a try.

    • @Anonymous-fr2op
      @Anonymous-fr2op 8 месяцев назад

      ​@@azir8930coding in C is good and all. But the reason it seems so is cuz you only see others code. When you do it yourself, you would realize what pain in the ass it actually is. You have to be very cautious, one tiny carelessness could take away your sleep

    • @TheNew1234_y
      @TheNew1234_y 5 месяцев назад +1

      C aint that bad, its just that people dont use it anymore so theres not that much of rich documentation with C and OpenGL

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

      @@TheNew1234_y”people don’t use C anymore” lol excuse me what?

  • @mokongthe3856
    @mokongthe3856 3 года назад +531

    8:13 You know he's going at the right direction, when he get the exact graphic-glitch from Minecraft time to time.

  • @guard13007
    @guard13007 3 года назад +1542

    I love this, and I especially love how you start with "I don't need all that helpful stuff." followed by immediately including libraries. :P

    • @noop9k
      @noop9k 3 года назад +361

      “These people are using game engines, I’ll do it from scratch”
      * imports graphics library
      * imports 3D math library

    • @Ludifant
      @Ludifant 3 года назад +156

      Doing it from scratch would mean creating your own chips, since these days you get floating points baked into the chip. Do it on a c-64 in machine language, no assembly, just numbers that you poke into memory like we did in the old days and you will impress me :)

    • @Maric18
      @Maric18 3 года назад +92

      there is a difference in impressiveness between buying your own car and customizing it and then driving it places
      and ordering parts and building the car yourself first before driving it places
      "well he said he isn't gonna use a pre built car, but immediately ordered parts, lol"

    • @noop9k
      @noop9k 3 года назад +51

      @@Maric18 My point was that, say, Unity doesn’t actually help much with creating a Minecraft-like game either and you still need to write most of the code he did.
      Using C equals showing off. You are writing the same but way more verbose code than what you would write in C++ or C#. You would still generate and sort meshes, write shaders and load textures, but with less time spent on plumbing.
      If you bothered enough to code mesh generators in C, could just a as well write your own vector lib with SSE assembly. Kinda pointless, but about as pointless as using C for personal gamedev when C++ exists. Not necessarily “modern C++”, most of which is cancer.

    • @jonswe5753
      @jonswe5753 3 года назад +84

      ”I don't need all that helpful stuff”
      *Procedes to use a programming language
      Like just write it in binary, ones and zeroes, language is a shortcut

  • @hatemsaadallah8532
    @hatemsaadallah8532 4 года назад +1502

    This video is legendary. I've seen a lot, but this. is. BRILLIANT!

  • @ctrl_benny
    @ctrl_benny 2 года назад +75

    I would like to see you continue onto this. It would be cool to see how much farther you could get with another 48 hours. I would definitly watch it.

  • @liampugh4705
    @liampugh4705 3 года назад +133

    I'm fairly new to programming, my head just exploded.
    My day typically goes - code for an 10mins, research how to do things for 3 hours, bug fix for 6 hours.
    I didn't think this sort of thing was possible

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

      From my own experience I can tell you it will get less pretty quickly.
      Imo this only stays high when you work with big frameworks as there is a load of stuff you can't possibly know.
      In the video he used nearly no librarys. This makes it that there isn't so much stuff that he needs to take "care" of. When you do a couple of projects like that, you'll know your stuff.

    • @egg-iu3fe
      @egg-iu3fe 3 года назад +27

      I started a computer science degree this year. The only part of this video I understood was the hello world part

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

      @@egg-iu3fe In my first semster I practically only needed to know how to print "Goodbye World". So I think you'll pass.

    • @Eirenband
      @Eirenband 2 года назад +2

      Not shown in video: The tens of thousands of hours he spent previously researching problems. You'll get there.

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

      @@egg-iu3fe Working toward mine and did a programming class last semester (learned Java first and only one I have learned thus far)
      I am right there with you

  • @WinterNox
    @WinterNox 3 года назад +1891

    After 3 years: "I'm gonna write this using binary numbers for better fps"

    • @alexanderoguzie-ibeh2053
      @alexanderoguzie-ibeh2053 3 года назад +2

      😹😹😹😹😹😹😹😹😹😹😹😹

    • @mathiasensimon
      @mathiasensimon 3 года назад +63

      If we talk theoretically it would technically be worse to write it manually cause you don't know all of the shortcuts and compression a compiler does. So it would work worse

    • @WinterNox
      @WinterNox 3 года назад +34

      @@mathiasensimon He does know (I was joking, that he is now so genius that he can code in binary, so he does know all these things and it would work fine)

    • @RobotronSage
      @RobotronSage 3 года назад +18

      Honestly, if most game developers actually optimised their code things would be a lot better

    • @Subject97
      @Subject97 3 года назад +17

      @@RobotronSage as someone with a potato pc I completely agree with that. The problem is that most of the time when you optimize something you get 1 fps more. For example, Minecraft java edition is slow af, but it's actually well optimized, Minecraft bedrock edition is faster because C++ is faster than java

  • @BEN-ys6gu
    @BEN-ys6gu 2 года назад +172

    As someone who programmed in C and also tried to make a 3D engine, I think this man has superpowers. I don't understand how it's possible to write so much C code on such hard topics this easily, I feel like this should be illegal.

    • @vinudaliyanage3069
      @vinudaliyanage3069 Год назад +42

      I can't believe that he wrote so much code in C in just 48 hours with no big errors or memory leaks / segfaults.

    • @Taletad
      @Taletad 7 месяцев назад +4

      My guess is that he tried multiple times and just recorded the last one

    • @zzGreen
      @zzGreen 6 месяцев назад +1

      @@Taletad bro was 2 years late with that theory

    • @Taletad
      @Taletad 6 месяцев назад

      @@zzGreen beter late than never

  • @seanupton709
    @seanupton709 2 года назад +17

    As someone who has been coding for about 6 weeks and just wants an intermediate level of skill at Python, this is very encouraging. If you can be this ridiculously skilled then surely I can obtain my considerably easier goal lol! Thanks :)

  • @alexanderbrinkman9337
    @alexanderbrinkman9337 2 года назад +196

    Seeing this as a beginner programmer is just mind-blowing. Keep up the good work man

    • @AstrosSnipe
      @AstrosSnipe Год назад +1

      i dont have anything idea what he even type and change in those pages of words all i know is that what ever he doe id way too complicated and time consuming

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

      @@AstrosSnipe If you want to learn, there are many tutorials on RUclips that cover the Basics, Bro Code has massive full courses for Java, C++, C#, Python and more for free here on the RUclips.

  • @smackdab6070
    @smackdab6070 3 года назад +539

    i love what you're doing with this and its really skilled programming but i just have to say that you have just tanked the self esteem of every single programmer on this planet

    • @Reahreic
      @Reahreic 3 года назад +40

      At least reading the comments makes me not feel so alone anymore lol.

    • @ZintomV1
      @ZintomV1 2 года назад +3

      Facts

    • @DaphneBlue50s
      @DaphneBlue50s 2 года назад +3

      yeah, i wanted to learn coding, but after watching this im not so sure.

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

      @@DaphneBlue50s why not?

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

      @@ghostg6107
      Because it looks complicated as f#ck!!

  • @olijon7300
    @olijon7300 3 года назад +358

    Why is the grass of every minecraft remake so damn bright, legit neon lime

    • @sapehc
      @sapehc 3 года назад +94

      because the first version of minecraft had bright, legit neon lime grass

    • @SerBallister
      @SerBallister 3 года назад +150

      Programmer art. They probably picked RGB #00ff00 for green, like any artistically challenged person would.

    • @patstaysuckafreeboss8006
      @patstaysuckafreeboss8006 3 года назад +14

      Because they all suck at that part honestly. Sorry to be blunt

    • @saaros
      @saaros 3 года назад +25

      generally people doesn't understand color theory unless they study it

    • @okuno54
      @okuno54 3 года назад +62

      To be fair...
      Programmer trying to do art: finds something recognizably green
      Artist trying to program: Where do I run "rm -rf /"?

  • @halcsad691
    @halcsad691 Год назад +10

    I've been learning to code for a year, but I feel like I can't code at all after watching this. BIG RESPECT!

  • @vojinmilovic2802
    @vojinmilovic2802 3 года назад +41

    Interestingly enough, if we take that the guy wasn't sleeping, he was typing 15 lines of code a minute(taking that his repo has 42k lines and that the average line of code has 10 characters ), with all the testing and bug fixes. If truly done, this is one of the most impressive things I've seen

    • @robertfrancis4069
      @robertfrancis4069 3 года назад +10

      Some was copy paste and dependence’s like glfw

  • @givrally
    @givrally 3 года назад +293

    9:34 Jdh : "I decided on a proper sorting algorithm (quicksort)"
    *Video : shows Mergesort*

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

      I saw that too

    • @jdh
      @jdh  3 года назад +78

      It's noted in the description :)

    • @givrally
      @givrally 3 года назад +6

      @@jdh Ah, I hadn't noticed. Thanks for pointing that out !

    • @inflatablebananapig1
      @inflatablebananapig1 3 года назад +2

      I literally searched "sort" to see if this was already in the comments lol, didn't wanna post it twice

  • @hockey.montages9157
    @hockey.montages9157 3 года назад +212

    I love how he says " as I was wrapping up" and then writes like 40 pages of coding.

  • @rvdev3800
    @rvdev3800 2 года назад +21

    I have been programming for years, but every time I see such videos I am always amazed, congratulations!

  • @mikietonon
    @mikietonon 3 года назад +106

    I program a lot in C for school and watching this hurt my head a lot. I have never done anything close to this level and find it incredible. Amazing work, I hope one day I am as good as you are.

  • @GeorgeTsiros
    @GeorgeTsiros 3 года назад +67

    8:09 the "I'm not bothering" branch
    8:13 the "never eating _that_ again" branch
    8:20 the Kubrick branch
    8:27 the "fk it, I'm starting from scratch" branch
    8:32 this is when you force merge all previous branches together

  • @20firebird
    @20firebird 3 года назад +415

    this was a fascinating peek into how games are REALLY developed. i never thought of some of these problems existing, and it really makes me appreciate the work that goes into these things. bravo!
    MAN that grass is green, though.

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

      Agreed

    • @matixlol
      @matixlol 2 года назад +35

      This isn't how games are REALLY developed though. Nowadays almost every games are built using a game engine like Unity or Unreal or whatever, which provide libraries and API to make it more convenient. The whole point of this video is that he did not use one of these game engines.

    • @lenska5615
      @lenska5615 2 года назад +2

      @@matixlol Unity only mostly used by starter developers like unreal engine, but you are right

    • @zorkan111
      @zorkan111 2 года назад +8

      ​@@matixlol Plenty of game developers made their own engines for the purposes of their games. You mention the Unreal engine. Guess which game it was made for.

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

      @@zorkan111 please tell me, was it a 1-man-project or how is that related to small-scale game development?

  • @sippingtexastea
    @sippingtexastea 2 года назад +32

    all the non programmers cant even comprehend how hard doing something like this is, especially from scratch the way that was done in this video, immense respect to this guy

  • @genericytprofile852
    @genericytprofile852 3 года назад +153

    This man here has done a better job at recreating minecraft than most YTbers or knock off clones could ever dream of. And this was all done mostly from the ground up. Mad respect for actually getting transparency to work right!

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

      The man did a better job at minecraft than microsoft did that's for sure

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

      @@RobotronSage what... I don't see any logic behind your statement

  • @nolyarb2874
    @nolyarb2874 3 года назад +47

    This makes me very grateful for the "shortcuts" I've been blessed with.

  • @shambhav9534
    @shambhav9534 3 года назад +58

    I have finally found someone who is too cool for classes, namespaces, interfaces, polymorphism, etc. You are an instant subscribe.

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

      I have to use C# at work at the moment and I agree.
      Classes and stuff can be a useful tool, but they're only useful with certain things.

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

      However he’s definitely using an object oriented approach at coding. Just wrapped in plain C

    • @shambhav9534
      @shambhav9534 3 года назад +3

      @@lsfornells If that, then why not just use C++? From my experience, that approach is good for things like Vectors and stuff which could be their own datatypes but for real objects, that method is very bad. The mess it creates is really bad. Even C++ OOP creates a big mess, so I don't use it.

  • @AM22311
    @AM22311 3 месяца назад +2

    And everyone thinks that making games with engines is hard, my guy just showed how much harder it is to make a game from scratch. This guy proves that game engines make game making very easy. (Compared to scratch)

  • @johnjackson9767
    @johnjackson9767 4 года назад +249

    As a fellow c-programmer and someone who uploads videos doing custom implementations and explanations, I appreciate this video immensely. Great work!

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

      You are everywhere

    • @alekvassinskiy1286
      @alekvassinskiy1286 3 года назад +11

      as a fellow c# multiple game creator he didnt explain almost anything good enough, he just gave us a basic idea of what he did but not how exactly to do it etc

    • @alekvassinskiy1286
      @alekvassinskiy1286 3 года назад +9

      Ok he edited his comment so mine doesnt make as much sense lol

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

      sounds like you have lots of c knowledge yourself, would you be able to program something similar as well?
      Is that a normal skillset of the usual C-Programmer?

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

      Good to know, +1 subscriber.

  • @jmcguire6471
    @jmcguire6471 3 года назад +402

    Dude, I just spent 20 minutes explaining to my wife , who knows NOTHING about programming, why you're a goddamn wizard. That's how impressed I am by this....

    • @ahmdm2036
      @ahmdm2036 3 года назад +3

      HAHAHAHA SAME

    • @Infinity-sb5du
      @Infinity-sb5du 3 года назад +1

      Hahaha feel it

    • @tylerfortner9500
      @tylerfortner9500 2 года назад +13

      But your wife doesn't express interest or even try to comprehend it. My mistake, that's my wife. Consider yourself a lucky man.

    • @adrianlowery7175
      @adrianlowery7175 2 года назад +14

      @@tylerfortner9500 I think it’s time for marriage counseling, Tyler

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

      HAHA. This is the best. I explained to my cat just now.

  • @katherinedobbs52
    @katherinedobbs52 3 года назад +104

    "The next attempt gave me an ominous black pillar." Ah, yeah, the Spire of Darkness, every programmer knows that one.

  • @DrihunGaming
    @DrihunGaming Год назад +7

    Amazing video, I could however not finish it due to the flashing white that comes from the screen while it zooms by. What little I could see was amazing and you seem like a very competent programmer and it was a nice insight into what more advanced coding looks like. Thanks!

  • @werren894
    @werren894 3 года назад +224

    imagine the amount of feeling of satisfy this guy got from thousand of hour of study to be able to build minecraft with C.

  • @ThePerdex
    @ThePerdex 4 года назад +661

    Is it possible to learn this power?

    • @augusto256
      @augusto256 3 года назад +56

      It will not come from a unityfan.

    • @nbacivilnba8950
      @nbacivilnba8950 3 года назад +68

      learn to code in C

    • @Nick-lx4fo
      @Nick-lx4fo 3 года назад +45

      @@nbacivilnba8950 Learn OpenGL which is just as hard

    • @alephanull1953
      @alephanull1953 3 года назад +41

      Not from an Engine

    • @igorswies5913
      @igorswies5913 3 года назад +9

      just don't over complicate your code with oop and weird "best practices" lol

  • @sk8terboi2005
    @sk8terboi2005 3 года назад +133

    10 years later: “I decided to completely clone the earth and every human who’s ever lived and then I just for entertainment birthed a new planet”

    • @JMRC
      @JMRC 3 года назад +10

      in 72 hours.

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

      @@JMRC It just might happen...

    • @egg-iu3fe
      @egg-iu3fe 3 года назад

      20 years later: "I birthed a universe as complex as our real life universe"

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

      Using just C code.

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

      I've seen that Rick & Morty...

  • @jasqaibruh
    @jasqaibruh 24 дня назад +1

    What next? Making the entirety of minecraft in assembly in 6 hours?

  • @isakbh
    @isakbh 3 года назад +23

    This is exactly what I imagined Minecraft would look like in 2nd grade, this video gives me lots of nostalgia.

  • @aiyahm6853
    @aiyahm6853 3 года назад +65

    this is honestly the coolest programming video ive ever seen! the final product looks almost exactly like the early alpha versions of minecraft! holy moly!

  • @jgabt
    @jgabt 3 года назад +2158

    this dude can create a game without a game engine in 48 hours while i can't even complete one homework in a week LMAO

    • @johnandrevalencia7170
      @johnandrevalencia7170 3 года назад +64

      in other words
      you're lazy?

    • @wattleproductions8026
      @wattleproductions8026 3 года назад +17

      Not something to be proud of…

    • @jgabt
      @jgabt 3 года назад +93

      @@johnandrevalencia7170 yes.

    • @wolfbreaker4401
      @wolfbreaker4401 3 года назад +174

      @@wattleproductions8026 he never said he was proud of it?

    • @minecraftherobrine1234
      @minecraftherobrine1234 3 года назад +13

      @@wolfbreaker4401 Suppose that he is a good person. He is lazy. This implies that he is proud of being lazy. Because if he wasn't proud of it, he would have to be ashamed of himself. If he is ashamed of himself, and do nothing to stop procrastinate, then he is not a good person. We have a contradiction. Therefore, if he is a good person, he is proud of himself.
      Suppose that he is a bad person. Bad person are proud of their bad qualities, because they are bad by definition. But laziness is a bad quality. Therefore he is prouf of being lazy.
      In all the cases, he is proud of himself.
      Maybe he never said that he was lazy, but it is so evident that you don't have to see it written to notice it.
      Stop pretending to be smart and shut up.

  • @Justin-zg6ft
    @Justin-zg6ft 2 года назад +3

    I've started to get into programming. I've been following along on yt videos coding stuff like a calculator and what not to learn how code works...after seeing this I understand I have years of learning ahead of me

  • @anikinskywalker7127
    @anikinskywalker7127 2 года назад +35

    I started coding about 2 years ago, and I aspire to a programmer as great as you. This was really amazing!

  • @abdullahmansoor1
    @abdullahmansoor1 3 года назад +123

    Imagine what he can do in 7 days.

    • @givrally
      @givrally 3 года назад +37

      God needed to rest on the 7th day. This guy would keep going.

    • @AceDeclan
      @AceDeclan 3 года назад +2

      @@givrally no

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

      @@givrally God is not good at programming. Look at the indentation of DNA.. tch

    • @givrally
      @givrally 3 года назад +10

      @@Ludifant Plus, we know for a fact that He didn't comment his code ! What a slacker.

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

      @@AceDeclan yes

  • @chrislogan1699
    @chrislogan1699 3 года назад +10

    This is gorgeous. I write embedded C. I tried learning some OpenGL when I was 15 because of Minecraft's original popularity wave, then sort of gave up. Maybe 10 years later is my time.

  • @6A31
    @6A31 Год назад +2

    "and after an hour or so" Proceeds to show a task that would have taken me 2 days for sure.

  • @dv_xl
    @dv_xl 3 года назад +27

    I see a lot of programmers lamenting in the comments about how they feel bad about not being able to code this fast / this well. It's an impressive feat - but the reason it's possible is that the author has lots of experience & familiarity with solving these problems.
    Just to start writing code you need to have learned about GLFW and CGLM; how to setup and run a C project; how to use OpenGL shaders. This is just to know how to start. Then there's all the other cool stuff he talks about in this video (which he was clearly learning about as the video went on).
    So if you're a dev in another industry, or a student, and you look at this and go man that's impossible, remember: it's a whole other area of expertise. It's like if you are learning to paint and are mind blown by seeing somebody animate. It's a different set of tools to learn. If your goal is become this good - it's possible learn by seeking out information and tutorials and put your knowledge to practice in some real stuff. It's fun :)

  • @cxvxcbcxn
    @cxvxcbcxn 3 года назад +135

    And here I am learning Python and being happy with myself for creating a simple calculator and stuff...this is insane...

    • @pommesdeterru2400
      @pommesdeterru2400 3 года назад +16

      I am happy typing print("Hello za Warudo") on the command thou

    • @pax_9365
      @pax_9365 3 года назад +6

      I'm happy to make a spam bot that Writes hello 1, hello 2, hello 3...

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

      @@pommesdeterru2400 Is this a Jojo refference?

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

      @@tln_greks2896 I guess

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

      I started learning python, but realized it was too hard and quit the same night. Now I am focusing on blender and 3D art.

  • @rafateivfik
    @rafateivfik 3 года назад +61

    > "Most people use shortcuts"
    > Uses libraries
    Kidding aside, awesome work! The level of technical work involved in this is astounding.

  • @YusiDJordan
    @YusiDJordan 10 месяцев назад +1

    I sometimes like to think I am a basic coder, then I see someone like this guy and realize I am a fool.

    • @woahmamaawoogahonkahonka
      @woahmamaawoogahonkahonka 10 месяцев назад +2

      I think I’m good at it until I realise I’m doing the programming equivalent of banging rocks together

  • @Ancliz
    @Ancliz 3 года назад +104

    My face when he said "So I had to leave that for the next day"...

    • @curiously-cinnamon
      @curiously-cinnamon 3 года назад +7

      Like he did all that in less than a day??? That would take me months honestly

    • @alexkeys776
      @alexkeys776 3 года назад +2

      @@curiously-cinnamon that would take me years

    • @ben-hurray
      @ben-hurray 3 года назад +2

      @@alexkeys776 centuries

    • @user-hq4ey2bv8e
      @user-hq4ey2bv8e 3 года назад +1

      @@ben-hurray eons

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

      @Glizzster ¿Qué pasa?

  • @isakwatz11
    @isakwatz11 3 года назад +6

    as a guy who just started taking a quickie programming course at uni, I find this very impressive! great work man

  • @calebleeb5775
    @calebleeb5775 3 года назад +16

    8:27 This is where squidward ended up after the time machine broke

  • @T_h_o_m_a_s_2_7
    @T_h_o_m_a_s_2_7 2 года назад +5

    I've been thinking about learning to code, but what you do looks beautiful and scary at the same time

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

      Bro that is opengl it's hello but other stuff are way easier and less scary it's easier to write entire 2d games in other languages than to load a simple cube in opengl

  • @DaniellianGaming
    @DaniellianGaming 3 года назад +121

    What's even more impressive is that you made this with C.

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

      Why?

    • @elitemagikarp4822
      @elitemagikarp4822 2 года назад +15

      @@paristath6773 c is a pretty low level language, so it's harder to learn and use but it's faster

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

      Lol, C/C++ is almost the same, in fact I'd argue in C++ some things are better. Dynamic allocation syntax us much cleaner and classes, good luck including function pointers in structs using C

    • @Ready4Whatever
      @Ready4Whatever Год назад +5

      @@jazzgirl2358 no they aren’t bozo

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

      @@jazzgirl2358 C++ has useful features but is bogged down by how big of a bodge it is. It was made to be compatible with C and therefore you have about 17 different ways to do one simple task. sure OOP can be useful, but C++ is a badly built language

  • @italoseara
    @italoseara 3 года назад +80

    in the next day:
    "Every other guy on youtube used some kind of cheat like a programming language, so I decided to create minecraft with holes in cardboard"

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

      Programming language are holes in an electric board

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

      stolen comment

    • @tvbluebull866
      @tvbluebull866 3 года назад +2

      @@JovanLemon your comment has been stolen the most, stfu

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

      @@tvbluebull866 no not really
      also the other one is the exact same

    • @egg-iu3fe
      @egg-iu3fe 3 года назад

      "I decided to create mincraft from scratch by rediscovering electricity and starting from there"

  • @alexismandelias
    @alexismandelias 3 года назад +27

    It takes me 12 hours to make my first house in Minecraft and it takes this guy 12 hours to build the house AND the whole fricking game

  • @NourArt02
    @NourArt02 Год назад +1

    It's crazy enough to make a minecraft clone from scratch, it's even crazier to make the engine you use to make it, and it's mindbogglingly crazy to make all of that in just TWO DAYS

  • @JoostArchives
    @JoostArchives 3 года назад +8

    11:40 wtf that sentence flows so well with the music lol

  • @jovanxin9714
    @jovanxin9714 4 года назад +24

    Please keep going with this project!!
    Add health, survival, mobs, ect!
    I'd love to see a long-term recreation of minecraft, rather than just a singular video.

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

      I think if he does that he may get sued by the original Minecraft

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

      @@katech6020 yeah but he isnt selling it

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

      @@katech6020 By original Minecraft, do you mean Infiniminer? heh

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

      I dont think thats the point of this video

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

      @@katech6020 Sued for what? He's not stealing or copying anything from the Minecraft game, he's developing it himself. And he's allowed to do it because Microsoft doesn't have a patent for Minecraft.

  • @Anonimo-ue5pq
    @Anonimo-ue5pq 3 года назад +76

    Coding interviewers after seeing this video:
    "Good day, gentlemen. I am here to change the future."

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

      I'm not even a coder, so I can imagine how intimidating that must sound💀

  • @Squidcanady
    @Squidcanady 11 месяцев назад +2

    When people say that modders can get stuff done way faster than the company, i didnt believe them but ig they right

  • @mikkel066h
    @mikkel066h 3 года назад +7

    Man this gives me flashbacks to when minecraft was a browser game. The world generation looked pretty much like this and in early alpha as well.

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

      It never was a browser game, it was Java though. Maybe it had an applet version? Not sure. But yes it looked like this, to me not much different from modern minecraft, better sharers, but equally ugly at least hah

  • @crimsonthemudwing
    @crimsonthemudwing 3 года назад +61

    him: *places sand and it does not fall *
    me: wait that's illegal!

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

      "Aaaaaaaaarhg"
      Foxy

    • @AlpacaNix
      @AlpacaNix 3 года назад +2

      under a full day of coding isnt enough to get all of the physics into a game made from scratch, special physics are a crucial 2 hours of work at least and some gaps in coding, the creator of this video made a world record of an almost perfect older version of minecraft

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

      @@AlpacaNix i don’t code C, but I’m pretty sure it’s not hard to check if there is a block under the sand, then drop the block if there is none

  • @technoultimategaming2999
    @technoultimategaming2999 3 года назад +15

    I feel like this shows brilliantly how it's amazing that minecraft started like this, and now it has all those fancy features like water spreads and falls

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

      Some RUclips made like an hour long video about Minecraft and all the snapshots and everything that lead up to 1.0

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

      @@Rudgged can you send a link or the name of the youtuber/of the video

  • @Klickyyy
    @Klickyyy Год назад +3

    Dude this is literally talent! I don't even know how to program, but I can tell that this takes skill. Good job!

  • @Chreeeis
    @Chreeeis 3 года назад +10

    8:18 PRAISE THE MONOLITH. BASK IN ITS DIVINE SHADOW

  • @angel-ob5gz
    @angel-ob5gz 3 года назад +265

    -no shortcuts-
    10 seconds later: so i used this library that did all the heavy lifting.

    • @angel-ob5gz
      @angel-ob5gz 3 года назад +25

      @Cid pal i know how to handle opengl but i find this ironic af

    • @Gabemeister1201
      @Gabemeister1201 3 года назад +15

      I have yet to come across an OpenGL application that makes direct calls to the GPU instead of using a library.
      Here's an analogy:
      Direct OpenGL calls to the GPU is like building a house with your bare hands.
      Using an OpenGL layer like glfw is like building a house with a hammer.
      Using an Engine like Unity or Unreal is like building a house with an established foundation.
      Using the math's library he got for the perspective camera however is a little bit of a cheat in my opinion
      if he's going all the way with it.

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

      glfw is fine IMO, you could avoid it if you want to go hardcore but it gets boring to do all the "plumbing" from zero. I agree with ​ @Gabemeister1201 that using the math library for the camera is a shortcut. Nice video though.

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

      @@Gabemeister1201 There's no such thing as "direct OpenGL calls to the GPU". OpenGL is just an API designed to interface with graphics hardware. Since the inner workings of a graphics card are vendor-specific, each vendor has to implement this API on top of their hardware which translates the API calls into what the hardware is actually supposed to do. This is why, at the start of any such application that uses an API like OpenGL, one has to load the driver's API implementation library in order to access the correct functions.
      GLFW actually does very little with OpenGL directly. It merely creates and somewhat manages a window with a context for you. However, you'll still need to separately load the OpenGL implementation to be able to use it (using e.g. glad).
      Unless you expect him to write his own OS, including any drivers needed, there's no real practical way around using a bunch of libraries. And a maths library is certainly one of the smaller ones.

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

      @Nybbl er Take a look at Vulkan. The reason these things require so much boilerplate code is simply because they're pretty complex.
      C and OpenGL are probably one of the best documented things out there. If you can't find documentation on it, you're doing something fundamentally wrong.
      In any case, no one needs a PHD, or anything near that, to do graphics programming.

  • @Oxymoron32GB
    @Oxymoron32GB 3 года назад +9

    You know, I never understood the true meaning of solid/nonsolid blocks until you mentioned it was for efficient rendering of block faces.
    For the longest time I wondered why stuff like slabs and stairs were nonsolid. They have a hitbox. In my mind that counts as solid.
    But now I get it. Those blocks are nonsolid because you can see OTHER block faces through them.

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

      i feel like i always hear the term "transparent" vs "solid" blocks instead of "nonsolid". Its a much more explanatory term since transparent gets directly to the point that took so long to reach when using the term "nonsolid"

  • @mkoval25
    @mkoval25 8 месяцев назад

    As an aspiring programmer that's been learning to code for years but started getting any meaningful results just a little ago, I have to say that this IMPRESSED me.
    Especially phrases like "that took a good hour of coding", well, sometimes you can't find a way to fix a simple bug in several hours, even when the code is WAY less complicated =)
    Anyway, good luck, that's really an achievement for two days.