r/java • • Jul 22 '19

First Minecraft Clone Done

https://www.youtube.com/watch?v=hJqIRYowfrQ&feature=youtu.be
198 Upvotes

89 comments sorted by

31

u/[deleted] Jul 22 '19

Excellent work. Even more incredible that you’re 12 years old. I am a software dev, and you are way ahead of where I was at your age.

6

u/ASinglePlant Jul 22 '19

Thank you :)

20

u/LabLambReddit Jul 22 '19

You’re way ahead of me right now

6

u/faneron Jul 22 '19

Here I was all excited about my new degree...

24

u/[deleted] Jul 22 '19

Meanwhile im 26, getting my degree in computer science and still dont know a language well enough to do something like this. Im learning slowly but it infuriates me that my mother's nazi-like stance on not using computers growing up left me unable to gain this level of experience before tirning 18 (im still not this experienced).

Im proud of you, keep up the good work!

6

u/ASinglePlant Jul 22 '19

Thank you so much! Congrats on getting ur degree.

5

u/[deleted] Jul 22 '19

Haha, oh man, thank you but i have 3 years left ×.×

9

u/ASinglePlant Jul 22 '19

Oh, my bad when you said that you were getting your degree I thought like you already technically got it. Sorry bro. Lol

2

u/[deleted] Jul 22 '19

Honestly, your mom wasn't wrong. I had a computer growing up and just became addicted to games. I'm a sophomore in college studying compsci at 29 and I'm doing great. The reality is that if you have a better work ethic than others, you will be totally fine. I'm easily the top of my class and I'm probably dead average intelligence. PM me if you want to know how I've managed to deal with my late start (don't want to doxx myself for no reason).

2

u/[deleted] Jul 22 '19

I mean it wasnt like i didnt play a hell of a lot of ps2 growing up lol, i was playing just as many console games as the next kid but viruses and programming intrigued me as a kid. I was learning about and removing viruses and stuff like that in secret in the rare moments my parents were gone and i could use the pc without being caught lol. And i have the drive. I am working on 3 different coding projects in 3 different languages (i do learn quickly at least) i just also have college, two jobs, a wife and a 4 year old, as well as freelance design/code work i do on the side. If there were 48 hours in a day i would get so much more done lol, but Im doing the grind, and i love it, i just cant wait to see the rewards!

3

u/[deleted] Jul 22 '19

I was just saying the same thing to my wife this morning, about how if I only had about 6 more hours in a day, I'd be able to get everything done that I want to do. It sounds like you are doing really well then. Right on. Late starters rise up!

14

u/Prince_ofRavens Jul 22 '19

You're incredible. The product alone is amazing but the skill you are demonstrating with your code even then simple things like using packages correctly, Getters and setters, following code etiquette.

At 12 you are already showing more skill than would be expected from a 24 year entry level programmer making 80k/yr

If programming is something you want to do with your life you are well well ahead of where you need to be!

6

u/LabLambReddit Jul 22 '19

80k a year lol? If he keeps this on he will be 240k a year

1

u/Prince_ofRavens Jul 22 '19

Oh for sure but I'm talking entry level

1

u/LabLambReddit Jul 22 '19

Yes, entry level, I mean nowadays college freshman with a decent CRUD project (deploys on Digital Ocean or what not) and grinding Leetcode already gets 120k, so imagine this kid

6

u/RaiausderDose Jul 22 '19

where you guys based?

The average salary for a Senior Java Developer in Germany is €60,825.

:-/

5

u/snowy_light Jul 22 '19

He's talking about the US. That's like the only place that pays so well, maybe besides Switzerland.

1

u/ASinglePlant Jul 22 '19

Thank you so much!

2

u/baguette_lardon Jul 22 '19

Laugh in 28k

;(

1

u/shadowstar36 Jul 24 '19

What planet? Entry level, you don't mean senior coder?

I make a little over half that. Is that really the going rate for entry level coder? Or is that the pay in silicon valley where an apartment costs $3k just for 1 bedroom? If that is the rate on the East Coast too, we'll I may just go back to learn and start a portfolio.

I am 40 and the though of going back to school and getting back into debt is not appealing. What are the chances of getting entry level position without a college degree? Will companies hire based on portfolio and knowledge? Or other field work experience (7 years html/css and 3 years desktop support)

Ive been dabbling my entire life with coding, since I was given a 8088 cga4 color pc back in the 80s. Made tons of basic games, and tried to learn other languages, but there wasn't much material to learn in the wild back then. Went on to college late in the mid 2000s and took a few years of cs java1-3 and taught myself some c++. Real life issues got in the way and I dropped out of school and got a web design job and now do desktop support.

1

u/Prince_ofRavens Jul 24 '19

I'm in Ohio I got offered 73 out of college with 1 internship

1

u/RaisinBall Jul 25 '19

You don’t need a college degree or school to get hired. I tried a startup and failed and then leveraged my experience to get my first real dev job, now I’m on my second. Total comp from my job will be in the $170k range this year in the Midwest which I negotiated due to working my ass off learning how to architect web applications for enterprises. At no point in the interview did anyone ask about school or qualifications, they just asked about how I solved problems and what I had done.

No one cares if you went to school, they want to see your chops!

1

u/shadowstar36 Jul 25 '19

That's good to know. I would hate to spend an insane amount of time brushing up on current skills learning new ones to get great at it and then be told whelp, since you don't have x paper we can't hire you.

It would be like when I was in my early twenties and started working a 2nd job at circuit city and did an amazing job selling and showing people the tech. The manager had to let me go because my credit score came back low due to a former bankruptcy. Dude apologized over and over as he spent the prior two weeks saying how good I was doing, but Corp policy didn't care.

Ironically that company went out of business. I can't imagine turning down good skilled people over things that really have no bearing on said employment.

8

u/Gat786 Jul 22 '19

Thats hell of a lot for a 12 yo

9

u/ASinglePlant Jul 22 '19

Lol thanks It was quite the challenge mostly because I’m still learning OpenGL

13

u/DrunkensteinsMonster Jul 22 '19

Wait you’re 12? What in the world, you’re miles ahead of where I was at that age. Keep it up!

4

u/ASinglePlant Jul 22 '19

Thank you so much!

5

u/cerealOverdrive Jul 22 '19

Seriously amazing work! I did something similar many years ago..... as a college student(I work as a programmer). You’re miles ahead here! In six years if you’re not starting a company you could probably skip a degree, get a scholarship or get a big company to cover the costs. Keep it up!

2

u/ASinglePlant Jul 22 '19

Thanks, I hope I will.

3

u/[deleted] Jul 22 '19

Wow! Amazing

3

u/[deleted] Jul 22 '19

I have 3 years work experience on java and I am still shit at it, I love programming but won't progress due to my lazy ass. You will be an expert by the time you reach my age. Hats off OP.

1

u/ASinglePlant Jul 22 '19

Thank you!

2

u/Keybraker Jul 22 '19

Probably at the 0.01% of 12 year old with this skill. Very good work, I hope you become an engine creator one day, and remember to work on open apis, not Cuda.

Link me you github, and if you don't have one make one! You will love it!

2

u/ASinglePlant Jul 22 '19

Alright! I shall make a github. I will dm you it

2

u/Elpharae Jul 22 '19

I aspire to be good enough to do something like this on my own. The fact that you're 12 and you made this is mindblowing.

Keep it up!

1

u/ASinglePlant Jul 22 '19

Thank you!

2

u/AnnoraxD Jul 22 '19

Good job! Copying existing game ideas is a perfect way to learn

Some recommended reads I had saved as bookmarks if you want to dig even deeper into game programming:

Game programming patterns

Goes deep into all the different patterns of writing a good game engine. Written by one of the devs at EA. There is a free web-version if you scroll down on first page.

Game mechanic explorer

Lots of small snippets and explanations on common mechanics, like bullet trajectories etc. Only for 2d games but much easier to digest then the patterns-site.

A* introduction

A* is a fun algorithm to implement

Clean code book

This one is a must, a book you might get the most out of when working with other people but if you wanna get thinking in the terms of maintainable code and what will be expected of you at a real workplace, take the advices it gives to heart :)

And a tip for a potential next project:

One of the first games I did was a clone of Bomberman. The graphics can be pretty simple but you get to dig into cool stuff like (simple) AI with pathfinding and you can make a very simple multiplayer game out of it that isn't that lag sensitive

1

u/ASinglePlant Jul 22 '19

Wow thank you so much! I will really look into this.

2

u/i_has_many_cs Jul 24 '19

According to your profile, you really seem a lot older than 12. Who advices their friend to see a therapist at the age of 12?

2

u/ASinglePlant Jul 25 '19

I mean I am 12. I assume you saw my Am I the Asshole post. I’m not longer friends with him. He actually has no more friends for what he did recently. Look at my YouTube channel.

1

u/i_has_many_cs Jul 26 '19

Very very impressive then! Keep it up

1

u/Godworrior Jul 22 '19

Is the source code up somewhere?

1

u/ASinglePlant Jul 22 '19

I will DM you it

1

u/[deleted] Jul 22 '19

Good god you’re amazing dude. How and where did you even learn all this?? Teach me your ways 😂

1

u/ASinglePlant Jul 22 '19

Lol. Look up ThinMatrix on YouTube and watch his OpenGL series for java. It’s amazing! He teaches you how to make a fully playable java game engine.

1

u/[deleted] Jul 22 '19

Thanks dude!

1

u/LiOoN Jul 22 '19

You are awesome! Keep up the good work ;)

1

u/CrazyVideoGamez Jul 24 '19

Dude wow how can u code so good

1

u/[deleted] Jul 24 '19

Not really impressive when there are hundreds of clones that exist, 75% being open source, and as stated below, he followed tutorials. Minecraft also isn’t really a complicated game by any means as well but nonetheless keep it up.

1

u/ASinglePlant Jul 24 '19

I did it more for a learning experience though. Also I said I Learned from the tutorials. Not shamelessly copy and pasted them. I created my own little thing.

2

u/[deleted] Jul 24 '19

It’s great to take a step into programming but the title is a little misleading, people here are under the impression that you created this with very little to no assistance.

1

u/[deleted] Aug 19 '19

Did you follow along with any sort of tutorial for making this? I really want to try making it myself but don't really know where to start.

Great work btw!

1

u/ASinglePlant Aug 19 '19

Sure bro, I learned java 3D threw ThinMatrix. He teaches you everything about LWJGL.

-7

u/istarian Jul 22 '19

How does a seemingly primitive voxel sandbox === Minecraft Clone?

3

u/Prince_ofRavens Jul 22 '19

Procedural Terrain generator + daynight cycles + blocks + Minecraft textures + mobs + java

-3

u/istarian Jul 22 '19

That's a little closer, at least in concept, but somehow I doubt it has biomes, redstone circuits, minecarts, block updates glitches, etc. Just because it has similar features doesn't make it Minecraft.

And, at the end of the day, it's a lot less impressive to just copy somebody else's blueprint and take advantages of years of careful analysis and dissection of game than it is to make your own thing. I mean I can see the educational utility, but why not just make something that's your own.

4

u/[deleted] Jul 22 '19

He’s 12. Plus, it doesn’t seem like the goal is to make something to sell on Steam or anything. And it doesn’t look like he took any advantage of “years of careful analysis and dissection” of Minecraft—they’re implemented in the same language but otherwise don’t look to be too similar architecturally.

Copying other people’s work is how nearly every good artist has learned for millennia. Games are no different.

1

u/ASinglePlant Jul 22 '19

Absolutely.

2

u/Prince_ofRavens Jul 22 '19

...he had 5 days dude. Notch did not make production level Minecraft in 5 days. If this kid wanted to he could probably make the minecarts and the crafting and all that other nonsense but honestly why. He did what he set out to do which was make a really cool Minecraft inspired alpha using opengl in Java in 5 days and demonstrate his mastery of java along the way.

1

u/ASinglePlant Jul 22 '19

Thanks :) Perfectly Worded

1

u/istarian Jul 23 '19

There's no need to be uptight about. I just think this and many others are more in the Minecraft-like category than 'clones'.

0

u/Prince_ofRavens Jul 23 '19

I mean yeah there's no need to be uptight about it.... so maybe little less uptight about the category? lol

1

u/ASinglePlant Jul 22 '19

Actually mine does have biomes .

-17

u/[deleted] Jul 22 '19

Why? Why re-invent the wheel instead of building on top of the existing platform?

20

u/[deleted] Jul 22 '19

because he wanted to challenge and educate himself.

9

u/l0gicgate Jul 22 '19

Because it’s a great opportunity to learn. As a software dev, there’s nothing better imo than building something from scratch.

4

u/ASinglePlant Jul 22 '19

Perfectly worded

0

u/[deleted] Jul 22 '19

[deleted]

2

u/ASinglePlant Jul 22 '19

1

u/xenago Jul 22 '19

FYI dropbox links can be removed if there are too many downloads. Github is a better choice if you want other people to be able to follow your work!

1

u/ASinglePlant Jul 22 '19

I tried github however it kept processing for many hours so I just canceled it.

4

u/AloticChoon Jul 24 '19

It's worth you trying to set it up again, because once you get a small team running, and have sussed out commits, pull requests and have the occasional argument about petty stuff like 2-space vs 4-space tabs etc.. you'll be pretty much a proper dev at that point.

2

u/ASinglePlant Jul 24 '19

Oh alright.

1

u/ASinglePlant Jul 22 '19

Sure thing! I will post it soon so I will DM you it.

1

u/[deleted] Aug 02 '19

Did you ever put this on github? I’m interested as well.

1

u/ASinglePlant Aug 02 '19

Yes, however github didn’t work. So I just posted it to Dropbox. I made a comment on my YouTube video giving the link. :)

0

u/[deleted] Jul 22 '19

[deleted]

0

u/[deleted] Jul 22 '19

[deleted]

14

u/ASinglePlant Jul 22 '19

Sure. Look up Thenewboston on YouTube. He has INCREDIBLE free tutorials on java. Advanced + Beginner.

If you are looking for 3D game tutorials look up ThinMatrix on YouTube. Look at his OpenGL java tutorials. He teaches you how to make a fully playable 3D game.

Hope this helped.

0

u/[deleted] Jul 22 '19

[deleted]

3

u/ASinglePlant Jul 22 '19

No problem.

0

u/[deleted] Jul 22 '19

[deleted]

1

u/ASinglePlant Jul 22 '19

Sure. First off, search up ThinMatrix on YouTube and watch his OpenGL Game series. He teaches you how to make a fully playable Java game engine. Even teaches OBJ file support.

1

u/[deleted] Jul 22 '19

[removed] — view removed comment